Add Batch e04b464d-6ea2-48b3-a845-f212287faa5b
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/15cec1c8-6bdb-4db2-836b-521718eb571d_content_list.json +3 -0
- notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/15cec1c8-6bdb-4db2-836b-521718eb571d_model.json +3 -0
- notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/15cec1c8-6bdb-4db2-836b-521718eb571d_origin.pdf +3 -0
- notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/full.md +0 -0
- notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/images.zip +3 -0
- notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/layout.json +3 -0
- notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/39487d63-5836-455f-9168-eeca9fdf854f_content_list.json +3 -0
- notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/39487d63-5836-455f-9168-eeca9fdf854f_model.json +3 -0
- notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/39487d63-5836-455f-9168-eeca9fdf854f_origin.pdf +3 -0
- notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/full.md +392 -0
- notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/images.zip +3 -0
- notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/layout.json +3 -0
- nounatlasfillingthegapinnominalsemanticrolelabeling/efb6dfb9-886f-4ad9-81d1-7053ea475ad3_content_list.json +3 -0
- nounatlasfillingthegapinnominalsemanticrolelabeling/efb6dfb9-886f-4ad9-81d1-7053ea475ad3_model.json +3 -0
- nounatlasfillingthegapinnominalsemanticrolelabeling/efb6dfb9-886f-4ad9-81d1-7053ea475ad3_origin.pdf +3 -0
- nounatlasfillingthegapinnominalsemanticrolelabeling/full.md +385 -0
- nounatlasfillingthegapinnominalsemanticrolelabeling/images.zip +3 -0
- nounatlasfillingthegapinnominalsemanticrolelabeling/layout.json +3 -0
- oceangptalargelanguagemodelforoceansciencetasks/92ebc279-826d-4f67-bfd8-55cd725ee340_content_list.json +3 -0
- oceangptalargelanguagemodelforoceansciencetasks/92ebc279-826d-4f67-bfd8-55cd725ee340_model.json +3 -0
- oceangptalargelanguagemodelforoceansciencetasks/92ebc279-826d-4f67-bfd8-55cd725ee340_origin.pdf +3 -0
- oceangptalargelanguagemodelforoceansciencetasks/full.md +436 -0
- oceangptalargelanguagemodelforoceansciencetasks/images.zip +3 -0
- oceangptalargelanguagemodelforoceansciencetasks/layout.json +3 -0
- oliveobjectlevelincontextvisualembeddings/0f42effa-7808-4d52-95ed-8b24c0de004a_content_list.json +3 -0
- oliveobjectlevelincontextvisualembeddings/0f42effa-7808-4d52-95ed-8b24c0de004a_model.json +3 -0
- oliveobjectlevelincontextvisualembeddings/0f42effa-7808-4d52-95ed-8b24c0de004a_origin.pdf +3 -0
- oliveobjectlevelincontextvisualembeddings/full.md +412 -0
- oliveobjectlevelincontextvisualembeddings/images.zip +3 -0
- oliveobjectlevelincontextvisualembeddings/layout.json +3 -0
- olmoacceleratingthescienceoflanguagemodels/013319f4-8c66-46df-b7de-650f2534318b_content_list.json +3 -0
- olmoacceleratingthescienceoflanguagemodels/013319f4-8c66-46df-b7de-650f2534318b_model.json +3 -0
- olmoacceleratingthescienceoflanguagemodels/013319f4-8c66-46df-b7de-650f2534318b_origin.pdf +3 -0
- olmoacceleratingthescienceoflanguagemodels/full.md +514 -0
- olmoacceleratingthescienceoflanguagemodels/images.zip +3 -0
- olmoacceleratingthescienceoflanguagemodels/layout.json +3 -0
- olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/88359de8-3b01-486e-bd67-0c4817aee7cb_content_list.json +3 -0
- olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/88359de8-3b01-486e-bd67-0c4817aee7cb_model.json +3 -0
- olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/88359de8-3b01-486e-bd67-0c4817aee7cb_origin.pdf +3 -0
- olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/full.md +601 -0
- olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/images.zip +3 -0
- olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/layout.json +3 -0
- oncontextutilizationinsummarizationwithlargelanguagemodels/def7ded9-225e-4c99-a8ca-70b67179723d_content_list.json +3 -0
- oncontextutilizationinsummarizationwithlargelanguagemodels/def7ded9-225e-4c99-a8ca-70b67179723d_model.json +3 -0
- oncontextutilizationinsummarizationwithlargelanguagemodels/def7ded9-225e-4c99-a8ca-70b67179723d_origin.pdf +3 -0
- oncontextutilizationinsummarizationwithlargelanguagemodels/full.md +547 -0
- oncontextutilizationinsummarizationwithlargelanguagemodels/images.zip +3 -0
- oncontextutilizationinsummarizationwithlargelanguagemodels/layout.json +3 -0
- onefficientandstatisticalqualityestimationfordataannotation/4b91449c-2c14-4b69-b444-cc418b378d29_content_list.json +3 -0
- onefficientandstatisticalqualityestimationfordataannotation/4b91449c-2c14-4b69-b444-cc418b378d29_model.json +3 -0
notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/15cec1c8-6bdb-4db2-836b-521718eb571d_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f27c506a54b0a6d8f09f3aa66f351be5ba30fe4340720cbd41afd748f23e7f5
|
| 3 |
+
size 175346
|
notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/15cec1c8-6bdb-4db2-836b-521718eb571d_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5124cbafd197a9e34fa9b4d71b24cce2316cf72afe9795e5c659b913ea11cb8b
|
| 3 |
+
size 197398
|
notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/15cec1c8-6bdb-4db2-836b-521718eb571d_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ac5ee0b40206d3a6c8c8cb1d11bcb9ac9a0eb42dc1f730572e96295bd2526e4
|
| 3 |
+
size 11376863
|
notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c12d3e9a048fd2048cf07ebae46232db64b8fbf9a7c109b9eb73c685167b3aa
|
| 3 |
+
size 5486460
|
notallcountriescelebratethanksgivingontheculturaldominanceinlargelanguagemodels/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53827fa971dcdb79c6e89a58c935b3da010989bb313441cb449371eea9ff8e0e
|
| 3 |
+
size 555280
|
notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/39487d63-5836-455f-9168-eeca9fdf854f_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2c959d538aa0b897fd9c00ac67d4e0c9bfb201a157317939906bac8f00b38ce
|
| 3 |
+
size 99252
|
notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/39487d63-5836-455f-9168-eeca9fdf854f_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ef7b0847510a9c559693b5825d29aa51533cf7e13449b79c2008ad34f439836
|
| 3 |
+
size 115578
|
notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/39487d63-5836-455f-9168-eeca9fdf854f_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b59d2810e5152878ee1f13438363412e0f032685c9ce6fde15749a9ecce5007
|
| 3 |
+
size 756646
|
notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/full.md
ADDED
|
@@ -0,0 +1,392 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Models
|
| 2 |
+
|
| 3 |
+
Xudong Lu $^{*,1}$ , Qi Liu $^{*,2,4}$ , Yuhui Xu $^{3}$ , Aojun Zhou $^{\ddagger 1}$ , Siyuan Huang $^{2,4}$ , Bo Zhang $^{4}$ , Junchi Yan $^{2,4}$ , Hongsheng Li $^{\dagger 1,5}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ CUHK MMLab $^{2}$ Shanghai Jiao Tong University $^{3}$ Salesforce AI Research $^{4}$ Shanghai Artificial Intelligence Laboratory $^{5}$ CPII under InnoHK {luxudong@link,hsli@ee}.cuhk.edu.hk purewhite@sjtu.edu.cn {xyh6666,aojunzhou}@gmail.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
A pivotal advancement in the progress of large language models (LLMs) is the emergence of the Mixture-of-Experts (MoE) LLMs. Compared to traditional LLMs, MoE LLMs can achieve higher performance with fewer active parameters, but it is still hard to deploy them due to their immense parameter sizes. Different from previous weight pruning methods that rely on specifically designed hardware, this paper mainly aims to enhance the deployment efficiency of MoE LLMs by introducing plug-and-play expert-level sparsification techniques. Specifically, we propose, for the first time to our best knowledge, posttraining approaches for task-agnostic and task-specific expert pruning and skipping of MoE LLMs, tailored to improve deployment efficiency while maintaining model performance across a wide range of tasks. Extensive experiments show that our proposed methods can simultaneously reduce model sizes and increase the inference speed, while maintaining satisfactory performance. Code will be made available at https://github.com/Lucky-Lance/Expert_Sparsity.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Large language models (LLMs) have shown remarkable abilities across various domains (OpenAI, 2023; Zhou et al., 2024), as evidenced by the widespread use of ChatGPT and Gemini (Team et al., 2023). Recent notable advancement in this area is the introduction of the open-sourced Mixture-of-Experts (MoE) LLM, Mixtral 8x7B (Jiang et al., 2024), which sparsely activates only a portion of its parameters during the training and inference process. This model surpasses the performance of dense Transformer-based LLMs, such as LLaMA-2 70B (Touvron et al., 2023a,b), with fewer active parameters (13B) during inference.
|
| 14 |
+
|
| 15 |
+
MoE LLMs achieve a reduction in on-the-fly (active) parameters by choosing only top- $k$ experts for the inference of each token, thereby enhancing inference speed (Sanseviero et al., 2023). However, the static parameters, particularly those required for constructing the MoE architecture, still demand considerable memory and storage for deployment. For example, loading the Mixtral 8x7B model in bf16 format requires at least two A100-80G GPUs. Notably, in this MoE model, the eight experts constitute around $96\%$ (45B out of 47B) of the total number of parameters.
|
| 16 |
+
|
| 17 |
+
On the other hand, not all experts are equal in the MoE model. Recent studies, such as (Chi et al., 2022), have demonstrated this discrepancy in expert training outcomes. The differing levels of training among each expert highlight the importance and practicality of identifying and pruning less significant experts, thereby improving the deployment efficiency of MoE models.
|
| 18 |
+
|
| 19 |
+
Unlike existing post-training weight pruning schemes for LLMs, which primarily target unstructured sparsity and N:M semi-structured sparsity (Sun et al., 2023; Frantar and Alistarh, 2023), our approach focuses on expert-level sparsity for model sparsification. The aforementioned fine-grained weight pruning techniques are effective in reducing the total number of parameters. However, they face challenges in plug-and-play deployment due to the necessity for specific hardware designs (e.g., FPGA) (Zhou et al., 2021), which demands an extensive co-design of hardware and systems.
|
| 20 |
+
|
| 21 |
+
In this paper, we systematically explore expert-level sparsity in MoE LLMs and, for the first time to our best knowledge, introduce hardware-friendly post-training methods for either permanently removing unimportant experts (expert pruning) or dynamically skipping experts during inference (dynamic expert skipping). Our proposed method significantly reduces memory usage for deploying MoE LLMs and enhances their inference speed.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Number of Preserved Experts Each Layer (r)
|
| 27 |
+
Figure 1: Memory usage reduction (bf16) and inference speedup illustration of our proposed post-training expert pruning and dynamic (expert) skipping methods on the Mixtral 8x7B (Jiang et al., 2024) model. Our method greatly reduces memory consumption and enhances inference speed.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Number of Preserved Experts Each Layer (r)
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
Initially, we investigate how to prune less important experts while maintaining satisfactory performance, utilizing an efficient post-training approach. We aim to minimize the token reconstruction loss in a layer-by-layer manner. Given the limited number of experts in a single MoE layer of the LLM, we meticulously enumerate and choose combinations of experts that yield the lowest token reconstruction loss, subsequently, concatenating them to obtain the final pruned MoE model. This strategy significantly lowers the memory demands for deploying MoE LLMs. We examine expert-level pruning for both task-agnostic and task-specific (first in literature) models, tailoring our strategies to optimize performance across a wide range of applications.
|
| 35 |
+
|
| 36 |
+
Building on this foundation, we further dive into strategies for accelerating the inference speed of MoE LLMs without compromising their robustness. Specifically, based on the model's fixed expert count, we introduce an online method for dynamically skipping certain experts. This approach, which is complementary to our expert pruning strategy, allows for on-the-fly adjustment of the number of active experts during inference, thus enhancing the inference speed. By integrating the dynamic (expert) skipping approach with expert pruning, we achieve a more streamlined and efficient deployment for MoE LLMs.
|
| 37 |
+
|
| 38 |
+
Experiments on Mixtral 8x7B (Instruct) models (Jiang et al., 2024) demonstrate that our methods significantly reduce memory usage and increase inference speed. Take the example of posttraining pruning two experts. As shown in Fig. 1, we halve the number of GPUs needed, allowing deployment on a single 80G GPU and achieving a $1.2 \times$ inference speedup. The pruning also results in mild performance loss, specifically, around 2.9 points for task-agnostic and 6.2 points (reducible to
|
| 39 |
+
|
| 40 |
+
1.6 with task-specific fine-tuning) for task-specific models. Further combination of dynamic skipping with expert pruning can lead to the same inference speedup with dropping 4 experts while achieving much higher model performances. To the best of our knowledge, this study is the first to discuss expert-level sparsity and propose efficient schemes for expert pruning and skipping for MoE LLMs.
|
| 41 |
+
|
| 42 |
+
# 2 Related Works
|
| 43 |
+
|
| 44 |
+
# 2.1 Mixture-of-Experts Models
|
| 45 |
+
|
| 46 |
+
First introduced in (Jacobs et al., 1991), a Mixture-of-Experts (MoE) model contains multiple separate networks, and each network processes a subset of the entire dataset. This separation can be viewed as a modular transformation of a multi-layer network. MoE structure is used for designing Recurrent Neural Networks (RNNs) in (Shazeer et al., 2017) and further extended to encoder-decoder Transformer-based models (Lepikhin et al., 2020). With the recent development of decoder-only GPT family of models (Brown et al., 2020; Touvron et al., 2023a,b), MoE models based on this structure gain popularity (Jiang et al., 2024). In this paper, we focus on post-training expert pruning/Skipping methodologies for MoE LLMs.
|
| 47 |
+
|
| 48 |
+
# 2.2 Expert Pruning for MoE Models
|
| 49 |
+
|
| 50 |
+
Expert pruning within MoE models has garnered attention in the realm of Natural Language Processing, particularly in machine translation tasks. In these contexts, the translation of specific languages often renders the expertise of other language specialists superfluous. The most activated experts are reserved in (Kim et al., 2021) to prune a machine translation MoE model, and (Koishekenov et al., 2022) proposes expert pruning metrics based on gate statistics collected during decoding. Al
|
| 51 |
+
|
| 52 |
+
though these methods actively deal with expert pruning for MoE models, they are still limited to the machine translation domain with linguistic models. Researchers in (Chen et al., 2022) provide a dropping-while-training method that progressively drops the non-professional experts for target downstream tasks, and experiments are carried out on Switch Transformers models (Fedus et al., 2022). However, in the LLM era, it is usually difficult to afford such a training paradigm.
|
| 53 |
+
|
| 54 |
+
# 2.3 Post-training Pruning for LLMs
|
| 55 |
+
|
| 56 |
+
Post-training pruning (Kwon et al., 2022; Hubara et al., 2021) has become a popular topic for neural network sparsification in recent years. Given a trained model, post-training pruning aims at achieving the optimal model sparsification outcome by utilizing model parameters together with some calibration data. Recent works extend pruning methods to LLMs (Sun et al., 2023; Frantar and Alistarh, 2023). However, these pruning methods primarily focus on sparsifying the weight matrices of linear layers in the LLMs and require dedicated hardware. To the best of our knowledge, efficient post-training expert pruning methods have not been discussed for decoder-only LLMs with MoE structures.
|
| 57 |
+
|
| 58 |
+
# 3 Method
|
| 59 |
+
|
| 60 |
+
To enhance the deployment efficiency of MoE LLMs, we concentrate on expert-level model sparsity and innovatively propose post-training techniques designed to reduce memory usage and increase inference speed. In this section, we offer a comprehensive explanation of our proposed methods for expert pruning (Sec. 3.2) and dynamic (expert) skipping (Sec. 3.3), considering both memory consumption and inference speed.
|
| 61 |
+
|
| 62 |
+
# 3.1 Preliminary
|
| 63 |
+
|
| 64 |
+
In the decoder-only sparse MoE Transformer models, as discussed in (Gale et al., 2023), the Feed-Forward Network (FFN) sub-layers of the traditional dense model are replaced with MoE layers, each containing $n$ experts. Specifically, within the MoE layer of the Mixtral 8x7B model, featuring 8 experts as detailed in (Jiang et al., 2024), each token $x$ in the input sequence is routed to the top-2 experts based on the routing weights $w$ .
|
| 65 |
+
|
| 66 |
+
The inference process for each input token $\pmb{x}$ within the MoE layer of the Mixtral 8x7B decoder layer is depicted in Fig. 2. Initially, the router computes routing logits $l = \{l_0, \dots, l_{n-1}\}$ and routing
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
Figure 2: Illustration of the MoE layer in the Mixtral 8x7B model for per-token inference. The output of the layer is the weighted sum of the outputs from selected experts over input token $\boldsymbol{x}$ . $\widetilde{w}_i$ denotes the normalized routing weight of each selected expert.
|
| 70 |
+
|
| 71 |
+
weights $\boldsymbol{w} = \operatorname{Softmax}(l)$ for the experts. Then the top- $k$ experts, where $k = 2$ for the Mixtral 8x7B model, are selected based on their routing weights to process the token. Each of these $k$ selected experts, applying a SwiGLU transformation $\mathcal{E}_i(\cdot)$ ( $i \in \{0,1,\dots,n-1\}$ ), contributes to the final output. This output is a weighted sum of the individual expert outputs, with weights $\widetilde{w}_i$ being the normalized values of the corresponding routing weights for the selected experts. The normalized weight for expert $e_j$ ( $j \in \{0,1,\dots,k-1\}$ ) is calculated as follows:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\widetilde {w} _ {e _ {j}} = \frac {w _ {e _ {j}}}{\sum_ {m = 0} ^ {k - 1} w _ {e _ {m}}}, \tag {1}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
yielding the MoE layer's output for the token $x$ as:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\boldsymbol {z} = \sum_ {j = 0} ^ {k - 1} \widetilde {\boldsymbol {w}} _ {e _ {j}} \cdot \mathcal {E} _ {e _ {j}} (\boldsymbol {x}). \tag {2}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
Aside from these specified mechanisms, the remaining aspects of the MoE network mirror those of a standard decoder-only Transformer model.
|
| 84 |
+
|
| 85 |
+
# 3.2 Post-training Expert Pruning
|
| 86 |
+
|
| 87 |
+
As demonstrated in the preliminary subsection, the parameters of experts occupy the major proportion of the whole MoE LLM model. However, for a single token, only a small subset of these experts are activated, leading to considerable inefficiencies in parameter utilization. Existing posttraining weight pruning methods for LLMs (e.g., Wanda (Sun et al., 2023), SparseGPT (Frantar and Alistarh, 2023)), while effective in reducing model
|
| 88 |
+
|
| 89 |
+

|
| 90 |
+
Figure 3: Framework of our proposed expert pruning and dynamic skipping methods. (a) The expert pruning method evaluates the contributions of experts via a small calibration dataset and then permanently discards those with low contributions (e.g., experts with a slashed background). (b) The dynamic skipping method discard no experts instead dynamically decides whether to skip certain experts (e.g., experts with a yellow background) during inference.
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 4: Expert selection comparison between C4 and MATH dataset with $r = 6$ for Mixtral 8x7B model. Significant divergence is observed in the selection of experts across these two datasets, and identical expert combinations are observed in only four specific layers (i.e., layer 2, layer 4, layer16, and layer 31).
|
| 96 |
+
|
| 97 |
+
parameters, do not support efficient deployment of MoE LLMs without specialized hardware implementations (Mishra et al., 2021). Therefore, we introduce a heuristic search method to prune the number of experts in a post-training manner.
|
| 98 |
+
|
| 99 |
+
Task-agnostic Expert Pruning for General Tasks. Different from existing pruning schemes leveraging unstructured or semi-structured weight sparsity (Sun et al., 2023; Frantar and Alistarh, 2023) for LLMs, our proposed post-training expert pruning method aims at reducing the parameter numbers of MoE LLMs by permanently discarding less important experts, thereby improve the inference efficiency. It is a post-training pruning method and does not require any parameter update. Fig. 3 (a) illustrates our proposed post-training expert pruning method. We conduct expert pruning in a layer-wise manner. Specifically, the pruning method contains two steps as follows.
|
| 100 |
+
|
| 101 |
+
Firstly, we set up a small calibration dataset, then perform inference on the original MoE model with all experts over the dataset, and cache the input-output token pairs of each MoE layer. We use samples from the pre-training dataset C4 (Raffel
|
| 102 |
+
|
| 103 |
+
et al., 2019) as calibration data, since pre-training datasets are often more comprehensive and not dominated by knowledge specific to any particular domain (Sun et al., 2023).
|
| 104 |
+
|
| 105 |
+
Secondly, after caching input-output pairs for each MoE layer, we enumerate expert combinations based on the preset parameter $r$ , denoting the number of preserved experts. Assume the function of the MoE layer at layer $l$ is $\mathcal{F}(\cdot)$ , with the cached input represented by $x$ . During each enumeration, we maintain $r$ experts and eliminate the remaining experts along with their associated routing weights. Subsequently, we employ the pruned MoE layer, denoted as $\mathcal{F}'(\cdot, \mathbf{C})$ , to recalculate the corresponding output, where $\mathbf{C}$ represents a subset containing $r$ experts selected from the original $n$ experts. Inspired by channel pruning in CNNs (He et al., 2017), the Frobenius norm of the difference between cached output $\mathcal{F}(x)$ and the output of pruned layer $\mathcal{F}'(x, \mathbf{C})$ is used to quantify the discrepancy between the model before and after expert pruning, and we denote it as reconstruction loss. The expert subset corresponding to the minimum reconstruction loss is retained. The $n - r$ experts
|
| 106 |
+
|
| 107 |
+
left are considered to contribute least to the original MoE model and are thus discarded. The expert pruning process in layer $l$ can be formulated as:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\min _ {\mathbf {C}} \| \mathcal {F} ^ {\prime} (\boldsymbol {x}, \mathbf {C}) - \mathcal {F} (\boldsymbol {x}) \| _ {F} \tag {3}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\begin{array}{l} \text {s . t .} \mathbf {C} \subseteq \left\{\operatorname {e x p e r t} _ {0}, \dots , \operatorname {e x p e r t} _ {n - 1} \right\}, | \mathbf {C} | = r. \end{array}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
We heuristically search for expert subset $\mathbf{C}$ with the lowest reconstruction loss in each layer separately and obtain an MoE model with $r$ experts by the concatenation of each pruned layer. After removing the insignificant experts, the pruned model can be easily loaded using existing packages (e.g., Huggingface Transformers (Wolf et al., 2020)) with just a change of the model configuration. Especially, with 2 experts pruned, the deployment budget is reduced to a single 80G GPU for loading the Mixtral 8x7B (Instruct) model with bf16 data type.
|
| 118 |
+
|
| 119 |
+
Task-specific Expert Pruning for Domain-specific Tasks. Previous research on post-training pruning for LLMs (Sun et al., 2023; Frantar and Alistarh, 2023) typically considers the performance over general tasks. For the first time, in our work, we investigate the task-specific post-training pruning for MoE LLMs. Our above-proposed expert pruning strategy is adept at conserving the knowledge encapsulated by the experts of an MoE model for general tasks. However, as a pre-training dataset, C4 spans a wide array of domains, posing challenges when pruning experts for domain-specific tasks (e.g., models tailored for mathematics (Yu et al., 2023; Wang et al., 2024)). We evaluate the 5-shot performance of the C4 pruned MoE LLM model with $r = 6$ on math tasks (GSM8K) (Cobbe et al., 2021), resulting in a performance degradation plummeting from 58.61 to 41.02 for the Mixtral 8x7B model. To address this challenge, we propose to shift the calibration dataset from C4 to the training set of MATH (Hendrycks et al., 2021), to concentrate the pruning process on the mathematics domain.
|
| 120 |
+
|
| 121 |
+
Remark. For a better comparison between general tasks and domain-specific tasks, we visualize the distribution of pruned experts selected by C4 and MATH, as shown in Fig. 4. For both the Mixtral 8x7B and Mixtral 8x7B Instruct model, identical expert combinations are observed in only four specific layers. This suggests that there are distinct differences in the distributions of pre-training datasets and domain-specific datasets. Further details and discussions are provided in Sec. 4.2.
|
| 122 |
+
|
| 123 |
+
# 3.3 Dynamic Skipping During Inference
|
| 124 |
+
|
| 125 |
+
Our expert pruning strategy effectively reduces memory consumption during model deployment. However, each token is still processed by $k$ selected experts, without a reduction in runtime FLOPs. Intuitively, not all tokens require the selection of all top- $k$ experts during the token generation process. Consequently, we introduce a scheme that dynamically skips certain experts for individual token inference, to further enhance inference efficiency.
|
| 126 |
+
|
| 127 |
+
As shown in Fig. 2, during the inference process, top- $k$ experts are chosen with routing weights $\boldsymbol{w} = \{w_{e_0}, w_{e_1}, \dots, w_{e_{k-1}}\}$ for each token $\boldsymbol{x}$ in an MoE layer. For simplicity, we assume $k = 2$ (as in Mixtral 8x7B) $^2$ . Our proposed dynamic expert skipping method is illustrated in Fig. 3 (b). Without loss of generality, assume experts with indices $e_0$ and $e_1$ are chosen, and $w_{e_1} < w_{e_0}$ . To accelerate inference speed, if $w_{e_1} < \beta w_{e_0}$ , we do not assign $\boldsymbol{x}$ to expert $e_1$ , where $\beta$ is a hyper-parameter separately set for each MoE layer. In our implementation, we forward the model over the sampled calibration data and set $\beta$ as the median value of $\frac{w_{e_1}}{w_{e_0}}$ for each MoE layer. The dynamic skipping scheme can be carried out on the fly to speed up inference, and can be used simultaneously with expert pruning. In our experiments, we observe a $1.2 \times 1.3 \times 1.3$ inference speedup with $r = 6$ .
|
| 128 |
+
|
| 129 |
+
# 4 Experiment
|
| 130 |
+
|
| 131 |
+
In this section, a series of experiments are carried out to evaluate our proposed methods. We introduce experiments of expert pruning for general tasks in Sec. 4.1, domain-specific tasks in Sec. 4.2, and dynamic expert skipping results in Sec. 4.3.
|
| 132 |
+
|
| 133 |
+
# 4.1 Expert Pruning for General Tasks
|
| 134 |
+
|
| 135 |
+
In this subsection, we evaluate the proposed expert pruning method on some general tasks, which can comprehensively reflect the knowledge retention of the model after expert pruning.
|
| 136 |
+
|
| 137 |
+
Experiment Setup. Similar to Wanda (Sun et al., 2023), we choose calibration data from the C4 (Raffel et al., 2019) dataset and combine them into 128 token sequences, each with a length of $2048^{3}$ . We perform expert pruning on both Mixtral 8x7B and Mixtral 8x7B Instruct models, resulting in MoE
|
| 138 |
+
|
| 139 |
+
<table><tr><td>Model</td><td>Method</td><td>Sparsity</td><td>ARC-c</td><td>ARC-e</td><td>BoolQ</td><td>HellaSwag</td><td>MMLU</td><td>OBQA</td><td>RTE</td><td>WinoGrande</td><td>Average</td><td>Mem (MB)</td><td>Speedup</td></tr><tr><td rowspan="2">Mixtral 8x7B</td><td>Wanda</td><td>2:4</td><td>42.06</td><td>74.16</td><td>76.64</td><td>53.16</td><td>52.21</td><td>27.00</td><td>63.90</td><td>70.96</td><td>57.51</td><td>51,214</td><td>0.91×</td></tr><tr><td>Ours</td><td>r = 4</td><td>48.89</td><td>78.16</td><td>81.35</td><td>57.66</td><td>47.30</td><td>29.00</td><td>61.37</td><td>72.85</td><td>59.57</td><td>46,879</td><td>1.27×</td></tr><tr><td>Mixtral 8x7B</td><td>Wanda</td><td>2:4</td><td>48.89</td><td>78.70</td><td>86.27</td><td>56.24</td><td>57.84</td><td>30.40</td><td>72.20</td><td>71.82</td><td>62.80</td><td>51,210</td><td>0.92×</td></tr><tr><td>Instruct</td><td>Ours</td><td>r = 4</td><td>53.92</td><td>79.88</td><td>84.77</td><td>60.05</td><td>52.75</td><td>30.40</td><td>75.45</td><td>73.80</td><td>63.88</td><td>46,879</td><td>1.27×</td></tr></table>
|
| 140 |
+
|
| 141 |
+
Table 1: Comparison with Wanda (Sun et al., 2023) at the structured 2:4 sparsity pattern. Our proposed expert pruning method $(r = 4)$ outperforms Wanda in all aspects. Mem stands for memory usage. The original average performance of Mixtral 8x7B and Mixtral 8x7B Instruct model is 67.58 and 69.98, respectively.
|
| 142 |
+
|
| 143 |
+
<table><tr><td>Model</td><td>Method</td><td>r</td><td>ARC-c</td><td>ARC-e</td><td>BoolQ</td><td>HellaSwag</td><td>MMLU</td><td>OBQA</td><td>RTE</td><td>WinoGrande</td><td>Average</td></tr><tr><td rowspan="7">Mixtral 8x7B</td><td>None</td><td>8</td><td>57.17</td><td>84.01</td><td>85.35</td><td>64.88</td><td>67.88</td><td>35.00</td><td>70.40</td><td>75.93</td><td>67.58</td></tr><tr><td rowspan="2">Random</td><td>6</td><td>48.04</td><td>78.49</td><td>81.99</td><td>59.02</td><td>60.77</td><td>33.40</td><td>66.79</td><td>75.85</td><td>63.04</td></tr><tr><td>4</td><td>39.85</td><td>68.35</td><td>78.59</td><td>53.32</td><td>49.23</td><td>29.20</td><td>62.82</td><td>69.93</td><td>56.41</td></tr><tr><td rowspan="2">Frequency</td><td>6</td><td>49.06</td><td>78.83</td><td>77.03</td><td>59.38</td><td>55.18</td><td>33.60</td><td>57.40</td><td>75.69</td><td>60.77</td></tr><tr><td>4</td><td>43.86</td><td>73.61</td><td>76.97</td><td>54.01</td><td>41.48</td><td>26.20</td><td>57.04</td><td>73.48</td><td>55.83</td></tr><tr><td rowspan="2">Ours</td><td>6</td><td>51.62</td><td>81.94</td><td>83.64</td><td>61.60</td><td>58.72</td><td>33.00</td><td>67.87</td><td>75.37</td><td>64.22</td></tr><tr><td>4</td><td>48.89</td><td>78.16</td><td>81.35</td><td>57.66</td><td>47.30</td><td>29.00</td><td>61.37</td><td>72.85</td><td>59.57</td></tr><tr><td rowspan="7">Mixtral 8x7B Instruct</td><td>None</td><td>8</td><td>62.20</td><td>87.04</td><td>88.50</td><td>67.59</td><td>68.87</td><td>36.60</td><td>72.20</td><td>76.87</td><td>69.98</td></tr><tr><td rowspan="2">Random</td><td>6</td><td>54.52</td><td>83.04</td><td>87.25</td><td>63.21</td><td>62.70</td><td>35.40</td><td>72.92</td><td>77.19</td><td>67.03</td></tr><tr><td>4</td><td>48.81</td><td>75.46</td><td>78.47</td><td>57.48</td><td>53.68</td><td>31.80</td><td>72.56</td><td>70.96</td><td>61.15</td></tr><tr><td rowspan="2">Frequency</td><td>6</td><td>55.89</td><td>82.83</td><td>86.33</td><td>63.69</td><td>58.89</td><td>37.00</td><td>63.18</td><td>76.01</td><td>65.48</td></tr><tr><td>4</td><td>49.40</td><td>77.27</td><td>82.97</td><td>57.66</td><td>47.03</td><td>32.20</td><td>66.79</td><td>74.03</td><td>60.92</td></tr><tr><td rowspan="2">Ours</td><td>6</td><td>58.19</td><td>84.89</td><td>87.34</td><td>65.24</td><td>62.47</td><td>35.60</td><td>70.04</td><td>75.85</td><td>67.45</td></tr><tr><td>4</td><td>53.92</td><td>79.88</td><td>84.77</td><td>60.05</td><td>52.75</td><td>30.40</td><td>75.45</td><td>73.80</td><td>63.88</td></tr></table>
|
| 144 |
+
|
| 145 |
+
Table 2: Zero-shot performance evaluation of different expert pruning methods with $r$ set to 6 and 4. Random stands for randomly choosing experts to discard in each MoE layer. Frequency stands for dropping experts based on their activation frequency during the inference over calibration data. Our proposed expert pruning method leads to the least performance drop, with around 2.9 points for dropping 2 experts and 7.1 points for dropping 4 experts.
|
| 146 |
+
|
| 147 |
+
models with two experts discarded ( $r = 6$ ) and four experts discarded ( $r = 4$ ) in each layer. Pruning a Mixtral 8x7B model takes about 30 minutes for $r = 6$ and 90 minutes for $r = 4$ .
|
| 148 |
+
|
| 149 |
+
After expert pruning, we evaluate the performance of the pruned MoE models following Wanda (Sun et al., 2023). Specifically, we report zero-shot accuracies of 8 tasks from EleutherAI LM Harness (Gao et al., 2023). We also test the token generation speed $^4$ , together with the peak GPU memory usage during model inference.
|
| 150 |
+
|
| 151 |
+
Comparison with Weight Pruning Methods. We compare our proposed expert pruning method with the representative weight pruning algorithm Wanda. For a fair comparison, we set $r = 4$ in our method and test Wanda with the commonly used structured 2:4 sparsity pattern. This will lead to around $50\%$ parameter reduction for both methods. The results are shown in Tab. 1. The inference speedup of 2:4 structured model relies on specially designed hardware (Mishra et al., 2021) and scripts. In our experiments, we even observe a lower inference speed compared with the dense weight model<sup>5</sup>.
|
| 152 |
+
|
| 153 |
+
Besides, our expert pruning method excels Wanda with the 2:4 sparsity pattern in both memory usage and benchmark performance.
|
| 154 |
+
|
| 155 |
+
Comparison with Other Expert Pruning Baselines. We also set up two baseline methods. One baseline is randomly dropping experts in each layer. The other method calculates the activation frequency of each expert during forward passes on the calibration data and discards those with the lowest activation frequencies in each layer. Comparison results are listed in Tab. 2. The method based on activation frequency gets the worst performance. This phenomenon implies that although the MoE model might show a tendency for expert selection during the inference process, simply carrying out expert pruning based on activation frequency might not always lead to desirable results. In contrast, our proposed method achieves better results. Compared to the origin model with 8 experts, our model achieves a 2.9-point performance drop with $24\%$ parameter reduction and a 7.1-point performance drop with $48\%$ parameter reduction on average without any extra training.
|
| 156 |
+
|
| 157 |
+
Memory Usage and Generation Speed. The memory usage statistics are shown in Fig. 1. It takes 2 A100-80G GPUs to load and forward the
|
| 158 |
+
|
| 159 |
+
<table><tr><td>Model</td><td>Method</td><td>Sparsity</td><td>GSM8K (5-shot)</td></tr><tr><td rowspan="9">Mixtral 8x7B</td><td>None</td><td>None</td><td>58.61</td></tr><tr><td>Wanda (C4)</td><td>2:4</td><td>14.10</td></tr><tr><td>Wanda (MATH)</td><td>2:4</td><td>20.39</td></tr><tr><td>Random</td><td>r = 4</td><td>0.68</td></tr><tr><td>Ours (C4)</td><td>r = 4</td><td>24.87</td></tr><tr><td>Ours (MATH)</td><td>r = 4</td><td>37.07</td></tr><tr><td>Random</td><td>r = 6</td><td>36.39</td></tr><tr><td>Ours (C4)</td><td>r = 6</td><td>41.02</td></tr><tr><td>Ours (MATH)</td><td>r = 6</td><td>51.25</td></tr><tr><td rowspan="9">Mixtral 8x7BInstruct</td><td>None</td><td>None</td><td>63.46</td></tr><tr><td>Wanda (C4)</td><td>2:4</td><td>26.69</td></tr><tr><td>Wanda (MATH)</td><td>2:4</td><td>31.31</td></tr><tr><td>Random</td><td>r = 4</td><td>0.76</td></tr><tr><td>Ours (C4)</td><td>r = 4</td><td>30.40</td></tr><tr><td>Ours (MATH)</td><td>r = 4</td><td>47.01</td></tr><tr><td>Random</td><td>r = 6</td><td>39.80</td></tr><tr><td>Ours (C4)</td><td>r = 6</td><td>48.52</td></tr><tr><td>Ours (MATH)</td><td>r = 6</td><td>58.38</td></tr></table>
|
| 160 |
+
|
| 161 |
+
Table 3: 5-shot GSM8K (Cobbe et al., 2021) accuracy comparison for sampling calibration data from different datasets. Random pruning will lead to bad performance in this case. Compared with pre-training datasets, sampling from domain-specific datasets will significantly improve the performance on corresponding tasks after expert pruning. Our expert pruning strategy also outperforms Wanda with 2:4 structured sparsity.
|
| 162 |
+
|
| 163 |
+
original 8-expert model with bf16 data type. After pruning 2 and 4 experts, only one 80G GPU is needed for the inference process. For token generation speed analysis, during model inference, we still need to route each token to two experts. However, reducing the number of GPUs required to load the model can decrease the time consumed by GPU intercommunication, resulting in a much higher token generation speed. We observe a $1.20 \times$ token generation speedup for the model with 2 experts pruned and a $1.27 \times$ speedup with 4 experts pruned.
|
| 164 |
+
|
| 165 |
+
# 4.2 Expert Pruning for Domain-Specific Tasks
|
| 166 |
+
|
| 167 |
+
Experiment Setup. We investigate on mathematical reasoning tasks. We randomly sample sentences from the train set of MATH (Hendrycks et al., 2021) and combine them into 128 token sequences, each with a length of 2048. We carry out expert pruning with $r = 6$ and $r = 4$ , then test 5-shot GSM8K (Cobbe et al., 2021) results.
|
| 168 |
+
|
| 169 |
+
Baselines to Compare. We compare the 5-shot GSM8K result with randomly pruned models, models pruned using samples from C4 as calibration data, the 2:4 structured model obtained by Wanda, as well as the original MoE model with 8 experts. Vanilla Wanda uses C4 for data calibration. To test the influence of the calibration dataset on model
|
| 170 |
+
|
| 171 |
+
<table><tr><td>Model</td><td>Method</td><td>r</td><td>GSM8K</td><td>MATH</td></tr><tr><td>MetaMath 70B</td><td>None</td><td>N/A</td><td>82.30</td><td>26.60</td></tr><tr><td rowspan="4">Mixtral 8x7B</td><td>None</td><td>8</td><td>81.35</td><td>34.86</td></tr><tr><td>Ours (C4)</td><td>6</td><td>79.53</td><td>32.48</td></tr><tr><td>Ours (MATH)</td><td>6</td><td>79.53</td><td>33.58</td></tr><tr><td>Ours (MATH)</td><td>7</td><td>81.20</td><td>34.40</td></tr><tr><td rowspan="4">Mixtral 8x7B Instruct</td><td>None</td><td>8</td><td>81.43</td><td>35.46</td></tr><tr><td>Ours (C4)</td><td>6</td><td>79.83</td><td>32.70</td></tr><tr><td>Ours (MATH)</td><td>6</td><td>80.06</td><td>34.10</td></tr><tr><td>Ours (MATH)</td><td>7</td><td>81.50</td><td>34.86</td></tr></table>
|
| 172 |
+
|
| 173 |
+
Table 4: Zero-shot evaluation results of GSM8K (Cobbe et al., 2021) and MATH (Hendrycks et al., 2021) after training the MoE models on MetaMathQA (Yu et al., 2023) with different expert numbers and different calibration datasets for expert pruning. Using domain-specific data can result in better performance on corresponding downstream tasks. Model fine-tuning can greatly reduce the performance gaps between the pruned models and the original model.
|
| 174 |
+
|
| 175 |
+
performance, we also leverage the MATH dataset for Wanda pruning.
|
| 176 |
+
|
| 177 |
+
Evaluation Results. Tab. 3 illustrates the 5-shot evaluation results on the GSM8K dataset. The performance witnesses a significant drop after random pruning, or pruning with calibration data obtained from C4. However, this degradation dramatically reduces after leveraging the MATH dataset for calibration data construction. A similar phenomenon is also observed with Wanda. This indicates that when facing domain-specific tasks, using datasets corresponding to these specific tasks can yield better expert pruning results than using pre-training datasets. It also implies that our proposed method for changing the calibration dataset for domain-specific tasks can also be applied to other pruning algorithms. Besides, our expert pruning strategy $(r = 4)$ significantly outperforms Wanda with 2:4 structured sparsity.
|
| 178 |
+
|
| 179 |
+
More Discussion. Using samples from the MATH dataset can greatly improve the domain-specific performance on mathematics tasks. However, as our method follows a post-training manner without any training, the expert pruning scheme still leads to a significant performance drop. To reduce the performance gap between pruned models and original models, we fully fine-tune the MoE models with different expert numbers on the MetaMathQA (Yu et al., 2023) dataset and compare their performances. We fine-tune and compare models pruned by C4 ( $r = 6$ ), MATH ( $r = 6$ , $r = 7$ ) and the original 8-expert model. The zero-shot GSM8K@1 and MATH@1 accuracies after fine-tuning different MoE models are shown in Tab. 4.
|
| 180 |
+
|
| 181 |
+
<table><tr><td>Model</td><td>r</td><td>Pruning</td><td>Skipping</td><td>LM-eval</td><td>Speedup</td></tr><tr><td rowspan="6">Mixtral 8x7B</td><td>8</td><td></td><td></td><td>67.58</td><td>1.00×</td></tr><tr><td>8</td><td></td><td>✓</td><td>66.37</td><td>1.08×</td></tr><tr><td>6</td><td>✓</td><td></td><td>64.22</td><td>1.19×</td></tr><tr><td>6</td><td>✓</td><td>✓</td><td>62.91</td><td>1.23×</td></tr><tr><td>4</td><td>✓</td><td></td><td>59.57</td><td>1.27×</td></tr><tr><td>4</td><td>✓</td><td>✓</td><td>57.91</td><td>1.31×</td></tr><tr><td rowspan="6">Mixtral 8x7BInstruct</td><td>8</td><td></td><td></td><td>69.98</td><td>1.00×</td></tr><tr><td>8</td><td></td><td>✓</td><td>69.03</td><td>1.08×</td></tr><tr><td>6</td><td>✓</td><td></td><td>67.45</td><td>1.20×</td></tr><tr><td>6</td><td>✓</td><td>✓</td><td>66.04</td><td>1.27×</td></tr><tr><td>4</td><td>✓</td><td></td><td>63.88</td><td>1.27×</td></tr><tr><td>4</td><td>✓</td><td>✓</td><td>62.33</td><td>1.33×</td></tr></table>
|
| 182 |
+
|
| 183 |
+
Table 5: Evaluation results of combining expert pruning with dynamic skipping. We carry out expert pruning using calibration data sampled from C4, then infer the pruned models with dynamic expert skipping. We set $\beta$ as the median value of $w_{e_1} / w_{e_0}$ of the calibration set. The dynamic expert skipping method further enhances inference speed with a slight performance drop.
|
| 184 |
+
|
| 185 |
+
As can be seen, the fine-tuning process significantly reduces the performance drop incurred by expert pruning and leads to comparable results with tuning full-expert models. Specifically, for the Mixtral 8x7B Instruct model, the accuracy of the pruned 7-expert model on the GSM8K test set exceeds that of the 8-expert model. This suggests that for certain practical downstream tasks, a large number of experts might not be a necessity for achieving good performance. Also, the pruned models using samples from MATH as the calibration dataset outperform those using C4 after tuning, further highlighting the effectiveness of adopting domain-specific calibration datasets for task-specific models.
|
| 186 |
+
|
| 187 |
+
# 4.3 Dynamic Expert Skipping Results
|
| 188 |
+
|
| 189 |
+
This subsection assesses the effectiveness of our proposed dynamic expert skipping approach. Additionally, we explore the combination of both methods to further improve inference efficiency.
|
| 190 |
+
|
| 191 |
+
Experiment Setup. We perform tests on task-agnostic models for better representativeness. The setup is similar to Sec. 4.1. We first prune the Mixtral 8x7B and Mixtral 8x7B Instruct model using calibration data sampled from the C4 dataset and get the pruned models with $r = 6$ and $r = 4$ . During the testing of different benchmarks, we dynamically skip certain experts. For evaluation, we report the zero-shot accuracies of 8 tasks from EleutherAI LM Harness (Gao et al., 2023). Our proposed dynamic expert skipping method does not influence the memory usage for model inference, so we just report the inference speed in this subsection.
|
| 192 |
+
|
| 193 |
+
Baselines to Compare. We suggest that our proposed dynamic expert skipping can be seamlessly
|
| 194 |
+
|
| 195 |
+
<table><tr><td>Model</td><td>Method</td><td>r</td><td>LM-eval</td></tr><tr><td rowspan="4">Mixtral 8x7B</td><td>Progressive</td><td>6</td><td>64.48</td></tr><tr><td>Layer-wise (Ours)</td><td>6</td><td>64.22</td></tr><tr><td>Progressive</td><td>4</td><td>57.53</td></tr><tr><td>Layer-wise (Ours)</td><td>4</td><td>59.57</td></tr></table>
|
| 196 |
+
|
| 197 |
+
Table 6: Comparison between the layer-wise pruning manner and the progressive pruning manner. The progressive scheme will lead to more performance degradation with a high expert pruning rate.
|
| 198 |
+
|
| 199 |
+
integrated with the expert pruning approach. For setting up baselines, we evaluate zero-shot accuracies of the original 8-expert model without dynamic expert skipping, as well as the accuracies of models pruned to $r = 6$ and $r = 4$ without dynamic expert skipping. Subsequently, we incorporate dynamic expert skipping into the inference process of these models, evaluate accuracies over benchmarks, and measure token generation speedup.
|
| 200 |
+
|
| 201 |
+
Evaluation Results. The evaluation results are illustrated in Tab. 5. We show the average accuracies of the 8 zero-shot tasks at the "LM-eval" column, together with the inference speedup ratio compared to the original 8-expert models. As can be seen, based on expert pruning, the dynamic expert skipping method can further enhance the inference speed with just negligible performance drops. We can achieve nearly $90\%$ performance of the Mixtral 8x7B Instruct model with half parameters and a $1.33 \times$ token generation speedup. Another notable observation is that the Mixtral 8x7B Instruct model using both expert pruning and dynamic skipping with $r = 6$ achieves the same inference speedup as the model using only expert pruning with $r = 4$ while getting a much higher accuracy over the LM-eval benchmark. This phenomenon also proves the efficiency of our dynamic expert skipping approach. For a more comprehensive evaluation, we perform dynamic skipping on task-specific models and observe similar results. Experiment details are shown in the Appendix (Sec. A.4).
|
| 202 |
+
|
| 203 |
+
# 4.4 More Analysis
|
| 204 |
+
|
| 205 |
+
Discussion about Inference Speed. In Fig. 1, we also observe a notable inference acceleration when pruning experts from $r = 6$ to $r = 4$ , a phenomenon not attributable to decreased inter-GPU communication overhead. We think that this enhancement stems primarily from improved temporal and spatial locality. This includes reduced cache misses, optimized memory prefetching, and faster block loading. Readers may refer to papers related to memory-intensive LLM inference (such
|
| 206 |
+
|
| 207 |
+
as (Alizadeh et al., 2023)) to find more explanation.
|
| 208 |
+
|
| 209 |
+
More Ablations. We carry out efficient layerwise expert pruning in this work. Readers may be curious about the effectiveness compared with a layer-by-layer progressive searching paradigm, where the pruning of subsequent layers is aware of the pruning result of previous layers. To this end, we compare these two pruning paradigms in Tab. 6, leveraging the Mixtral 8x7B model and calibration samples from the C4 dataset. Although the layer-by-layer progressive manner can get slightly better results with fewer experts pruned, when it comes to a high expert pruning rate (e.g., $50\%$ pruning rate with $r = 4$ ), more performance drop is observed. We attribute this to the possible overfitting of the small calibration dataset.
|
| 210 |
+
|
| 211 |
+
# 5 Conclusion and Discussion
|
| 212 |
+
|
| 213 |
+
In this paper, based on the structural characteristics of MoE LLMs and the shortcomings of current weight pruning schemes, we focus on expert-level model sparsification and, for the first time, provide post-training expert pruning together with dynamic (expert) skipping methods to enhance the deployment efficiency of MoE LLMs. Our methods can significantly reduce memory usage and enhance inference speed while maintaining high model performance. Looking ahead, we aim to further refine our pruning/skipping techniques and incorporate them with weight pruning or parameter quantization strategies, achieving more effective deploying approaches for MoE LLMs.
|
| 214 |
+
|
| 215 |
+
# Limitations
|
| 216 |
+
|
| 217 |
+
Our method can reduce memory usage and improve inference speed for more efficient deployment of MoE LLMs. Despite its advancements, there are still some limitations. Firstly, our method for expert pruning is based on the enumeration of expert combinations. This is feasible for pruning currently popular MoE LLMs with 4 or 8 experts. However, with the number of experts in each MoE layer increasing (e.g., 32 experts in one MoE layer), it will be cumbersome to perform our pruning algorithm. Secondly, we conduct experiments on the open-sourced Mixtral 8x7B and Mixtral 8x7B Instruct models as they are by far the most popular MoE LLMs. With the development of MoE LLMs, we will carry out experiments on other MoE LLMs in the future to give a more comprehensive analysis of the generalizability and scalability of our method.
|
| 218 |
+
|
| 219 |
+
# Ethics Statement
|
| 220 |
+
|
| 221 |
+
Our research focuses on improving the deployment efficiency of Mixture-of-Experts (MoE) large language models (LLMs) through expert-level sparsification techniques, aiming to reduce model sizes and enhance inference speed without compromising performance. While our methods offer potential benefits for deploying advanced LLMs more broadly and efficiently, we acknowledge the importance of considering the ethical implications of deploying such models. These include ensuring the responsible use of LLMs, mitigating biases in model outputs, and addressing privacy concerns. We commit to making our code available for transparency and encourage the community to use our findings responsibly, considering the societal impacts of deploying LLMs.
|
| 222 |
+
|
| 223 |
+
# Acknowledgement
|
| 224 |
+
|
| 225 |
+
This project is funded in part by National Key R&D Program of China Project 2022ZD0161100, by the Centre for Perceptual and Interactive Intelligence (CPII) Ltd under the Innovation and Technology Commission (ITC)'s InnoHK, by General Research Fund of Hong Kong RGC Project 14204021. Hongsheng Li is a PI of CPII under the InnoHK.
|
| 226 |
+
|
| 227 |
+
# References
|
| 228 |
+
|
| 229 |
+
Keivan Alizadeh, Iman Mirzadeh, Dmitry Belenko, Karen Khatamifard, Minsk Cho, Carlo C Del Mundo, Mohammad Rastegari, and Mehrdad Farajtabar. 2023. Llm in a flash: Efficient large language model inference with limited memory.
|
| 230 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.
|
| 231 |
+
Tianyu Chen, Shaohan Huang, Yuan Xie, Binxing Jiao, Daxin Jiang, Haoyi Zhou, Jianxin Li, and Furu Wei. 2022. Task-specific expert pruning for sparse mixture-of-experts. arXiv preprint arXiv:2206.00277.
|
| 232 |
+
Zewen Chi, Li Dong, Shaohan Huang, Damai Dai, Shuming Ma, Barun Patra, Saksham Singhal, Payal Bajaj, Xia Song, Xian-Ling Mao, Heyan Huang, and Furu Wei. 2022. On the representation collapse of sparse mixture of experts. In Advances in Neural Information Processing Systems.
|
| 233 |
+
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias
|
| 234 |
+
|
| 235 |
+
Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.
|
| 236 |
+
Shuangrui Ding, Peisen Zhao, Xiaopeng Zhang, Rui Qian, Hongkai Xiong, and Qi Tian. 2023. Prune spatio-temporal tokens by semantic-aware temporal accumulation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 16945-16956.
|
| 237 |
+
William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. The Journal of Machine Learning Research, 23(1):5232-5270.
|
| 238 |
+
Elias Frantar and Dan Alistarh. 2023. Sparsegpt: Massive language models can be accurately pruned in one-shot. In International Conference on Machine Learning, pages 10323-10337. PMLR.
|
| 239 |
+
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2022. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323.
|
| 240 |
+
Trevor Gale, Deepak Narayanan, Cliff Young, and Matei Zaharia. 2023. Megablocks: Efficient sparse training with mixture-of-experts. Proceedings of Machine Learning and Systems, 5.
|
| 241 |
+
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.
|
| 242 |
+
Yihui He, Xiangyu Zhang, and Jian Sun. 2017. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE international conference on computer vision, pages 1389-1397.
|
| 243 |
+
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. NeurIPS.
|
| 244 |
+
Itay Hubara, Brian Chmiel, Moshe Island, Ron Banner, Joseph Naor, and Daniel Soudry. 2021. Accelerated sparse neural training: A provable and efficient method to find n: m transposable masks. Advances in neural information processing systems, 34:21099-21111.
|
| 245 |
+
Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. 1991. Adaptive mixtures of local experts. Neural computation, 3(1):79-87.
|
| 246 |
+
Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las
|
| 247 |
+
|
| 248 |
+
Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088.
|
| 249 |
+
Sehoon Kim, Sheng Shen, David Thorsley, Amir Gholami, Woosuk Kwon, Joseph Hassoun, and Kurt Keutzer. 2022. Learned token pruning for transformers. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 784-794.
|
| 250 |
+
Young Jin Kim, Ammar Ahmad Awan, Alexandre Muzio, Andres Felipe Cruz Salinas, Liyang Lu, Amr Hendy, Samyam Rajbhandari, Yuxiong He, and Hany Hassan Awadalla. 2021. Scalable and efficient moe training for multitask multilingual models. arXiv preprint arXiv:2109.10465.
|
| 251 |
+
Yeskendir Koishekenov, Alexandre Berard, and Vassilina Nikoulina. 2022. Memory-efficient nllb-200: Language-specific expert pruning of a massively multilingual machine translation model. arXiv preprint arXiv:2212.09811.
|
| 252 |
+
Woosuk Kwon, Sehoon Kim, Michael W Mahoney, Joseph Hassoun, Kurt Keutzer, and Amir Gholami. 2022. A fast post-training pruning framework for transformers. Advances in Neural Information Processing Systems, 35:24101-24116.
|
| 253 |
+
Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan First, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2020. Gshard: Scaling giant models with conditional computation and automatic sharding. arXiv preprint arXiv:2006.16668.
|
| 254 |
+
Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Xingyu Dang, and Song Han. 2023. Awq: Activation-aware weight quantization for lIm compression and acceleration. arXiv preprint arXiv:2306.00978.
|
| 255 |
+
Asit Mishra, Jorge Albericio Latorre, Jeff Pool, Darko Stosic, Dusan Stosic, Ganesh Venkatesh, Chong Yu, and Paulius Micikevicius. 2021. Accelerating sparse deep neural networks. arXiv preprint arXiv:2104.08378.
|
| 256 |
+
OpenAI. 2023. Gpt-4 technical report. ArXiv, abs/2303.08774.
|
| 257 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv e-prints.
|
| 258 |
+
Omar Sanseviero, Lewis Tunstall, Philipp Schmid, Sourab Mangrulkar, Younes Belkada, and Pedro Cuenca. 2023. Mixture of experts explained.
|
| 259 |
+
Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. 2017. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538.
|
| 260 |
+
|
| 261 |
+
Mingjie Sun, Zhuang Liu, Anna Bair, and J Zico Kolter. 2023. A simple and effective pruning approach for large language models. arXiv preprint arXiv:2306.11695.
|
| 262 |
+
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.
|
| 263 |
+
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.
|
| 264 |
+
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.
|
| 265 |
+
Ke Wang, Houxing Ren, Aojun Zhou, Zimu Lu, Sichun Luo, Weikang Shi, Renrui Zhang, Linqi Song, Mingjie Zhan, and Hongsheng Li. 2024. Mathcoder: Seamless code integration in LLMs for enhanced mathematical reasoning. In The Twelfth International Conference on Learning Representations.
|
| 266 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, et al. 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.
|
| 267 |
+
Longhui Yu, Weisen Jiang, Han Shi, Jincheng Yu, Zhengying Liu, Yu Zhang, James T Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2023. Metamath: Bootstrap your own mathematical questions for large language models. arXiv preprint arXiv:2309.12284.
|
| 268 |
+
Aojun Zhou, Yukun Ma, Junnan Zhu, Jianbo Liu, Zhi-jie Zhang, Kun Yuan, Wenxiu Sun, and Hongsheng Li. 2021. Learning n: m fine-grained structured sparse neural networks from scratch. arXiv preprint arXiv:2102.04010.
|
| 269 |
+
Aojun Zhou, Ke Wang, Zimu Lu, Weikang Shi, Sichun Luo, Zipeng Qin, Shaoqing Lu, Anya Jia, Linqi Song, Mingjie Zhan, and Hongsheng Li. 2024. Solving challenging math word problems using GPT-4 code interpreter with code-based self-verification. In The Twelfth International Conference on Learning Representations.
|
| 270 |
+
|
| 271 |
+
# A Appendix
|
| 272 |
+
|
| 273 |
+
# A.1 Expert Selection Tendency in MoE Models
|
| 274 |
+
|
| 275 |
+
To investigate the tendency of expert selection during model inference, we analyze the Mixtral 8x7B model using samples from the C4 dataset (Raffel et al., 2019) (Fig. 5 (a)) and the MATH dataset (Hendrycks et al., 2021) (Fig. 5 (b)), respectively. C4 is a pre-training dataset representing the general relationships between experts, MATH is a dataset designed for a specific downstream task. We visualize the probability of different experts being selected in layer 0, layer 15, and layer 31 of the model during inference. As top-2 experts are chosen by default, each grid in the plot represents the frequency of two experts being selected simultaneously during the forward pass over the sample set (the x-axis and the y-axis of the plot each represent one expert). As can be seen from Fig. 5, the model exhibits a certain tendency in the selection of experts, particularly when tailored to specific downstream tasks.
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
Figure 5: Frequency visualization of expert selection in layer 0, layer 15, and layer 31 for the Mixtral 8x7B model on samples of (a) C4 (Raffel et al., 2019) and (b) MATH (Hendrycks et al., 2021) dataset respectively. The model exhibits certain preferences in the selection of experts.
|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
|
| 290 |
+
# A.2 Theoretical Insight and Broader Application of Dynamic Skipping
|
| 291 |
+
|
| 292 |
+
Consider a single MoE layer. Suppose in a top- $k$ setting with a total of $n$ experts, for every single token $\pmb{x}$ , the routing weights of the $n$ experts are $w_{1},\ldots ,w_{n},\sum_{i = 1}^{n}w_{i} = 1$ . Without loss of generality, we assume $w_{1}\geq w_{2}\geq \dots \geq w_{k}\geq \dots \geq$ $w_{n}$ , and the output feature vector of each expert are $\mathbf{f}_1,\ldots ,\mathbf{f}_k,\ldots ,\mathbf{f}_n$ , where $\mathbf{f}_i = \mathcal{E}_i(\mathbf{x})$ .
|
| 293 |
+
|
| 294 |
+
Without dynamic skipping, the original output
|
| 295 |
+
|
| 296 |
+
of this layer should be:
|
| 297 |
+
|
| 298 |
+
$$
|
| 299 |
+
\boldsymbol {z} = \frac {1}{\sum_ {m = 1} ^ {k} w _ {m}} \sum_ {m = 1} ^ {k} w _ {m} \mathbf {f} _ {m}.
|
| 300 |
+
$$
|
| 301 |
+
|
| 302 |
+
Suppose after dynamic skipping, only top- $i$ experts remain $(1\leq i\leq k)$ . Then the output is:
|
| 303 |
+
|
| 304 |
+
$$
|
| 305 |
+
\hat {z} = \frac {1}{\sum_ {m = 1} ^ {i} w _ {m}} \sum_ {m = 1} ^ {i} w _ {m} \mathbf {f} _ {m}.
|
| 306 |
+
$$
|
| 307 |
+
|
| 308 |
+
As defined above in the main paper, the reconstruction loss can be calculated by:
|
| 309 |
+
|
| 310 |
+
$$
|
| 311 |
+
\mathcal {L} = | | \hat {z} - z | | _ {2}.
|
| 312 |
+
$$
|
| 313 |
+
|
| 314 |
+
Through experiment, we observe that the distribution of $||\mathbf{f}_1 - \mathbf{f}_2||_2$ is fairly concentrated for Mixtral 8x7b on the C4 calibration set. Thus for simplification, we assume $||\mathbf{f}_m - \mathbf{f}_n||_2 (m \neq n)$ to be a fixed value, say $D$ . Therefore,
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
\begin{array}{l} \mathcal {L} = \left\| \hat {\boldsymbol {z}} - \boldsymbol {z} \right\| _ {2} \\ = \left\| \frac {1}{\sum_ {m = 1} ^ {i} w _ {m}} \sum_ {m = 1} ^ {i} w _ {m} \mathbf {f} _ {m} - \frac {1}{\sum_ {m = 1} ^ {k} w _ {m}} \sum_ {m = 1} ^ {k} w _ {m} \mathbf {f} _ {m} \right\| _ {2} \\ = \frac {\left| \left| \sum_ {n = 1} ^ {k} \sum_ {m = 1} ^ {i} w _ {n} w _ {m} \mathbf {f} _ {m} - \sum_ {n = 1} ^ {i} \sum_ {m = 1} ^ {k} w _ {n} w _ {m} \mathbf {f} _ {m} \right| \right| _ {2}}{\left(\sum_ {m = 1} ^ {i} w _ {m}\right) \left(\sum_ {m = 1} ^ {k} w _ {m}\right)} \\ = \frac {\left| \left| \sum_ {n = 1} ^ {k} \sum_ {m = 1} ^ {i} w _ {n} w _ {m} \mathbf {f} _ {m} - \sum_ {n = 1} ^ {k} \sum_ {m = 1} ^ {i} w _ {n} w _ {m} \mathbf {f} _ {n} \right| \right| _ {2}}{\left(\sum_ {m = 1} ^ {i} w _ {m}\right) \left(\sum_ {m = 1} ^ {k} w _ {m}\right)} \\ = \frac {\left| \left| \sum_ {n = i + 1} ^ {k} \sum_ {m = 1} ^ {i} w _ {n} w _ {m} \left(\mathbf {f} _ {m} - \mathbf {f} _ {n}\right) \right| \right| _ {2}}{\left(\sum_ {m = 1} ^ {i} w _ {m}\right) \left(\sum_ {m = 1} ^ {k} w _ {m}\right)} \\ \leq \frac {\left| \left| \sum_ {n = i + 1} ^ {k} \sum_ {m = 1} ^ {i} w _ {n} w _ {m} \right| \right| _ {2} \cdot D}{\left(\sum_ {m = 1} ^ {i} w _ {m}\right) \left(\sum_ {m = 1} ^ {k} w _ {m}\right)} \\ \end{array}
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+
$$
|
| 321 |
+
\begin{array}{l} (= \text {h o l d s i f a l l} (\mathbf {f} _ {m} - \mathbf {f} _ {n}) \text {a r e o f t h e s a m e d i r e c t i o n)} \\ = \frac {\sum_ {m = i + 1} ^ {k} w _ {m}}{\sum_ {m = 1} ^ {k} w _ {m}} D. \\ \end{array}
|
| 322 |
+
$$
|
| 323 |
+
|
| 324 |
+
We set an upper bound $H$ ( $H \leq D$ ) on $\mathcal{L}$ (make $\mathcal{L} \leq H$ ) to trade-off between accuracy and inference speed, then have
|
| 325 |
+
|
| 326 |
+
$$
|
| 327 |
+
\frac {\sum_ {m = i + 1} ^ {k} w _ {m}}{\sum_ {m = 1} ^ {k} w _ {m}} D \leq H.
|
| 328 |
+
$$
|
| 329 |
+
|
| 330 |
+
Let $\beta = \frac{H}{D}$ , we have:
|
| 331 |
+
|
| 332 |
+
$$
|
| 333 |
+
\sum_ {m = i + 1} ^ {k} w _ {m} \leq \beta \cdot \sum_ {m = 1} ^ {k} w _ {m}.
|
| 334 |
+
$$
|
| 335 |
+
|
| 336 |
+
Therefore, in this generalized setting, dynamic skipping should reserve the top- $i^{*}$ experts where
|
| 337 |
+
|
| 338 |
+
$$
|
| 339 |
+
\begin{array}{l} i ^ {*} = \min i \\ \text {s . t .} \sum_ {m = i + 1} ^ {k} w _ {m} \leq \beta \cdot \sum_ {m = 1} ^ {k} w _ {m}. \\ \end{array}
|
| 340 |
+
$$
|
| 341 |
+
|
| 342 |
+
Specifically, in the top-2 setting, for computational simplicity (reduce the use of additions), let $\beta = \frac{H}{D - H}$ (a little abuse of notation), then the dynamic skipping criteria for top-2 is
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
w _ {2} \leq \beta w _ {1}.
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
# A.3 Experiments on the Sizes of Calibration Datasets
|
| 349 |
+
|
| 350 |
+
We prune the Mixtral 8x7b model with different sizes of calibration datasets. To be specific, we randomly sample 1, 2, 4, 16, 64, and 256 sequences (each composed of 2048 tokens) from the C4 dataset to form calibration datasets. Then the model is pruned to $r = 6$ and evaluated on various benchmarks. The average LM-eval results are reported in Tab. 7.
|
| 351 |
+
|
| 352 |
+
<table><tr><td>Number of Sequence</td><td>LM-eval</td></tr><tr><td>1</td><td>62.63</td></tr><tr><td>2</td><td>63.93</td></tr><tr><td>4</td><td>63.53</td></tr><tr><td>16</td><td>63.59</td></tr><tr><td>64</td><td>64.32</td></tr><tr><td>128</td><td>64.22</td></tr><tr><td>256</td><td>63.94</td></tr></table>
|
| 353 |
+
|
| 354 |
+
As can be seen, using 64 and 128 sequences can result in the highest overall results $(\geq 64)$ . Using a small set of sequences will possibly lead to performance degradation (especially for using just 1 sequence), but our method is somewhat robust to the size of datasets, as seen from the table.
|
| 355 |
+
|
| 356 |
+
# A.4 Dynamic Skipping for Domain-specific Tasks
|
| 357 |
+
|
| 358 |
+
We also perform dynamic expert skipping on domain-specific tasks (mathematical reasoning tasks). We calibrate $\beta$ for each layer using samples from the training set of MATH and evaluate 5-shot accuracy on the GSM8K dataset. We also test and report the token generation speed of each MoE model. The results are shown in Tab. 8. In this case, dynamic expert skipping leads to more performance drops. But for the Mixtral 8x7B Instruct model, expert pruning with 2 experts and combining dynamic skipping also leads to the same inference speedup with pruning 4 experts, while achieving higher evaluation accuracy.
|
| 359 |
+
|
| 360 |
+
# A.5 Actual Memory Reduction
|
| 361 |
+
|
| 362 |
+
A more detailed statistical comparison between our expert pruning method with baseline methods on
|
| 363 |
+
|
| 364 |
+
Table 7: Performances of expert pruning with different sizes of calibration datasets.
|
| 365 |
+
|
| 366 |
+
<table><tr><td>Model</td><td>r</td><td>Pruning</td><td>Skipping</td><td>GSM8K (5-shot)</td><td>Speedup</td></tr><tr><td rowspan="6">Mixtral 8x7B</td><td>8</td><td></td><td></td><td>58.61</td><td>1.00×</td></tr><tr><td>8</td><td></td><td>✓</td><td>54.28</td><td>1.08×</td></tr><tr><td>6</td><td>✓</td><td></td><td>51.25</td><td>1.20×</td></tr><tr><td>6</td><td>✓</td><td>✓</td><td>47.16</td><td>1.21×</td></tr><tr><td>4</td><td>✓</td><td></td><td>37.07</td><td>1.29×</td></tr><tr><td>4</td><td>✓</td><td>✓</td><td>34.80</td><td>1.30×</td></tr><tr><td rowspan="6">Mixtral 8x7BInstruct</td><td>8</td><td></td><td></td><td>63.46</td><td>1.00×</td></tr><tr><td>8</td><td></td><td>✓</td><td>61.94</td><td>1.05×</td></tr><tr><td>6</td><td>✓</td><td></td><td>58.38</td><td>1.20×</td></tr><tr><td>6</td><td>✓</td><td>✓</td><td>53.98</td><td>1.28×</td></tr><tr><td>4</td><td>✓</td><td></td><td>47.01</td><td>1.28×</td></tr><tr><td>4</td><td>✓</td><td>✓</td><td>40.33</td><td>1.33×</td></tr></table>
|
| 367 |
+
|
| 368 |
+
the Mixtral 8x7B model is shown in Tab. 9.
|
| 369 |
+
|
| 370 |
+
Table 8: Evaluation results of combining expert pruning with dynamic skipping for domain-specific tasks. Combining two expert-level sparsification methods will lead to more efficient deployment.
|
| 371 |
+
|
| 372 |
+
<table><tr><td>Method</td><td>Sparsity</td><td>Memory (MB)</td></tr><tr><td>None</td><td>None (r = 8)</td><td>89,926 (100%)</td></tr><tr><td>Wanda</td><td>2:4</td><td>51,214 (57%)</td></tr><tr><td>Ours</td><td>r = 6</td><td>68,383 (76%)</td></tr><tr><td>Ours</td><td>r = 4</td><td>46,879 (52%)</td></tr></table>
|
| 373 |
+
|
| 374 |
+
Table 9: Memory reduction comparison of our expert pruning method with baselines on Mixtral 8x7B.
|
| 375 |
+
|
| 376 |
+
# A.6 Relationships with Other Network Pruning and Parameter Quantization Methods
|
| 377 |
+
|
| 378 |
+
As plug-and-play techniques, both our proposed expert pruning and dynamic skipping methods are orthogonal to other model light-weighting schemes (e.g., weight pruning (Frantar and Alistarh, 2023; Sun et al., 2023), token pruning (Kim et al., 2022; Ding et al., 2023)) and are compatible with weight quantization approaches (Frantar et al., 2022; Lin et al., 2023).
|
| 379 |
+
|
| 380 |
+
# A.7 More Experiment Details
|
| 381 |
+
|
| 382 |
+
In this part, we give more experimental details for a better understanding of our proposed methods.
|
| 383 |
+
|
| 384 |
+
Calibration Set Construction for Expert Pruning. For task-agnostic models, we use the samples from C4 (Raffel et al., 2019) as the calibration dataset. Following the setting of Wanda, we sample from the first part of the training data<sup>6</sup>. For task-specific (mathematics) models, we use samples from the training set of MATH (Hendrycks et al., 2021). The structure of the MATH dataset is different from C4, so we reconstruct the dataset in the format of C4 and randomly sample from it.
|
| 385 |
+
|
| 386 |
+
Calibration Set Construction for Dynamic (Expert) Skipping. To calculate $\beta$ for dynamic expert skipping in each MoE layer, we forward the MoE model over the calibration dataset and set $\beta$ as the median value of $\frac{w_{e_1}}{w_{e_0}}$ separately for each layer. We choose to use the median value over the calibration dataset as in this case, the skipping will happen with around $50\%$ possibility. Here we provide the value of $\beta$ for the Mixtral 8x7B model with calibration data sampled from C4 and MATH respectively. As can be seen, the parameter in each layer differs significantly.
|
| 387 |
+
|
| 388 |
+
C4: 0.402,0.494,0.463,0.484,0.478,0.491,0.523, 0.521,0.544,0.570,0.574,0.489,0.503,0.618,0.568, 0.535,0.559,0.519,0.537,0.487,0.469,0.461,0.461, 0.469,0.458,0.418,0.433,0.418,0.406,0.433,0.447, 0.535
|
| 389 |
+
|
| 390 |
+
MATH: 0.503,0.586,0.505,0.531,0.509,0.422, 0.511,0.461,0.447,0.478,0.529,0.454,0.472,0.531, 0.499,0.486,0.503,0.491,0.430,0.440,0.402,0.423, 0.386,0.407,0.395,0.354,0.340,0.351,0.334,0.368, 0.365,0.346
|
| 391 |
+
|
| 392 |
+
Model Fine-tuning. In the part of task-specific expert pruning for domain-specific tasks, we fine-tune the Mixtral 8x7B and Mixtral 8x7B Instruct models with 8 experts, 7 experts, and 6 experts on the MetaMathQA (Yu et al., 2023) dataset. The training is conducted on 16 A100-80G GPUs. We train the model for 900 steps, using a learning rate of 2e-5 with the cosine learning rate scheduler.
|
notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87cf0460a9e1065184a00e394a488a2f7fdc6d531d851d82aac61608365ea4ab
|
| 3 |
+
size 607994
|
notallexpertsareequalefficientexpertpruningandskippingformixtureofexpertslargelanguagemodels/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4c30e3bb700d9d10a7dff1c0e45bac10067ec0e25095dc932995786f91245de
|
| 3 |
+
size 471960
|
nounatlasfillingthegapinnominalsemanticrolelabeling/efb6dfb9-886f-4ad9-81d1-7053ea475ad3_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aab4d11a9dd22ca8ba4ecee74514838ca787ffc9995510d30933c5413a5fc13b
|
| 3 |
+
size 92842
|
nounatlasfillingthegapinnominalsemanticrolelabeling/efb6dfb9-886f-4ad9-81d1-7053ea475ad3_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d0a20ebec76a0373c44c062ba6292de9daa1fc5dbfc0b93548cec92edfb9d57
|
| 3 |
+
size 116153
|
nounatlasfillingthegapinnominalsemanticrolelabeling/efb6dfb9-886f-4ad9-81d1-7053ea475ad3_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07b1d12eb124797c95c07b509ee8bf4c9447fa88ecc8cdbb03a75f172c8d877a
|
| 3 |
+
size 1013459
|
nounatlasfillingthegapinnominalsemanticrolelabeling/full.md
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NounAtlas: Filling the Gap in Nominal Semantic Role Labeling
|
| 2 |
+
|
| 3 |
+
Roberto Navigli $^{1}$ Dennis Rotondi $^{3}$
|
| 4 |
+
|
| 5 |
+
Marco Lo Pinto<sup>1</sup>
|
| 6 |
+
Simone Ciciliano<sup>4</sup>
|
| 7 |
+
|
| 8 |
+
Pasquale Silvestri<sup>1</sup> Alessandro Scirè<sup>1,2</sup>
|
| 9 |
+
|
| 10 |
+
$^{1}$ Sapienza NLP Group, Sapienza University of Rome $^{2}$ Babelscape, Italy
|
| 11 |
+
|
| 12 |
+
<sup>3</sup>University of Stuttgart <sup>4</sup>Free University of Bozen
|
| 13 |
+
|
| 14 |
+
{navigli, scire} @diag.uniroma1.it, dennis.rotondi@ki.uni-stuttgart.de
|
| 15 |
+
|
| 16 |
+
{lopinto.1746911, silvestri.1749274} $@$ studenti.uniroma1.it, sciciliano@unibz.it
|
| 17 |
+
|
| 18 |
+
# Abstract
|
| 19 |
+
|
| 20 |
+
Despite the significant advances made in Semantic Role Labeling (SRL), much work in this field has been carried out with a focus on verbal predicates, with the research on nominal SRL lagging behind. In many contexts, however, nominal predicates are often as informative as verbal ones, thus calling for proper treatment. In this paper we aim to fill this gap and make nominal SRL a first-class citizen. We introduce a novel approach in order to create the first large-scale, high-quality inventory of nominal predicates and organize them into semantically-coherent frames. Although it is automatically created, NounAtlas – our nominal frame inventory – is subsequently fully validated. We then put forward a technique for generating silver training data for nominal SRL and show that a state-of-the-art SRL model can achieve good performance. Interestingly, thanks to our design choices, which enable seamless integration of our predicate inventory with its verbal counterpart, i.e., VerbAtlas, we can mix verbal and nominal data and perform robust SRL on both types of predicate.
|
| 21 |
+
|
| 22 |
+
# 1 Introduction
|
| 23 |
+
|
| 24 |
+
In the ever-evolving field of Natural Language Processing (NLP), the pursuit of Natural Language Understanding (NLU) has garnered increasing attention over the past two decades. Among the open challenges in this domain, Semantic Role Labeling (SRL) is still far from being solved. Pioneered by Gildea and Jurafsky (2002), SRL is the task of identifying the semantic relations between predicates and their arguments (i.e. "Who did What to Whom, When, Where, and How?"). SRL has already proven to be a valuable asset, contributing to diverse tasks, such as question answering (Shen and Lapata, 2007), textual inference (Bastianelli et al., 2013), neural machine translation (Song et al., 2019), visual semantic role labeling (Chen et al., 2021; Sadhu et al., 2021), text summariza
|
| 25 |
+
|
| 26 |
+
tion (Trandabat, 2011) and storytelling (Peng et al., 2022).
|
| 27 |
+
|
| 28 |
+
One common oversimplification regarding SRL is the assumption that most predicates are verbs. Indeed, research has focused heavily on verbs as the driving force of meaning in sentences, also propelled by the development of verb-centric resources (Palmer et al., 2005; Schuler, 2005; Di Fabio et al., 2019). In many contexts, however, nominal predicates are at least as important as their verbal counterparts. This phenomenon is particularly evident in media content, including newspaper headlines, blog titles, short text messages, etc. Consider for instance the sentence "Astounding discovery in the laboratory yesterday night: Dr. Jones unveils groundbreaking research findings!". In this example, the noun "discovery" serves as the Predicate, indicating an action, with its arguments being "Astounding" (ATTRIBUTE of the discovery), "in the laboratory" (LOCATION), "yesterday night" (time), and "Dr. Jones" (AGENT). Such nominal predicates need to be specifically addressed in order for downstream applications to take full advantage of SRL.
|
| 29 |
+
|
| 30 |
+
While some resources have been provided that include nominal framesets, such as NomBank (Meyers et al., 2004) and FrameNet (Baker et al., 1998), their coverage is limited and they provide either predicate-specific roles (NomBank) or overspecific or incomplete frame scenarios (FrameNet).
|
| 31 |
+
|
| 32 |
+
Our work aims to fill this gap and equip Semantic Role Labeling with both a comprehensive inventory of nominal predicates (paired with verbal ones) and annotated datasets to perform the task.
|
| 33 |
+
|
| 34 |
+
In summary our contributions are the following:
|
| 35 |
+
|
| 36 |
+
- We introduce NounAtlas, the first large-scale inventory of predicates for nominal SRL;
|
| 37 |
+
- To facilitate the design of SRL approaches leveraging our resource, we create a large-scale dataset annotated with nominal predi
|
| 38 |
+
|
| 39 |
+
cates and roles from NounAtlas;
|
| 40 |
+
|
| 41 |
+
- We conduct an extensive evaluation of several baselines trained on our dataset. Our experiments pave the way for the development of a state-of-the-art unified system for both nominal and verbal SRL.
|
| 42 |
+
- We release our code and resource at https://github.com/SapienzaNLP/nounatlas under a CC license.
|
| 43 |
+
|
| 44 |
+
# 2 Related Work
|
| 45 |
+
|
| 46 |
+
# 2.1 Nominal Resources
|
| 47 |
+
|
| 48 |
+
Existing resources for SRL are predominantly centered on verbs. The earliest examples of such resources include PropBank (Palmer et al., 2005) and VerbNet (Schuler, 2005). More recently, Di Fabio et al. (2019) introduced VerbAtlas, a hand-crafted lexical-semantic resource that provides a widecoverage verbal predicate inventory offering coarse semantically-coherent frames and informative semantic role labels. The frames are created by systematically clustering all verbal synsets in WordNet (Miller, 1995) using FrameNet-style (Baker et al., 1998) scenarios, while adopting VerbNet's human-interpretable and cross-frame role labels.
|
| 49 |
+
|
| 50 |
+
Based on the frame semantic theory of Fillmore (2006), FrameNet was the first resource to be used for SRL (Gildea and Jurafsky, 2002), and one that includes nominal predicates in its frames. However, FrameNet does not grant full coverage<sup>1</sup>, proving challenging to scale for out-of-domain SRL (Hartmann et al., 2017). Furthermore, although it is explicit and thus human-readable, FrameNet's roles are frame-specific, limiting their generalizability across frames with similar roles.
|
| 51 |
+
|
| 52 |
+
Concerning nominal predicate resources, the state of the art is currently represented by PropBank (Palmer et al., 2005) and NomBank (Meyers et al., 2004). NomBank is a project that aims to annotate a subset of noun predicates that take arguments. It utilizes a framework similar to that of the first version of PropBank, but for annotating noun predicates rather than verbal ones. Differences arise from variations in noun and verb argument structures, as well as disparities in how nouns and verbs are handled within the Penn Treebank (Marcus et al., 1993). These differences in predicate
|
| 53 |
+
|
| 54 |
+
treatment pose challenges in developing an SRL system for both verbal and nominal predicates due to the overhead of treating them in distinct ways, as seen in CoNLL-2009 (Hajic et al., 2009).
|
| 55 |
+
|
| 56 |
+
With NomBank not having been augmented or updated for a long time, nominal predicates began to be included in PropBank, starting from version 2 (Babko-Malaya et al., 2004), where they are referred to as event variables. However, PropBank is verb-oriented: all nominal units have been integrated as aliases of previously-annotated verbal rolesets, which means they are not as thoroughly annotated as their verbal counterparts. Both NomBank and PropBank are primarily limited by their use of enumerated arguments (Arg0, Arg1, etc.), with the absence of an explicit classification of the semantics of predicate roles, making the annotation hard to interpret and overloading the meaning of an argument label. For instance, the first arguments of "drinking" and "feeling" are both labeled as Arg0, despite representing distinct semantic roles (AGENT and EXPERIENCESR, respectively). Also, as of today, NomBank and PropBank suffer from limited coverage of nominal predicates, including 5577 and 4295 nouns, respectively. Moreover, NomBank is built upon PropBank, with 1308 frames and 861 rolesets being shared between the two resources, and a total of 8815 distinct rolesets.
|
| 57 |
+
|
| 58 |
+
# 2.2 Nominal Semantic Role Labeling
|
| 59 |
+
|
| 60 |
+
As Orlando et al. (2023) highlighted in their experiments, nominal Semantic Role Labeling is still far from being solved. Here, a clear indication to focus on enriching nominal resources is the fact that the best SRL neural models (Shi and Lin, 2019; Conia et al., 2021a; Conia and Navigli, 2022; Conia et al., 2022), trained exclusively on verbal predicates, struggle to generalize to unseen nominal ones. Research on non-verbal predicates remains significantly underdeveloped, with existing efforts centered mainly around transferring knowledge from verbal predicates to their nominal counterparts in an unsupervised manner (Klein et al., 2020; Zhao and Titov, 2020), rather than creating resources that enable SRL to generalize easily between verbal and nominal predicates. The limited attention given to non-verbal predicates may be attributed to the prevailing design of current SRL datasets, which utilizes predominantly verbal predicates (Daza and Frank, 2020; Tripodi et al., 2021; Jindal et al., 2022) annotated based on the aforementioned predicate inventories.
|
| 61 |
+
|
| 62 |
+
With our work we aim to fill the gap in nominal SRL. First, we focus on constructing NounAtlas, an inventory of over 10 000 nominal predicates, curated by means of leveraging and inheriting knowledge and semantic frames from VerbAtlas. This addresses the above-mentioned coverage issues and provides integration between nominal and verbal predicates, which can belong to the same frames. Second, we employ the resulting inventory to produce, for the first time, a large dataset for wide-convergence nominal SRL.
|
| 63 |
+
|
| 64 |
+
# 3 NounAtlas
|
| 65 |
+
|
| 66 |
+
Before delving into the process of constructing NounAtlas, our large-scale nominal predicate inventory, we highlight a few features in VerbAtlas that enable this process.
|
| 67 |
+
|
| 68 |
+
VerbAtlas As mentioned in Section 2, VerbAtlas uses verbal synsets from WordNet as verbal predicate proxies, organizing them into semantically-coherent frames. This includes more than 400 synset clusters, each assigned a human-readable label, such as EAT-BITE and SPEAK.
|
| 69 |
+
|
| 70 |
+
A key advantage of VerbAtlas over its alternatives is its common prototypical argument structure and cross-frame set of semantic roles à la VerbNet: for instance, the frame SPEAK features the roles of AGENT and TOPIC. Importantly, being univocally associated with exactly one frame, each synset is associated with the corresponding frame semantics and predicate argument structure, which can be exploited for SRL. For instance, in Figure 1 the verbal synsets EMBARRASS.v.01 and PRIDE.v.01 are included in the CAUSE-MENTAL-STATE frame.
|
| 71 |
+
|
| 72 |
+
# 3.1 Creating a Large-Scale Nominal Predicate Inventory
|
| 73 |
+
|
| 74 |
+
Our first objective is to produce NounAtlas, a largescale inventory of nominal predicates. To achieve this goal, we leverage the VerbAtlas frames to group WordNet nominal synsets that express analogous semantics in nominal form. For instance, we utilize the EAT-BITE verbal frame, which contains synsets such as EAT.V.01, BITE.V.01, and DEVOUR.V.04, to cluster nominal synsets like EATING.N.01, BITE.N.08 and CHOMPING.N.01. We now detail the procedure for creating our nominal predicate inventory.
|
| 75 |
+
|
| 76 |
+
# 3.1.1 Event-characterizing synset selection
|
| 77 |
+
|
| 78 |
+
First, we define a nominal predicate as a concept which conveys an event, action or situation, allowing a clear identification of roles such as AGENT, PATIENT, THEORY, etc. In our work we aim to identify nominal synsets with such properties (which we call event-characterizing synsets) as proxies for nominal predicates. As an example, we include WORK.N.01 (activity directed toward making or doing something) as an event-characterizing synset, whereas we exclude non-event synsets, such as WORKER.N.01 (a person who works at a specific occupation) or TABLE.N.02 (a piece of furniture). To do so, we sort the full list of nominal synsets in WordNet 3.0 by their number of hyponyms (i.e., descendants in the nominal taxonomy) and select the top synsets $s_j$ in the list which are deemed to characterize events. This results in the identification of nine general event-characterizing synsets which are then reduced to four due to the removal of those subsumed by other synsets in the set: EVENT.N.01, EVENT.N.02, PROCESS.N.02 and PROCESS.N.06. We then select as our final set of event-characterizing synsets all the 10 086 nominal synsets that are descendants, i.e., direct or indirect hyponyms, of our set of four general event-characterizing synsets, including the latter.
|
| 79 |
+
|
| 80 |
+
# 3.1.2 WordNet-based synset-to-frame mapping
|
| 81 |
+
|
| 82 |
+
With the goal of clustering nominal synsets into frames, we bootstrap the synset-to-frame mapping process by exploiting the WordNet derivationally-related form (DRF) relations, which establish connections between senses of nominal synsets and their corresponding verbal counterparts. For instance, the nominal synset EATING.N.01 (the act of consuming food) is mapped to the verbal synset EAT.V.01 (take in solid food) through a DRF relation. Since the latter synset is contained in the EAT-BITE frame in VerbAtlas, we identify EATING.N.01 as a potential candidate for this frame.
|
| 83 |
+
|
| 84 |
+
However, multiple cases need to be considered at this stage for a given nominal synset $s$ :
|
| 85 |
+
|
| 86 |
+
- $s$ is linked to a single verbal synset $v$ . This allows a straightforward inclusion in the corresponding VerbAtlas frame (Unambiguous link), i.e. $frame(s) \coloneqq \text{frame}(v)$ , where frame returns the VerbAtlas frame of the input synset.
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
Figure 1: Visual representation of the different types of link between nominal and verbal synsets (and the corresponding VerbAtlas frames). Orange arrows represent the derivationally related forms (DRFs) connections in WordNet, whereas blue arrows represent the WordNet hyponymy relations. Best seen in colors.
|
| 90 |
+
|
| 91 |
+
- There are multiple verbal synsets $V$ linked to $s$ . If all the verbal synsets in $V$ belong to the same frame, the frame mapping is again straightforward, i.e. $\text{frame}(s) := \text{frame}(v)$ for any $v \in V$ . Otherwise, we manually map the nominal synset $s$ to the most suitable frame among those containing verbal synsets linked to $s$ (Manually-curated links).
|
| 92 |
+
- $s$ is not associated with any verbal synset through DRFs (Non-existing links).
|
| 93 |
+
|
| 94 |
+
We provide a visual representation of each type of link in Figure 1. In this example, since EMBARRASSMENT.N.03 is connected to EMBARRASS.V.01 through an Unambiguous link, we can include it within the CAUSE-MENTAL-STATE frame. Conversely, CONGRATULATION.N.02 requires a manual annotation, since its DRF links lead to synsets belonging to multiple frames (i.e. APPROVE_PRAISE and CAUSE-MENTAL-STATE). Finally, ALIENATION.N.04 is an example of a Non-existing link, since it is not connected via DRF to any verbal synset from VerbAtlas.
|
| 95 |
+
|
| 96 |
+
Results and Statistics We report the statistics concerning the WordNet-based mapping of nominal synsets to VerbAtlas frames in Table 1. In Figure 2 we show the expectedly skewed distribution of verbal and nominal synsets within each frame, with some frames comprising over 100 synsets (e.g. SPEAK and HIT), and others being limited up to 3 (e.g. RESERVE and FORGET). Interestingly, the figure shows that frames containing more verbal synsets tend to also include a higher number of nominal synsets.
|
| 97 |
+
|
| 98 |
+
To evaluate the quality of the Unambiguous
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 2: Distribution of verbal (represented in blue) and nominal synsets (orange) across frames. On the x-axis, frames are ordered by their number of verbal synsets. Best seen in colors.
|
| 102 |
+
|
| 103 |
+
<table><tr><td>Mapping Type</td><td>Count</td></tr><tr><td>Unambiguous links</td><td>3053</td></tr><tr><td>Manually-curated links</td><td>1129</td></tr><tr><td>Non-existing links</td><td>5904</td></tr></table>
|
| 104 |
+
|
| 105 |
+
Table 1: Statistics about WordNet-based synset-to-frame mapping for the 10 086 nominal synsets.
|
| 106 |
+
|
| 107 |
+
links, we manually classified a random subset comprising 100 instances without using the DRF information and we found that $82\%$ of the manual classifications were in agreement with the automatic ones, with another $17\%$ upon inspection found to be equally valid. These results demonstrate that the WordNet DRF relations can be leveraged effectively to classify a substantial portion, i.e. $31\%$ , of the overall event-characterizing nominal synsets.
|
| 108 |
+
|
| 109 |
+
We then moved on to the Manually-curated links. To estimate the complexity of this task, we computed the inter-annotator agreement on a randomly-sampled subset of 100 annotations, with a resulting Cohen's $\kappa$ of 0.57 (moderate agreement).
|
| 110 |
+
|
| 111 |
+
The results on both types of link can be attributed to the frequent scenario where the proposed VerbAtlas frames can provide overlapping semantics, leading to multiple valid options for a given nominal synset. For example, the nominal synset EXAMINATION.N.01 was mapped to the ANALYZE frame by one annotator and to VERIFY by another.
|
| 112 |
+
|
| 113 |
+
# 3.1.3 Ranking frames for unlinked synsets
|
| 114 |
+
|
| 115 |
+
To address the challenge of Non-existing links, and thereby increase the coverage of our mapping, we design an automatic approach aimed at mapping nominal synsets to the best suited verbal frame.
|
| 116 |
+
|
| 117 |
+
First, we gather all the nominal synsets involved in Unambiguous and Manually-curated links together with all the verbal synsets from VerbAtlas.
|
| 118 |
+
|
| 119 |
+
Then, we create a dataset organized into pairs of (nominal synset, verbal synset) definitions as follows: given a nominal synset $s$ and its mapped frame $f$ , we pair the definition of $s$ with the definition of the verbal synset $v \in f$ which is linked to $s$ through a DRF relation. We label this pair as positive. Then, we augment our dataset of positive pairs by additionally associating the definition of $s$ with the ones of $K$ randomly-selected verbal synsets also belonging to $f$ . Finally, we obtain $K + 1$ negative pairs by repeating the same process, but this time selecting as many random frames $f_i$ , such that $f_i \neq f \forall i \in \{1, \dots, K + 1\}$ , to sample the verbal synsets from. Each definition is expanded with the corresponding synset's lemmas, which are pretended in a comma-separated format. For instance, we generate a positive pair by associating the nominal synset APPPOINTMENT.N.01 ("the act of putting a person into a non-elective position"), with the verbal synset DELEGATE.V.02 ("give an assignment to a person to a post, or assign a task to a person") both linked to the frame ASSIGN-SMT-TO-SMN. We then obtain a negative pair by associating the same nominal synset with a verbal synset from a different frame e.g. with WASH.V.09 ("remove by the application of water or other liquid and soap or some other cleaning agent"), belonging to the frame WASH CLEAN.
|
| 120 |
+
|
| 121 |
+
Ranking approach. We use the resulting dataset in a binary classification task, with a positive label
|
| 122 |
+
|
| 123 |
+
indicating that the two synsets in the pair belong to the same frame and a negative label indicating otherwise. We train a Cross-Encoder model (Reimers and Gurevych, 2019) on our dataset. Then, at inference time, given a nominal synset $s$ , we link it to a VerbAtlas frame through the following strategy:
|
| 124 |
+
|
| 125 |
+
1. From each VerbAtlas frame, we randomly select a maximum number of available verbal synset definitions, up to 10, and pair them with the definition of $s$ ;
|
| 126 |
+
2. We utilize our model to score each pair;
|
| 127 |
+
3. We derive the final score for a frame as the average score of its 10 pairs;
|
| 128 |
+
4. We rank frames according to their scores, arranged from highest to lowest. A higher score indicates a greater likelihood of the nominal synset being associated with the respective frame.
|
| 129 |
+
|
| 130 |
+
Using this approach, for each nominal synset with Non-existing links we are able to construct a similarity ranking of all the VerbAtlas frames.
|
| 131 |
+
|
| 132 |
+
Experimental setup. We used mpnet-v2 as our Encoder model, and we finetuned it on our dataset. We added a linear binary classification head on top. Binary cross entropy was employed as loss, while we leveraged Adam as optimizer, with an initial learning rate of $3 \times 10^{-5}$ . All the experiments in our work were conducted on a computing system equipped with an NVIDIA RTX 3090. We implemented the Cross-Encoder in PyTorch and PyTorch Lightning, using the Transformers library (Wolf et al., 2020). We selected the hyperparameter values according to the best F1 score on the validation split of our dataset.
|
| 133 |
+
|
| 134 |
+
Training and evaluation datasets. With the aim of assessing the quality of our ranking approach, we created a gold standard evaluation dataset composed of pairs of definitions of (nominal, verbal) synsets. To create the training and validation splits, we selected nominal synsets involved in Unambiguous links. Specifically, for each frame, we partitioned its synsets into $80\%$ for training and $20\%$ for validation. To build the test set and ensure its reliability, we used the definitions of all the nominal synsets with a Manually-curated link. We
|
| 135 |
+
|
| 136 |
+
paired each nominal synset definition in the train, validation and test sets with a maximum of $2 \cdot K$ definitions of verbal synsets, generating an equal number of $K$ positive and negative pairs. Recall from the first part of this section that, given a nominal synset $s$ , half of the definition pairs are positive pairs built using definitions of verbal synsets sampled from the same frame that $s$ belongs to, i.e. $frame(s)$ , while the other half are built using definitions of verbal synsets sampled from random frames, each different from $frame(s)$ .
|
| 137 |
+
|
| 138 |
+
We set $K$ to 30, 3, and 3 for our training, validation, and test splits, respectively. As a result, we obtained 132484 pairs for the training set, 3648 for the validation set, and 6546 for the test set.
|
| 139 |
+
|
| 140 |
+
Results and discussion. We evaluate the performance of our system for the binary classification task with the accuracy and F1 metrics, and for the ranking task using the Top-k accuracy scores. We report the results of our evaluation in Table 2.
|
| 141 |
+
|
| 142 |
+
As can be seen, our model achieves high accuracy and F1 on binary classification. Moreover, the Top-k accuracy achieved highlights the ability of our system to provide the correct frame among the top-5 ranked. This outcome paves the way for an effective manual annotation process, aimed at selecting one frame among the top-5 ranked by our system, given a nominal synset (cf. next section).
|
| 143 |
+
|
| 144 |
+
# 3.1.4 Manual mapping of unlinked synsets
|
| 145 |
+
|
| 146 |
+
We can now proceed to mapping unlinked synsets to frames: given a nominal synset $s$ , we tasked an expert annotator to select the most suitable frame from among the top-5 provided in the similarity ranking of $s$ . In special cases where the annotator was not able to choose a suitable candidate from the provided frames, they had the option to consult VerbAtlas, and select a more appropriate frame. The annotator was specifically recruited for this task. We paid them in accordance with the standard salary of their geographical location. They took an average of 3 minutes to annotate one item. The result of our entire semi-automatic mapping process was a large-scale nominal predicate inventory for SRL, which we have called NounAtlas. We note that, by construction, the VerbAtlas and NounAtlas frames share the same labels, making it possible to bring together nominal and verbal synsets into a unified nominal and verbal resource.
|
| 147 |
+
|
| 148 |
+
Results. The annotator successfully linked 5876 out of the 5904 synsets with Non-existing links
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 3: Example of SRL tagging with PropBank and FrameNet, compared to NounAtlas.
|
| 152 |
+
|
| 153 |
+
(99.6%). They selected 5207 frames (88.2% of the total) among the top-5 ranked by our system, with 2912 (49.3%) being the top-1. The remaining synsets were classified by directly accessing the full VerbAtlas frame inventory.
|
| 154 |
+
|
| 155 |
+
# 3.1.5 Qualitative Comparison
|
| 156 |
+
|
| 157 |
+
To highlight the inherent advantages of using NounAtlas, consider the annotations reported in Figure 3 of a sample sentence annotated with different lexical-semantic nominal inventories. As mentioned in Section 2, PropBank's underspecified role semantics can result in models that struggle to generalize to out-of-domain predicates. FrameNet's roles, instead, are explicit, but frame-specific, resulting in a very large set of different role labels: in the example above, the roles "Ingestor" and "Ingestible" are specific only for the frame "Ingestion". These problems are solved when using NounAtlas, which provides just a few, explicit and cross-frame semantic roles over a very large set of nominal predicates, enabling a more extensive coverage.
|
| 158 |
+
|
| 159 |
+
# 4 Creating a Nominal SRL Dataset
|
| 160 |
+
|
| 161 |
+
As a result of the work outlined in Section 3.1, we obtained an inventory of nominal predicates organized into frames. However, we still have to build a large dataset for nominal Semantic Role Labeling, i.e. annotated with our nominal predicates. In what follows, we achieve this goal by (i) collecting WordNet verbal sense occurrences (Section 4.1), (ii) transforming each verbal predicate annotation into a nominal one, adjusting the sen
|
| 162 |
+
|
| 163 |
+
<table><tr><td colspan="2">Binary classification</td><td colspan="5">Ranking</td></tr><tr><td>Accuracy</td><td>F1-Score</td><td>Acc@1</td><td>Acc@2</td><td>Acc@3</td><td>Acc@4</td><td>Acc@5</td></tr><tr><td>91.9</td><td>91.4</td><td>44.0</td><td>61.3</td><td>70.6</td><td>77.7</td><td>82.1</td></tr></table>
|
| 164 |
+
|
| 165 |
+
Table 2: Performance of the Cross-Encoder in the binary classification task and the top-k accuracies $(k = 1,\dots ,5)$
|
| 166 |
+
|
| 167 |
+
tence accordingly, and obtaining the corresponding frame annotation (Section 4.2), (iii) propagating the argument role annotations (Section 4.3).
|
| 168 |
+
|
| 169 |
+
# 4.1 Initial Sentence Corpus
|
| 170 |
+
|
| 171 |
+
The initial step involves collecting sentences featuring sense-annotated verbal predicates. For this purpose, we use SemCor (Miller et al., 1993) – the largest corpus manually annotated with WordNet senses – to extract those sentences which contain at least one verb annotated with a synset $v$ such that i) $v$ is directly linked via DRF to a nominal synset $s$ and, ii) $v$ and $s$ are linked through an Unambiguous link.
|
| 172 |
+
|
| 173 |
+
# 4.2 Predicate Nominalization
|
| 174 |
+
|
| 175 |
+
The next step consists in transforming each verbal predicate occurrence in our collected sentences into nominal form. To do so, first, we use a Large Language Model (LLM) prompted to nominalize a given verbal predicate annotated with synset $v$ using any of the synonyms in the corresponding nominal synset $s = \{n_1, \dots, n_m\}$ , i.e. its deverbal forms. We use the following prompt:
|
| 176 |
+
|
| 177 |
+
Change the sentence by nominalizing the verb "wi". Use exactly one of these deverbal nouns: "n1, $\dots ,n_m$ ". Indicate the chosen deverbal noun with \*\*: "w1 w2 ... \*\*wi\*\*... wn"
|
| 178 |
+
|
| 179 |
+
where $w_{1} \ldots w_{n}$ is the sentence, and $w_{i}$ is an inflected form of a lemma in synset $v$ . The prompt tasks the LLM with indicating the chosen deverbial noun within the sentence (we report some examples of instantiated prompts in Appendix B). To enhance the model's understanding of the task, we provide it with additional inputs as system-level instructions, and a list of manually-crafted nominalization examples for few-shot prompting, to enable in-context learning and coherent output formatting (see Appendix B). The few-shot examples are manually crafted from selected representative verbal samples of SemCor, in order to provide the LLM with a variety of possible nominalization forms and avoid a repetitive structure of the nominalized sentences. Note that, in the case of $N$ verbal predicates occur
|
| 180 |
+
|
| 181 |
+
ring in the same sentence, we create $N$ different prompts, each revolving on a different predicate to nominalize.
|
| 182 |
+
|
| 183 |
+
Second, each LLM-generated sentence is then automatically validated through the following heuristics to ensure reliability, automatically checking that: (i) a deverbal noun is clearly indicated in the output using the formatting requested in the prompt and outlined in the few-shot examples; (ii) the sentence and the chosen deverbal noun are POS-tagged to make sure that the chosen deverbal noun is indeed a noun; (iii) the lemmatized form $n_j$ of the chosen deverbal noun is one of the candidates provided, i.e. $n_j \in s$ . If all checks are successfully passed, the sentence is considered valid and we tag the nominal predicate occurrence in the generated sentence with frame(s). We then proceed to the role propagation step.
|
| 184 |
+
|
| 185 |
+
During the predicate nominalization, different LLMs and prompt combinations were tested, including ChatGPT models (OpenAI, 2024) and the Gemini-Pro model (Google, 2024) (see Appendix A for a comprehensive list and individual results). In order to finalize the prompt, we evaluated the results quantitatively using the aforementioned validation pipeline, but also qualitatively by manual inspection, over a representative subset of samples, using criteria such as grammatical correctness, adherence to the original sentence, and correct usage of the nominal predicate. These tests highlighted the need to craft a prompt that guides the LLM toward the desired result, and this was the reason for our decision to include the list of admissible deverbals nouns, few-shot examples, and clear, standardized output formatting.
|
| 186 |
+
|
| 187 |
+
# 4.3 Verbal-to-Nominal Role Propagation
|
| 188 |
+
|
| 189 |
+
The last step is to label the roles in each sentence. Recall that, by construction, $\text{frame}(s) = \text{frame}(v)$ , i.e. the frame associated with the nominal predicate $n_j$ is the same as that of its verbal counterpart (cf. Section 3.1.2).
|
| 190 |
+
|
| 191 |
+
To label the roles of the target nominal predicate, we carry out the following steps using both the original sentence $\sigma_v$ used as input for the LLM,
|
| 192 |
+
|
| 193 |
+
<table><tr><td rowspan="2">Training data</td><td colspan="3">Overall</td><td colspan="3">Predicates</td><td colspan="3">Roles</td></tr><tr><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td></tr><tr><td>V</td><td>62.8</td><td>54.3</td><td>58.2</td><td>13.5</td><td>57.3</td><td>21.8</td><td>66.6</td><td>56.7</td><td>61.3</td></tr><tr><td>N</td><td>71.6</td><td>72.1</td><td>71.9</td><td>98.3</td><td>97.9</td><td>98.1</td><td>75.5</td><td>76.0</td><td>75.7</td></tr><tr><td>N+V</td><td>72.4</td><td>72.4</td><td>72.4</td><td>77.7</td><td>94.0</td><td>85.0</td><td>76.4</td><td>76.4</td><td>76.4</td></tr></table>
|
| 194 |
+
|
| 195 |
+
Table 3: Precision, Recall and F1 results of the SRL baselines on our nominal dataset. We report the performance of our baselines trained on our nominal dataset (N), on OntoNotes (V), and on the combination of the two $(\mathrm{V} + \mathrm{N})$
|
| 196 |
+
|
| 197 |
+
and the corresponding output sentence $\sigma_{n}$ in which the predicate is nominalized.
|
| 198 |
+
|
| 199 |
+
First, $\sigma_v$ is processed using a state-of-the-art SRL system, i.e. InVeRo-XL (Conia et al., 2021b), obtaining automatically-annotated span-based roles for the target verbal predicate $frame(v)$ .
|
| 200 |
+
|
| 201 |
+
Second, we use a bi-encoder architecture to encode $\sigma_v$ and $\sigma_n$ , and compute the following steps for each role $r$ in $\sigma_v$ :
|
| 202 |
+
|
| 203 |
+
1. We compute the span embedding $E_r$ of role $r$ in $\sigma_v$ by mean pooling and L2 normalization of the embeddings of all the tokens in the span.
|
| 204 |
+
2. We slide a window of the same size as the role span over $\sigma_{n}$ by one word until the end of the sentence. For each resulting span $sp$ , we compute the span embedding $E_{sp}$ as above.
|
| 205 |
+
3. We select the span $sp$ in $\sigma_{n}$ that maximizes the cosine similarity between $E_{r}$ and $E_{sp}$ .
|
| 206 |
+
4. We propagate the role annotation to the selected span in $\sigma_{n}$
|
| 207 |
+
|
| 208 |
+
The result of this process is a large automatically annotated SRL dataset, with nominal predicates identified and tagged using VerbAtlas/NounAtlas frames, and predicate arguments tagged with the corresponding roles.
|
| 209 |
+
|
| 210 |
+
# 4.4 Results
|
| 211 |
+
|
| 212 |
+
Statistics. Among its sentences, SemCor contains 36295 verbal predicate occurrences, each of which is used to prompt the LLM to generate a corresponding nominal version. Of these, 29221 passed the validation step, resulting in the same number of valid occurrences of nominal predicates. These latter are then passed into the role propagation step, obtaining 28055 sentences annotated with nominal frames and their roles. The drop in
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
Figure 4: Distribution of sentences with nominal predicate across frames (the y-axis indicates the number of sentences whose predicate belongs to the same frame).
|
| 216 |
+
|
| 217 |
+
the number of sentences in the role propagation step occurs because we consider as good sentences only the ones that have all the roles from the verbal sentence also present in the nominal counterpart. If even a single role is missing, then the sentence is discarded. The distribution of the latter sentences across frames is reported in Figure 4. As expected, a few frames have a considerable number of sentences, with these numbers decreasing exponentially. However, a reasonable number of sentences is also maintained in the long tail (e.g., 32 sentences at the median rank).
|
| 218 |
+
|
| 219 |
+
Dataset quality assessment. We set aside 500 sentences and tasked a human expert to annotate those sentences according to the following guidelines: for each sentence the expert was asked to (i) correct the sentence if it was found to be ungrammatical or nonsensical, (ii) double-check the frame assigned to the nominal predicate and correct it if needed, and (iii) correct each argument span and (iv) the corresponding role label. The annotator was specifically recruited for this task. We paid them in accordance with the standard salary of their geographical location.
|
| 220 |
+
|
| 221 |
+
<table><tr><td rowspan="2">Training data</td><td colspan="3">Overall</td><td colspan="3">Predicates</td><td colspan="3">Roles</td></tr><tr><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td></tr><tr><td>V</td><td>89.3</td><td>89.8</td><td>89.6</td><td>93.2</td><td>95.7</td><td>94.4</td><td>88.6</td><td>89.0</td><td>88.8</td></tr><tr><td>N+V</td><td>89.3</td><td>89.6</td><td>89.5</td><td>92.8</td><td>94.4</td><td>93.6</td><td>88.5</td><td>88.9</td><td>88.7</td></tr></table>
|
| 222 |
+
|
| 223 |
+
Table 4: Precision, Recall and F1 results of the SRL baselines on OntoNotes. We report the performance of our baselines trained on OntoNotes (V), and on the combination of our nominal dataset with OntoNotes $(\mathrm{V} + \mathrm{N})$
|
| 224 |
+
|
| 225 |
+
An example of a manual annotation carried out by the expert is:
|
| 226 |
+
|
| 227 |
+
Original sentence: [The girl]Agent crawled out into the renewing warmth of the sunshine [hugging]FIT [her shoulders]Theme.
|
| 228 |
+
|
| 229 |
+
Generated sentence with nominal predicate: [The girl]Agent crawled out into the renewing warmth of the sunshine, performing an [embrace]FIT of [her shoulders]Theme.
|
| 230 |
+
|
| 231 |
+
Corrected sentence: [The girl]Agent crawled out into the renewing warmth of the sunshine, performing an [embrace]FIT [of her shoulders]Theme.
|
| 232 |
+
|
| 233 |
+
In this example, the automatic pipeline made a mistake in capturing the span of the Theme, neglecting to include the preposition "of".
|
| 234 |
+
|
| 235 |
+
To determine the quality of the automatically annotated nominal SRL dataset, we computed the percentage of i) grammatical sentences (92.11%), ii) unchanged frame assignments (95.56%), iii) unchanged role spans (77.11%), iv) unchanged role labels (95.27%). These results show the robustness of our approach.
|
| 236 |
+
|
| 237 |
+
# 4.5 Baselines for Nominal SRL
|
| 238 |
+
|
| 239 |
+
We used our automatically annotated dataset to train and test a state-of-the-art SRL model in order to provide a baseline for the nominal task. We removed from our dataset the 500 sentences annotated for dataset quality assessment, and used them as our test set. We then split our silver-quality dataset into $90\%$ training and $10\%$ validation.
|
| 240 |
+
|
| 241 |
+
We selected the state-of-the-art SRL model introduced by Conia and Navigli (2020) as the backbone model for our baselines, closely following the training procedure outlined by the authors. We fine-tuned this model on three different datasets: (a) OntoNotes 5.0 (Weischedel et al., 2010),<sup>4</sup> which serves as the standard dataset for verbal SRL, (b)
|
| 242 |
+
|
| 243 |
+
our silver dataset for nominal SRL, (c) the concatenation of the two datasets. Because OntoNotes sentences are annotated with PropBank predicates, we use the PropBank-to-VerbAtlas mappings made available by Conia and Navigli (2020)<sup>5</sup> to convert the annotations.
|
| 244 |
+
|
| 245 |
+
Results. In Table 3, we report the performance of the aforementioned baselines on our manually-curated test set. We note that a state-of-the-art SRL approach, trained on verbal data (V), only moderately generalizes to the nominal setting, thereby confirming the findings of Orlando et al. (2023). Conversely, training the same model on our nominal SRL dataset (N) leads to a significant improvement in performance (21% on average). Interestingly, the baseline trained on the union of verbal and nominal data $(\mathrm{V} + \mathrm{N})$ achieves state-of-the-art performance on both OntoNotes (Table 4) and our gold nominal test set (Table 3).
|
| 246 |
+
|
| 247 |
+
This outcome paves the way for the development of a competitive unified system performing both nominal and verbal SRL.
|
| 248 |
+
|
| 249 |
+
# 5 Conclusions
|
| 250 |
+
|
| 251 |
+
With our work, we fill the gap in nominal SRL by introducing NounAtlas, a large-scale predicate inventory for this task. NounAtlas is constructed by linking nominal predicates from WordNet to VerbAtlas frames through a semi-automatic approach. We additionally create a large dataset for nominal SRL with the help of LLMs, annotated through label propagation with nominal predicates and semantic roles from NounAtlas. Finally, we benchmark multiple baselines consisting of state-of-the-art SRL approaches, trained and evaluated on our dataset. Our experiments demonstrate that a unified SRL approach, trained on both nominal and verbal data, achieves state-of-the-art performance in both settings. We release our code and resource at https://github.com/SapienzaNLP/nounatlas.
|
| 252 |
+
|
| 253 |
+
# Limitations
|
| 254 |
+
|
| 255 |
+
While this study provides a valuable starting point for nominal SRL, additional steps could be taken to further enhance its impact. First, our approach utilizes WordNet synsets as predicates, which makes multilingual support feasible through BabelNet (Navigli and Ponzetto, 2010). Indeed each WordNet synset corresponds to a BabelNet synset, which provides translations into tens of other languages. However, lexical coverage varies depending on language (see https://babelnet.org/statistics). Generating a multilingual nominal SRL dataset is more challenging, as one should either use available multilingual corpora annotated with BabelNet, with varying coverage (Pasini et al., 2021), or translate SemCor into other languages and propagate annotations. We leave this to future work.
|
| 256 |
+
|
| 257 |
+
Additionally, our study focused on nominal arguments, neglecting the exploration of adjectival and adverbial SRL. Furthermore, although the inventory underwent a final step of manual annotation, the training set remains automatically generated. A manual annotation of the entire dataset is expected to bring improved performance on the task. Addressing these limitations in future studies would further advance SRL into a full-fledged NLU task, offering deeper insights into the structured analysis of text.
|
| 258 |
+
|
| 259 |
+
# Acknowledgements
|
| 260 |
+
|
| 261 |
+

|
| 262 |
+
|
| 263 |
+
The authors gratefully acknowledge the support of the ERC Consolidator Grant MOUSSE No. 726487 under the European Union's Horizon 2020 research.
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
|
| 267 |
+
We gratefully acknowledge the support of the PNRR MUR project PE0000013-FAIR. Alessandro Scirè conducted this work during his enrollment in the Italian National Doctorate on Artificial Intelligence at Sapienza University of Rome. The authors thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Dennis Rotondi.
|
| 268 |
+
|
| 269 |
+
# References
|
| 270 |
+
|
| 271 |
+
Olga Babko-Malaya, Martha Palmer, Nianwen Xue, Aravind Joshi, and Seth Kulick. 2004. Proposition Bank II: Delving deeper. In Proceedings of the Workshop Frontiers in Corpus Annotation at HLT-NAACL 2004,
|
| 272 |
+
|
| 273 |
+
pages 17-23, Boston, Massachusetts, USA. Association for Computational Linguistics.
|
| 274 |
+
Collin F. Baker, Charles J. Fillmore, and John B. Lowe. 1998. The berkeley framenet project. In Proceedings of the 36th Annual Meeting of the Association for Computational Linguistics and 17th International Conference on Computational Linguistics - Volume 1, ACL '98/COLING '98, page 86-90, USA. Association for Computational Linguistics.
|
| 275 |
+
Emanuele Bastianelli, Giuseppe Castellucci, Danilo Croce, and Roberto Basili. 2013. Textual inference and meaning representation in human robot interaction. In Proceedings of the Joint Symposium on Semantic Processing. Textual Inference and Structures in Corpora, pages 65-69, Trento, Italy.
|
| 276 |
+
Long Chen, Zhihong Jiang, Jun Xiao, and Wei Liu. 2021. Human-like controllable image captioning with verb-specific semantic roles. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16846-16856.
|
| 277 |
+
Simone Conia, Andrea Bacciu, and Roberto Navigli. 2021a. Unifying cross-lingual semantic role labeling with heterogeneous linguistic resources. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 338-351, Online. Association for Computational Linguistics.
|
| 278 |
+
Simone Conia, Edoardo Barba, Alessandro Scirè, and Roberto Navigli. 2022. Semantic role labeling meets definition modeling: Using natural language to describe predicate-argument structures. In *Findings of the Association for Computational Linguistics: EMNLP* 2022, pages 4253–4270, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 279 |
+
Simone Conia and Roberto Navigli. 2020. Bridging the gap in multilingual Semantic Role Labeling: A language-agnostic approach. In Proceedings of the 28th International Conference on Computational Linguistics, COLING 2020, pages 1396-1410, Barcelona, Spain (Online). International Committee on Computational Linguistics.
|
| 280 |
+
Simone Conia and Roberto Navigli. 2022. Probing for predicate argument structures in pretrained language models. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4622-4632, Dublin, Ireland. Association for Computational Linguistics.
|
| 281 |
+
Simone Conia, Riccardo Orlando, Fabrizio Brignone, Francesco Ceconi, and Roberto Navigli. 2021b. InVeRo-XL: Making cross-lingual Semantic Role Labeling accessible with intelligible verbs and roles. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 319-328, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 282 |
+
|
| 283 |
+
Angel Daza and Anette Frank. 2020. X-SRL: A parallel cross-lingual semantic role labeling dataset. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 3904–3914, Online. Association for Computational Linguistics.
|
| 284 |
+
Andrea Di Fabio, Simone Conia, and Roberto Navigli. 2019. VerbAtlas: a novel large-scale verbal semantic resource and its application to semantic role labeling. 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 627-637, Hong Kong, China. Association for Computational Linguistics.
|
| 285 |
+
Charles Fillmore. 2006. Frame semantics and the nature of language. Annals of the New York Academy of Sciences, 280:20 - 32.
|
| 286 |
+
Daniel Gildea and Daniel Jurafsky. 2002. Automatic Labeling of Semantic Roles. Computational Linguistics, 28(3):245-288.
|
| 287 |
+
Google. 2024. Gemini: A family of highly capable multimodal models.
|
| 288 |
+
Jan Hajič, Massimiliano Ciaramita, Richard Johansson, Daisuke Kawahara, Maria Antônia Martí, Lluis Márquez, Adam Meyers, Joakim Nivre, Sebastian Padó, Jan Štepánek, Pavel Stranák, Mihai Surdeanu, Nianwen Xue, and Yi Zhang. 2009. The CoNLL-2009 shared task: Syntactic and semantic dependencies in multiple languages. In Proceedings of the Thirteenth Conference on Computational Natural Language Learning (CoNLL 2009): Shared Task, pages 1-18, Boulder, Colorado. Association for Computational Linguistics.
|
| 289 |
+
Silvana Hartmann, Ilia Kuznetsov, Teresa Martin, and Iryna Gurevych. 2017. Out-of-domain FrameNet semantic role labeling. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pages 471-482, Valencia, Spain. Association for Computational Linguistics.
|
| 290 |
+
Ishan Jindal, Alexandre Rademaker, Michal Ulewicz, Ha Linh, Huyen Nguyen, Khoi-Nguyen Tran, Huaiyu Zhu, and Yunyao Li. 2022. Universal Proposition Bank 2.0. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 1700-1711, Marseille, France. European Language Resources Association.
|
| 291 |
+
Ayal Klein, Jonathan Mamou, Valentina Pyatkin, Daniela Stepanov, Hangfeng He, Dan Roth, Luke Zettlemoyer, and Ido Dagan. 2020. QANom: Question-answer driven SRL for nominalizations. In Proceedings of the 28th International Conference on Computational Linguistics, pages 3069-3083, Barcelona, Spain (Online). International Committee on Computational Linguistics.
|
| 292 |
+
|
| 293 |
+
Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. 1993. Building a large annotated corpus of English: The Penn Treebank. Computational Linguistics, 19(2):313-330.
|
| 294 |
+
Adam Meyers, Ruth Reeves, Catherine Macleod, Rachel Szekely, Veronika Zielinska, Brian Young, and Ralph Grishman. 2004. The NomBank project: An interim report. In Proceedings of the Workshop Frontiers in Corpus Annotation at HLT-NAACL 2004, pages 24-31, Boston, Massachusetts, USA. Association for Computational Linguistics.
|
| 295 |
+
George A. Miller. 1995. Wordnet: a lexical database for english. Commun. ACM, 38(11):39-41.
|
| 296 |
+
George A. Miller, Claudia Leacock, Randee Tengi, and Ross T. Bunker. 1993. A semantic concordance. In Human Language Technology: Proceedings of a Workshop Held at Plainsboro, New Jersey, March 21-24, 1993.
|
| 297 |
+
Roberto Navigli and Simone Paolo Ponzetto. 2010. BabelNet: Building a very large multilingual semantic network. In Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics, pages 216-225, Uppsala, Sweden. Association for Computational Linguistics.
|
| 298 |
+
OpenAI. 2024. Gpt-4 technical report.
|
| 299 |
+
Riccardo Orlando, Simone Conia, and Roberto Navigli. 2023. Exploring non-verbal predicates in semantic role labeling: Challenges and opportunities. In Findings of the Association for Computational Linguistics: ACL 2023, pages 12378-12388, Toronto, Canada. Association for Computational Linguistics.
|
| 300 |
+
Martha Palmer, Daniel Gildea, and Paul Kingsbury. 2005. The Proposition Bank: An Annotated Corpus of Semantic Roles. Computational Linguistics, 31(1):71-106.
|
| 301 |
+
Tommaso Pasini, Alessandro Raganato, and Roberto Navigli. 2021. Xl-wsd: An extra-large and cross-lingual evaluation framework for word sense disambiguation. In AAAI Conference on Artificial Intelligence.
|
| 302 |
+
Xiangyu Peng, Kaige Xie, Amal Alabdulkarim, Harshith Kayam, Samihan Dani, and Mark O. Riedl. 2022. Guiding neural story generation with reader models.
|
| 303 |
+
Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
|
| 304 |
+
Arka Sadhu, Tanmay Gupta, Mark Yatskar, Ram Nevata, and Aniruddha Kembhavi. 2021. Visual semantic role labeling for video understanding. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5585-5596.
|
| 305 |
+
|
| 306 |
+
K.K. Schuler. 2005. Verbnet: A Broad-coverage, Comprehensive Verb Lexicon. University of Pennsylvania.
|
| 307 |
+
Dan Shen and Mirella Lapata. 2007. Using semantic roles to improve question answering. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), pages 12-21, Prague, Czech Republic. Association for Computational Linguistics.
|
| 308 |
+
Peng Shi and Jimmy Lin. 2019. Simple bert models for relation extraction and semantic role labeling.
|
| 309 |
+
Linfeng Song, Daniel Gildea, Yue Zhang, Zhiguo Wang, and Jinsong Su. 2019. Semantic Neural Machine Translation Using AMR. Transactions of the Association for Computational Linguistics, 7:19-31.
|
| 310 |
+
Diana Trandabat. 2011. Using semantic roles to improve summaries. In Proceedings of the 13th European Workshop on Natural Language Generation, pages 164-169, Nancy, France. Association for Computational Linguistics.
|
| 311 |
+
Rocco Tripodi, Simone Conia, and Roberto Navigli. 2021. UniteD-SRL: A unified dataset for span- and dependency-based multilingual and cross-lingual Semantic Role Labeling. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 2293-2305, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 312 |
+
Ralph Weischedel, Mitch Marcus, Martha Palmer, Edward Hovy, Robert Belvin, Sameer Pradhan, and Lance Ramshaw. 2010. Ontonotes: A large training corpus for enhanced processing. In Handbook of Natural Language Processing and Machine Translation. Springer, New York, NY.
|
| 313 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Huggingface's transformers: State-of-the-art natural language processing.
|
| 314 |
+
Yanpeng Zhao and Ivan Titov. 2020. Unsupervised transfer of semantic role models from verbal to nominal domain.
|
| 315 |
+
A LLM Tests for Predicate Nominalization
|
| 316 |
+
We tested several LLM and prompt combinations for the task of nominalizing a verbal predicate. The tested LLMs are: OpenAI's ChatGPT models (gpt-3.5-turbo-1106, gpt-3.5-turbo-instruct, text-davinci-003) and Google's Gemini-Pro model. We
|
| 317 |
+
|
| 318 |
+
evaluated them both quantitatively, using the validation pipeline described in Section 4.2, and qualitatively by manual inspection.
|
| 319 |
+
Our initial prompt strategy left ample freedom for the LLM to choose the deverbal noun, since it had only the verbal predicate to convert as input. This approach provided sentences in which the nominal predicate was not easily identifiable, preventing its linkage to an existing frame. Also, the model struggled in adhering to the desired format. Adding explicit instructions to keep the formatting consistent helped, but did not completely solve, this issue. The strategy of adding examples was more effective for the purpose of keeping the format consistent. To facilitate the identification of the resulting deverbal noun, a request to mark it in the output was added to the prompt. This solved any issue concerning the parsing of the output. At this stage, one problem still persisted: in some cases, the deverbal nouns produced by the LLM were impossible to link to an existing frame. To solve this issue, we included in the prompt a list of candidate deverbal which were directly linkable to a frame to choose from. Following this process, the resulting sentences were: i) adherent to the required format, ii) indicating and using a correct nominal predicate, i.e. a predicate linked via DRF to the verbal one, and iii) as similar as possible to the original one while preserving grammar and logic adequacy. As far as the selection of the LLM was concerned, we observed that gpt-3.5-instruct followed the instructions provided but it would often generate grammatically incorrect sentences when forced to use a specific deverbal noun. Instead, gpt-3.5-turbo and Gemini-pro produced the most natural sounding sentences. Gemini-pro was finally chosen based on a manual inspection of the results.
|
| 320 |
+
The validation results on a subset of 150 SemCor sentences converted using the selected prompt are shown in Table 5.
|
| 321 |
+
|
| 322 |
+
# B Prompts and Examples for LLMs
|
| 323 |
+
|
| 324 |
+
Some examples of instantiated prompts for the LLM are reported below:
|
| 325 |
+
|
| 326 |
+
Change the sentence by nominalizing the verb "produced" indicated by \*\*. Use exactly one of these deverbal nouns: "production". Indicate the chosen deverbal noun with \*\*: "The Fulton County Grand Jury said Friday an investigation of
|
| 327 |
+
|
| 328 |
+
Atlanta's recent primary election \*\*produced\*\* " no evidence " that any irregularities took place .
|
| 329 |
+
|
| 330 |
+
Change the sentence by nominalizing the verb "charged" indicated by \*\*. Use exactly one of these deverbal nouns: "charge", "mission", "commission", "direction". Indicate the chosen deverbal noun with \*\*: "The September October term jury had been \*\*charged\*\* by Fulton Superior Court Judge Durwood Pye to investigate reports of possible "irregularities" in the hard-fought primary which was won by Mayor-nominate Ivan Allen Jr. .
|
| 331 |
+
|
| 332 |
+
The system directive used for the LLM is:
|
| 333 |
+
|
| 334 |
+
You are a linguist that can nominalize sentences. The sentences must be grammatically correct.
|
| 335 |
+
|
| 336 |
+
Finally, we report two of the 10 examples used for few-shot prompting. The examples are shuffled at each prompt request and mimic the structure of a realistic User-LLM chat-like conversation:
|
| 337 |
+
|
| 338 |
+
User: Change the sentence by nominalizing the verb "absorb" indicated by \*\*. Use exactly one of these deverbual nouns: "soaking up", "absorption". Indicate the chosen deverbual noun with \*\*: "The kidneys \*\*absorb\*\* sodium as a part of renal physiology .
|
| 339 |
+
|
| 340 |
+
LLM: The $^{**}$ absorption\*\* of sodium by the kidneys is a part of renal physiology.
|
| 341 |
+
|
| 342 |
+
User: Change the sentence by nominalizing the verb "mention" indicated by **. Use exactly one of these deverbal nouns: "citation". Indicate the chosen deverbal noun with **: "Vandiver likely will **mention** the $ 100 million highway bond issue approved earlier in the session as his first priority item."
|
| 343 |
+
|
| 344 |
+
LLM: Vandiver's $^{**}$ citation\*\* of the $100 million highway bond issue approved earlier in the session will likely be his first priority item.
|
| 345 |
+
|
| 346 |
+
# C Guidelines for the human evaluation
|
| 347 |
+
|
| 348 |
+
In this Section, we report the instructions provided to the annotator about the task of classifying the set of nominal synsets with non-existing links (cf. Section 3.1.2) into frames.
|
| 349 |
+
|
| 350 |
+
<table><tr><td>LLM model</td><td>valid samples</td></tr><tr><td>GPT-3.5-turbo-1106</td><td>132/150 (88%)</td></tr><tr><td>GPT-3.5-turbo-instruct</td><td>130/150 (86.6%)</td></tr><tr><td>text-davinci-003</td><td>102/150 (68%)</td></tr><tr><td>Gemini-Pro</td><td>136/150 (90.6%)</td></tr></table>
|
| 351 |
+
|
| 352 |
+
Table 5: Number of samples passing validation across LLMs
|
| 353 |
+
|
| 354 |
+
We provided two Excel files.
|
| 355 |
+
|
| 356 |
+
# The first file:
|
| 357 |
+
|
| 358 |
+
- Contains the nominal synsets requiring classification.
|
| 359 |
+
- For each synset, presents five frames automatically selected by a machine learning model.
|
| 360 |
+
- Annotators must choose the single most fitting frame from these five options for each synset.
|
| 361 |
+
|
| 362 |
+
# The second file:
|
| 363 |
+
|
| 364 |
+
- Lists all 425 available frames within VerbAtlas along with their respective definitions.
|
| 365 |
+
- For each frame, lists all the included verbal synsets and their respective definitions.
|
| 366 |
+
- Serves as a reference for exploring frames beyond the five presented in the first file for specific synsets.
|
| 367 |
+
|
| 368 |
+
The classification process has to follow these steps for each synset:
|
| 369 |
+
|
| 370 |
+
1. Review the synset itself (column A), its lemmas (column B), and its definition (column C).
|
| 371 |
+
2. Examine the five proposed frames (column B) with their semantic definitions (column C). Additionally, consider the definitions explaining how synsets within the frame relate to its specific roles. For example, the frame "LOSE" might have the definition "An agent LOSES a theme to a recipient".
|
| 372 |
+
|
| 373 |
+
While selecting the appropriate frame, possible cases arise:
|
| 374 |
+
|
| 375 |
+
1. Suitable frame in the 5 proposed: Place the "x" in the corresponding row.
|
| 376 |
+
2. No suitable frame among the 5 proposed:
|
| 377 |
+
|
| 378 |
+
- Consult the second file to find an appropriate frame among the 425 options.
|
| 379 |
+
|
| 380 |
+
- Replace the name of a proposed frame with your chosen frame from the second file (keep the original definition).
|
| 381 |
+
- Place an "x" in the corresponding row.
|
| 382 |
+
|
| 383 |
+
3. Synset belongs to multiple frames: Place an "x" in each relevant frame row (Minimize this occurrence; use it only for true ambiguity where a single choice is impossible. Add a note in column D explaining the ambiguity).
|
| 384 |
+
4. No existing frame seems appropriate: Don't mark any frames.
|
| 385 |
+
5. Synset is not a nominal predicate: Don't mark any frames. This is uncommon; attempt classification even for broader event concepts.
|
nounatlasfillingthegapinnominalsemanticrolelabeling/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0a81cac9fc58113e10062d6836d0b5328011898510bf1a87a88338973561779
|
| 3 |
+
size 236434
|
nounatlasfillingthegapinnominalsemanticrolelabeling/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2d232d6138e893e80d7c17f2eab406073180b8af603278e89c7e80a19c437f7
|
| 3 |
+
size 448635
|
oceangptalargelanguagemodelforoceansciencetasks/92ebc279-826d-4f67-bfd8-55cd725ee340_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85bd84287abca97d5913aedb50f5742efbc95094cb4df64fd21750d5f44bf9bb
|
| 3 |
+
size 111850
|
oceangptalargelanguagemodelforoceansciencetasks/92ebc279-826d-4f67-bfd8-55cd725ee340_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c069baad3798c3dd30b9ba46369675eb44ea96d843e6830091c984e9c5eb25cf
|
| 3 |
+
size 131698
|
oceangptalargelanguagemodelforoceansciencetasks/92ebc279-826d-4f67-bfd8-55cd725ee340_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d74711f6bd1b4a0673de56e366c7e2ed5102495bfb2d699400c33dc284dbae9
|
| 3 |
+
size 1627372
|
oceangptalargelanguagemodelforoceansciencetasks/full.md
ADDED
|
@@ -0,0 +1,436 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OceanGPT: A Large Language Model for Ocean Science Tasks
|
| 2 |
+
|
| 3 |
+
Zhen Bi $^{1,2,5,6}$ , Ningyu Zhang $^{1,2,5*}$ , Yida Xue $^{1}$ , Yixin Ou $^{1}$ , Daxiong Ji $^{2,3}$ , Guozhou Zheng $^{2,4}$ , Huajun Chen $^{1,2*}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ College Computer Science and Technology, Zhejiang University $^{2}$ Donghai Laboratory $^{3}$ Ocean College, Zhejiang University $^{4}$ Zhoushan-Zhejiang University Ocean Research Center $^{5}$ School of Software Technology, Zhejiang University, $^{6}$ Huzhou University {bizhen_zju, zhangningyu, ouyixin, jidaxiong, guozhou, huajunsir}@zju.edu.cn Project Website: https://oceangpt.zjukg.cn/
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Ocean science, which delves into the oceans that are reservoirs of life and biodiversity, is of great significance given that oceans cover over $70\%$ of our planet's surface. Recently, advances in Large Language Models (LLMs) have transformed the paradigm in science. Despite the success in other domains, current LLMs often fall short in catering to the needs of domain experts like oceanographers, and the potential of LLMs for ocean science is under-explored. The intrinsic reasons are the immense and intricate nature of ocean data as well as the necessity for higher granularity and richness in knowledge. To alleviate these issues, we introduce OCEANGPT, the first-ever large language model in the ocean domain, which is expert in various ocean science tasks. We also propose DOINSTRUCT, a novel framework to automatically obtain a large volume of ocean domain instruction data, which generates instructions based on multi-agent collaboration. Additionally, we construct the first oceanography benchmark, OCEANBENCH, to evaluate the capabilities of LLMs in the ocean domain. Though comprehensive experiments, OCEANGPT not only shows a higher level of knowledge expertise for oceans science tasks but also gains preliminary embodied intelligence capabilities in ocean technology.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Ocean science, which delves into the intricacies of oceans that cover over $70\%$ of our planet's surface, is essential not only for understanding the rich reservoirs of life and biodiversity but also for recognizing their pivotal role in regulating the global climate and supporting economies (Esaias et al., 1998; Falkowski, 2012; Visbeck, 2018; Jin et al., 2023). Recently, advances in Large Language Models (LLMs) (OpenAI, 2023; Jiang et al., 2023; Zha et al., 2023; Yin et al., 2023; Zhao et al., 2023) have
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Capabilities of OCEANGPT. Our proposed model not only shows a higher level of knowledge expertise for oceans science tasks but also gains preliminary embodied intelligence capabilities in ocean technology.
|
| 17 |
+
|
| 18 |
+
transformed the paradigm in science domains such as medical science (Moor et al., 2023), molecular science (Fang et al., 2023), protein science (Lin et al., 2023) and geoscience (Deng et al., 2023). However, the potential for the large language model in ocean science is under-explored.
|
| 19 |
+
|
| 20 |
+
Despite remarkable success in general domain, current LLMs still do not fully meet the specific demand of oceanographers. This inadequacy is primarily due to: (1) The immense volume and intricate nature of ocean data. As ocean science research progresses, acquiring data becomes increasingly challenging, which makes enhancing the oceanic understanding both a golden opportunity and a significant hurdle. (2) The necessity for higher granularity and richness in knowledge. Note that the data requirements faced by researchers are becoming increasingly intricate and diverse. Ocean science encompasses various domains and subjects, each with its distinct data attributes and patterns.
|
| 21 |
+
|
| 22 |
+
To alleviate these issues, we introduce
|
| 23 |
+
|
| 24 |
+
OCEANGPT, the first-ever LLM in the ocean domain, which is expert in various ocean science tasks. Specifically, we propose DOINSTRUCT, an efficient ocean science instruction generation framework that capitalizes on multi-agent collaboration. Each agent in our designed framework is considered as an expert in a specific domain (science and research, resources and development, ecology and environment etc.) and is responsible for generating the corresponding data. For the advancement of ocean science research using LLMs, we also create a benchmark called OCEANBENCH to evaluate the capabilities in ocean science tasks.
|
| 25 |
+
|
| 26 |
+
Through extensive experiments, OCEANGPT shows superiority for diverse ocean science tasks. Note that our benchmark data is based on criteria manually evaluated by ocean experts, and can accurately reflect the capabilities that LLMs possess in the field of ocean science. As depicted in Figure 1, our model can comprehensively answer questions according to the instructions of oceanographers, which demonstrates its expertise in oceanography. We further explore the potential of OCEANGPT from the perspectives of ocean engineering. Specifically, we integrate ocean robotics instructions into the training data and evaluate its ability via code or console commands. OCEANGPT not only demonstrates a higher level of knowledge expertise but also gains preliminary embodied intelligence capabilities in ocean technology.
|
| 27 |
+
|
| 28 |
+
Our contributions can be summarized as follows:
|
| 29 |
+
|
| 30 |
+
- We introduce OCEANGPT, the first ocean LLM, which shows superiority for various ocean science tasks. It can answer oceanographic questions according to the instructions of oceanographers, demonstrating expertise in oceanography.
|
| 31 |
+
- We propose DOINSTRUCT, an automated domain instruction evolving framework that constructs the ocean instruction dataset by multiagent collaboration. Our framework effectively alleviates the difficulty of obtaining ocean domain data.
|
| 32 |
+
- Extensive experiments demonstrate the superiority of OCEANGPT in the OCEANBENCH. OCEANGPT not only demonstrates a higher level of knowledge expertise for oceans science tasks but also gains preliminary embodied intelligence capabilities.
|
| 33 |
+
|
| 34 |
+
# 2 Related Work
|
| 35 |
+
|
| 36 |
+
Large Language Models. The landscape of LLM (Brown et al., 2020; Chowdhery et al., 2022; Touvron et al., 2023a,b) has rapidly evolved and achieved a series breakthroughs. Rae et al. (2021); Zhang et al. (2022); Thoppilan et al. (2022); Scao et al. (2022); Zeng et al. (2023) have explored the performance across a wide range of model scales and broadened the application scope. (Qiao et al., 2023a; Zhang et al., 2023a; Qiao et al., 2023b; Wang et al., 2023a; Xi et al., 2023). Retrieval-Augmented Generation (RAG) is a useful solution by incorporating knowledge from external databases (Gao et al., 2023; Lewis et al., 2020; Schick et al., 2023; Khandelwal et al., 2020). To align LLMs, instruction tuning (Wei et al., 2022; Zhang et al., 2023b; Ouyang et al., 2022; Taori et al., 2023; Wang et al., 2023d; Chiang et al., 2023; Xu et al., 2023) is a crucial technique to alignment with user preferences and desired outputs. Different from those, we train a totally new ocean science large language model and introduce an effective domain instruction generation framework via multi-agent collaboration.
|
| 37 |
+
|
| 38 |
+
Science Large Language Models. LLMs have emerged as cornerstone models in addressing challenges within scientific research. Singhal et al. (2022) explores the potential of clinical LLMs and introduces a human evaluation framework and instruction prompt tuning. Moor et al. (2023) proposes generalist medical AI that is capable of handling diverse medical tasks using self-supervised learning on large datasets. Kraljevic et al. (2021) introduces MedGPT, a model using EHR data and Named Entity Recognition tools for predicting future medical events. BioGPT (Luo et al., 2022) is a language model pre-trained on biomedical literature for improved text generation and mining. Theodoris et al. (2023) describes Geneformer, a model pre-trained on single-cell transcriptomes for making predictions with limited data in network biology. Lin et al. (2023) demonstrates the prediction of atomic-level protein structure from primary sequences using scaled-up language models. Deng et al. (2023) introduces the first LLM specifically designed for geoscience, including its training and benchmarking protocols. Chen et al. (2023) presents tele-knowledge pre-training for fault analysis. Different from previous works, we design the first large language model for ocean science tasks and explore its potential for ocean research.
|
| 39 |
+
|
| 40 |
+
# 3 OCEANGPT
|
| 41 |
+
|
| 42 |
+
To obtain OCEANGPT, we firstly construct the training corpus for ocean science and pre-train an ocean LLM based on LLaMA-2 (Touvron et al., 2023b) in Section 3.1. Then we propose DOINSTRUCT, an automated framework for domain instruction generation to build an ocean domain-specific instruction dataset. Our framework leverages multi-agent collaboration and utilizes ocean literature to automatically generate a large volume of domain-specific instructions for ocean science tasks (Section 3.2). The overview training procedure of our OCEANGPT is shown in Figure 2.
|
| 43 |
+
|
| 44 |
+
# 3.1 Pre-training Stage
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: Overall framework of OCEANGPT.
|
| 48 |
+
|
| 49 |
+
To pre-train the foundation model for ocean science tasks, it is essential to construct the pretraining corpus specific to ocean science. Therefore, we firstly collect a raw corpus of 67,633 documents from open-access literature. For the specific volumes we choose, we prefer to consider publications from recent years to ensure the inclusion of the latest research and developments. At the same time, we select some historically significant literature to help the LLM understand the developmental history of the field. For diversity, we choose articles from different sources to ensure coverage of various research perspectives and methods. Specifically, we utilize the Python package pdfminer to convert the content of literature files into plain text. To ensure the quality and consistency of the data, further processing of the collected dataset is necessary. We apply regular expressions to filter out figures, tables, headers, footers, page numbers, URLs and references. Additionally, any extra spaces, line breaks, and other non-text characters are removed. The processed documents cover various aspects of ocean science such as ocean physics, ocean chemistry, ocean biology, geology, hydrology, etc. It is important to note that special characters, emoticons, and garbled characters are also replaced or eliminated during this process. We also employ hash-based methods to de-duplicate the data, which helps reduce the risk of over-fitting
|
| 50 |
+
|
| 51 |
+
during pre-training and enhances its generalization capability.
|
| 52 |
+
|
| 53 |
+
# 3.2 Domain Instruction Data Generation
|
| 54 |
+
|
| 55 |
+
As ocean science research deepens, researchers are facing increasingly complex and diversified data demands. Ocean science corpus contains multiple fields and topics, and each topic has its unique data characteristics and patterns. To effectively simulate and obtain those data, we propose a domain instruction generation framework DOINSTRUCT to obtain ocean instructions $H$ by multi-agent collaboration. Each agent is considered as an expert in a specific domain (topic) and is responsible for generating the corresponding data. It not only ensures the professionalism and accuracy of the data but also allows for the parallel and efficient generation of a large amount of data. Note that the proposed framework also has greater flexibility, allowing us to independently optimize and adapt to different science domains (e.g., astronomy).
|
| 56 |
+
|
| 57 |
+
Ocean Topic Definition. To provide researchers with a clear and organized resources, we manually categorize the data in ocean science into five major ocean topics, which are based on the expertise of experts in oceanography. The definitions of these five topics comprehensively cover all the main areas of ocean science and are relatively independent. The detailed explanation for the five major topics is described as follows:
|
| 58 |
+
|
| 59 |
+
- Science and research focuses on the fundamental scientific theories and research related to the ocean, such as ocean currents, sea temperatures and ocean biodiversity. This portion of data separately helps drive the advancement of pure scientific research and theories.
|
| 60 |
+
- Resources and development includes fisheries, minerals, oil and gas, as well as other sustainable development resources. It is set for a better examination and planning of the rational development of ocean resources.
|
| 61 |
+
- Ecology and environment. Environmental protection and ecological sustainability are currently global hot topics. It helps to address issues such as ocean pollution, ecological degradation, and the impact of climate change on the oceans in a more focused manner.
|
| 62 |
+
- Technology and engineering encompasses aspects ranging from ocean measurements, ob
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
Figure 3: Procedure of our proposed DOINSTRUCT. We use agents (gpt-3.5-turbo) as experts for each ocean topic and make them rapidly expand the instructions by collaboration. In this framework, we design three agent roles: evolving generator, fine-tuned literature extractor and inspector with rule constraints.
|
| 66 |
+
|
| 67 |
+
servational equipment, and ship engineering to ocean energy development. Such categorization aids in a more focused exploration of ocean engineering and technological needs, while also facilitating interdisciplinary research with other engineering disciplines.
|
| 68 |
+
|
| 69 |
+
- Life, culture and others. The ocean is not only a natural resource or a subject of scientific research; it is also an integral part of culture and lifestyle. This category consists of aspects ranging from history and culture to the mutual influences between the ocean and human societal activities, such as tourism, leisure.
|
| 70 |
+
|
| 71 |
+
While these five topics are distinct, there might be some overlap as well. For instance, some issues related to ocean environmental protection might also be associated with the technology of ocean engineering. For the sake of convenience in data analysis, in the actual construction of the dataset, we map each sample to the most relevant category.
|
| 72 |
+
|
| 73 |
+
Agents as Domain (Ocean) Experts. In Figure 3, we use agents as domain experts for each ocean topic and make them rapidly expand the instructions by collaboration. We collect the seed instruction data and propose three strategies by using multiple agents acting as experts.
|
| 74 |
+
|
| 75 |
+
To construct the seed dataset, we employ dozens of annotators with rich backgrounds in marine science. Each annotator is responsible for several
|
| 76 |
+
|
| 77 |
+
topics and they first manually write some representative example for each marine topic. Then we use LLMs to mimic the existing data to generate a large number of similar samples. All samples are ultimately manually checked by the annotators.
|
| 78 |
+
|
| 79 |
+
The entire process is very time-consuming, with all the experts spending a total of four days to validate the seed data. The final seed instruction dataset includes 5 major categories, over 500 sub-categories and a total of more than 10,000 data samples.
|
| 80 |
+
|
| 81 |
+
- Evolving Agent as the Generator. We design an evolving approach that selects samples from the seed dataset and simultaneously calls upon two agents (gpt-3.5-turbo) to evolve the selected samples. The evolution procedure includes two aspects: (1) we enrich the content of the sample by having the agent automatically add relevant background knowledge to it; (2) we guide the agent to refine the sample by conducting a more in-depth analysis of specific concepts or entities. Through multiple rounds of iterative execution, our method can rapidly expand the existing seed dataset, which allows for the rapid expansion of both the breadth and depth of information.
|
| 82 |
+
- Fine-Tuned Agent as the Literature Extractor. As shown in Figure 3, we collect a smaller expert-annotated corpus and use the BM25 to retrieve high quality sentences in a larger ocean corpus. We regard the retrieved texts
|
| 83 |
+
|
| 84 |
+
Algorithm 1 Domain Instruction Data Generation
|
| 85 |
+
Require: Seed dataset $S$ with format (inst, output), Ocean literature corpus $O$ , Pre-defined rules $R$ for filtering
|
| 86 |
+
Ensure: High-quality instruction dataset $H$
|
| 87 |
+
1: Initialize empty datasets.
|
| 88 |
+
2: Step1Data = $\emptyset$ , Step2Data = $\emptyset$ , $H = \emptyset$
|
| 89 |
+
3:
|
| 90 |
+
▷ Agent Collaboration as Domain Experts.
|
| 91 |
+
4: for each sample in $S$ do
|
| 92 |
+
5: inst, output ← sample
|
| 93 |
+
6: enriched_sample ← Enrich.inst, output)
|
| 94 |
+
7: refined_sample ← Refine.inst, output)
|
| 95 |
+
8: Step1Data ← Step1Data ∪ enriched_sample ∪ refined_sample
|
| 96 |
+
9: end for
|
| 97 |
+
10:
|
| 98 |
+
▷ Fine-Tuned Agent as Literature Extractor.
|
| 99 |
+
11: RetrievedTexts ← BM25_Retrieve(O)
|
| 100 |
+
12: Model M ← FineTune(S_reverse)
|
| 101 |
+
13: for each document in RetrievedTexts do
|
| 102 |
+
14: output ← document(content)
|
| 103 |
+
15: inst ← M(output)
|
| 104 |
+
16: Step2Data ← Step2Data ∪ (inst, output)
|
| 105 |
+
17: end for
|
| 106 |
+
18:
|
| 107 |
+
▷ Agent as Inspector with Rule Constraints.
|
| 108 |
+
19: MergedData ← Inspector(Step1Data, Step2Data, R)
|
| 109 |
+
20:
|
| 110 |
+
▷ Quality Control by Debating.
|
| 111 |
+
21: for each sample in MergedData do
|
| 112 |
+
22: inst, output ← sample
|
| 113 |
+
23: debate_result ← Debate.inst, output)
|
| 114 |
+
24: if debate_result is high-quality then
|
| 115 |
+
25: H ← H ∪ sample
|
| 116 |
+
26: end if
|
| 117 |
+
27: end for
|
| 118 |
+
28: return H
|
| 119 |
+
|
| 120 |
+
as high-quality candidate samples. Meanwhile, we fine-tune gpt-3.5-turbo with the seed instruction dataset, regarding the finetuned agent as the literature extractor. In other words, it can automatically extract instructions (inst) from the unannotated ocean science corpus (output). Therefore, we utilize the agent to automatically build pairs of (inst, output) on external ocean science literature.
|
| 121 |
+
|
| 122 |
+
- Agent as the Inspector with Rule Constraints. For the massively generated instructions, we use the pre-defined rules as constraints and perform filtering on the data. These rules include syntactic and semantic constraints as well as basic definitions in the ocean domain. We describe these rules using natural language because many constraints and norms related to ocean science cannot be directly represented with expressions. Therefore, we provide prompts to the gpt-3.5-turbo API as demonstrations, letting it play the role of an
|
| 123 |
+
|
| 124 |
+
inspector. Our method ensures that the generated ocean instruction data is of higher quality. Detailed prompt is shown in Table 5.
|
| 125 |
+
|
| 126 |
+
Finally, we assign two extra gpt-3.5-turbo agents as roles to debate the quality of data and obtain high-quality instruction dataset. Our designed framework can rapidly constructing a ocean science dataset using multi-agents, and by incorporating external knowledge from marine literature, it overcomes the limitations inherent to the agents themselves. Our framework can also be effectively applied to the instruction data construction in other scientific domains. It should be noted that we separately synthesize robot instructions to equip OCEANGPT with the capability to interact with the environment. The procedure is in Algorithm 1 and the statistics of dataset is in Figure 4.
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
Figure 4: Statistics of our final instruction dataset. We use DOINSTRUCT to expand more than 150,000 instructions (data-evolving, data-extracting).
|
| 130 |
+
|
| 131 |
+
Quality Control for the Datasets. We ask domain experts to carefully review and check data to ensure quality. Specifically, the human volunteers are first trained to make sure they have a comprehensive understanding of the task. Then, we develop a platform that can help experts to randomly sample $10\%$ instances from the generated instruction dataset. Next, the trained domain experts are asked to validate if there are potential errors in the sampled instances. The final IAA (inter-annotator agreement) score for our dataset is 0.82, which satisfies the research purpose.
|
| 132 |
+
|
| 133 |
+
# 4 Benchmarking Ocean Science Tasks
|
| 134 |
+
|
| 135 |
+
We provide detailed explanations of the experimental setup and the baseline models in Section 4.1. In Section 4.1, we construct an ocean-specific benchmark OCEANBENCH to evaluate the capabilities of our OCEANGPT. We describe the automatic and human evaluation in Section 4.1.
|
| 136 |
+
|
| 137 |
+
# 4.1 Implementation Details and Baselines
|
| 138 |
+
|
| 139 |
+
For the pre-training stage, we pre-train our OCEANGPT $^2$ based on the LLaMA-2 (Touvron et al., 2023b) for seven days with six A800 Nvidia GPUs. For the instruction-tuning stage, we employ the LoRA method (Hu et al., 2021) to fine-tune the pre-trained model and choose three baseline models for comparison. We use the chat version of LLaMA-2 (Llama-2-7b-chat-hf), which is a generative language model optimized for dialogue use cases. We also use Vicuna-1.5 (Chiang et al., 2023), a chat model which fine-tunes LLaMA-2 on dataset collected from ShareGPT. We further use ChatGLM2-6B, the optimized version of GLM (Zeng et al., 2023). The detailed experimental settings are shown in Table 2 (Appendix A).
|
| 140 |
+
|
| 141 |
+
OCEANBENCH. To evaluate the capabilities of LLMs for oceanography tasks, we design a benchmark called OCEANBENCH. Our benchmark includes a total of 15 ocean-related tasks such as question-answering, extraction, and description. Our evaluation samples are automatically generated from the seed dataset and have undergone dedduplication $^{3}$ and manual verification by experts.
|
| 142 |
+
|
| 143 |
+
For the quality control, we further sample part of data and ask domain experts to evaluate the quality (those disagreed cases or bad cases will be manually fixed by domain experts.). The distribution of our designed OCEANBENCH and the detailed statistics can be found in Table 1 and Figure 11.
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Task</td><td>Num</td><td>Task</td><td>Num</td></tr><tr><td>Analysis</td><td>674</td><td>Classification</td><td>895</td></tr><tr><td>Judgment</td><td>655</td><td>Letter Writing</td><td>359</td></tr><tr><td>Open-ended Generation</td><td>930</td><td>Extraction</td><td>1,078</td></tr><tr><td>Recommendation</td><td>1,089</td><td>Description</td><td>1,246</td></tr><tr><td>Summary</td><td>149</td><td>Editing</td><td>1,075</td></tr><tr><td>Identification</td><td>464</td><td>Transformation</td><td>401</td></tr><tr><td>Question Answering</td><td>1,230</td><td>Others</td><td>157</td></tr><tr><td>Commonsense Reasoning</td><td>1,024</td><td></td><td></td></tr></table>
|
| 146 |
+
|
| 147 |
+
Table 1: The detailed statistics of OCEANBENCH.
|
| 148 |
+
|
| 149 |
+
Metrics. For the task-level calculation, we compare the effectiveness of two models for each task. When one model performs better on the majority
|
| 150 |
+
|
| 151 |
+
2We release the 7B version at https://huggingface.co/zjunlp/OceanGPT-7B-v0.1 for evaluation, and further release the 2B (MiniCPM-2B-sft-bf16) and 8B (Meta-Llama-3-8B-Instruct) version at https://huggingface.co/collections/zjunlp/ oceangpt-664cc106358fdd9f09aa5157.
|
| 152 |
+
|
| 153 |
+
3We also perform dedduplication between the benchmark and our training dataset to avoid the data leakage in the training stage of OceanGPT. The detailed explanation about the similarity calculating dedduplication method is in Appendix A.
|
| 154 |
+
|
| 155 |
+
of test samples in a single task, it is considered to 'win' that task. For the instance-level computation process, we do not differentiate between specific tasks and instead calculate overall metrics.
|
| 156 |
+
|
| 157 |
+
Automatic Evaluation. To evaluate the performance and reduce reliance on manual evaluation, we leverage GPT-4 as the evaluator. Inspired by Wang et al. (2023c,b), we utilize an effective calibration method to evaluate the performance of two LLMs. For each testing question, we query the GPT4 to obtain the comparison result when given two outputs from two LLMs. We note that LLMs are sensitive to the position of responses, so alleviating the positional bias is very important. To balance the position bias, we exchange the order of the responses to form the new prompt. The final evaluating result is the sum of the test results for the two prompts with their order swapped.
|
| 158 |
+
|
| 159 |
+
Human Evaluation. To validate our proposed framework, we also collect the output data in different settings and evaluate it by human evaluation. We employ 5 students with an ocean science background as human annotators. For each evaluation setting, we sample a set of 200 examples and human annotators will rank the outputs they prefer. The total expense is about 500 US dollars.
|
| 160 |
+
|
| 161 |
+
# 5 Results
|
| 162 |
+
|
| 163 |
+
# 5.1 Insights from Performance Results
|
| 164 |
+
|
| 165 |
+
OCEANGPT can obtain better performance than previous open-sourced LLMs. In Figure 5, we compare the performance of OCEANGPT with the three baseline models across 15 sub-tasks at the task-level in the ocean domain. We utilize both automatic and human evaluators, then compute the win rate $(\%)$ with baseline models. Compared to the baselines (llama2-chat-7b, vicuna-1.5-7b, chatglm2-6b), OCEANGPT outperforms in the majority of tasks, which demonstrates the effectiveness of the proposed approach.
|
| 166 |
+
|
| 167 |
+
OCEANGPT excels in a range of ocean science tasks. As shown in Figure 6, we present detailed automatic evaluation experimental results in the OCEANBENCH. It can be clearly seen that our model is superior to baseline language models in the vast majority of tasks. Note that previous open-sourced LLMs even fail to handle several expertise ocean tasks (e.g., Editing). While our designed multi-agent data generation framework can effectively act as experts in various subfields of the
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 5: Ocean task-level results. Left: Automatic evaluation. Right: Human evaluation. Compared to baselines, OCEANGPT performs better than llama2-chat-7b, vicuna-1.5-7b and chatglm2-6b in both two settings. The instance-level result is in Figure 10 (Appendix A).
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
Figure 6: Evaluation results of OCEANGPT in the ocean science tasks in OCEANBENCH. The complete experimental results are shown in Figure 12 (Appendix A).
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 7: Performance analysis for different agents. We design three indicators to measure the generation effect.
|
| 193 |
+
|
| 194 |
+
ocean domain, which indicates that OCEANGPT is a better expert in various ocean domains.
|
| 195 |
+
|
| 196 |
+
DOINSTRUCT are the effective ocean data generators by multi-agent collaboration. As shown in Figure 7, we design three indicators to measure the data generation effect of our proposed method from the perspectives of knowledge quality, expertise and diversity. We use manual evaluation to calculate the scores of the three indicators from 1 to 5. The higher the score, the better the effect of the testing model. It can be seen that the evolving generator agent can effectively enhance the richness of ocean data. When the extraction agent is at work, the expertise of the content is greatly improved. At the same time, the inspector agent plays a significant role in enhancing the quality of the
|
| 197 |
+
|
| 198 |
+
generated data. It shows that multi-agent collaboration is effective for ocean instruction generation.
|
| 199 |
+
|
| 200 |
+
# 5.2 Exploring the Potential of OceanGPT
|
| 201 |
+
|
| 202 |
+
In this section, we explore the potential of OCEANGPT from the perspectives of ocean science and ocean engineering. For ocean science (Section 5.2.1), we focus on the key scientific issues of nuclear pollution in the ocean environment. For ocean engineering (Section 5.2.2), we explore the potential in robotics applications (Li et al., 2023). Specifically, we use Gazebo as the simulator (Manhães et al., 2016) to test OCEANGPT's ability to control underwater robots.
|
| 203 |
+
|
| 204 |
+
# 5.2.1 OceanGPT for Ocean Science
|
| 205 |
+
|
| 206 |
+
In Figure 8, we compare the outputs of OCEANGPT and vicuna-1.5-7b. It shows that OCEANGPT shows a higher level of knowledge expertise when describing the content of radioactive nuclide research. Its textual content is not only clear in structure and well-organized, but also covers various aspects of radioactive nuclide research, from experimental design to data analysis, and then to risk assessment and disposal guidelines.
|
| 207 |
+
|
| 208 |
+
# OceanGPT
|
| 209 |
+
|
| 210 |
+
The study of interfacial chemistry and toxicological effects of key radioactive nuclides is a complex research field that requires a multidisciplinary approach. It involves multiple techniques such as experimental research, theoretical research, and numerical simulations. The following is a detailed outline of the steps to conduct research on the interface chemistry and toxicological effects of key radioactive nuclides:
|
| 211 |
+
|
| 212 |
+
1. Determine the specific radioactive nuclides of interest ...2. Conduct laboratory experiments ... 3. Develop computational models: Computational models can be used to simulate the chemical and toxicological effects of radioactive nuclides. ... 4. Analyze experimental data...5. Develop toxicological risk assessment methods: Toxicological risk assessment methods are used to evaluate the potential hazards of radioactive nuclides. This involves developing models that can predict the toxicological effects of radioactive nuclides and assessing their risks to human health. 6. Conduct field experiments: ...7. Develop guidelines for safe disposal: Safe disposal of radioactive nuclides is critical for preventing environmental contamination and protecting human health. This involves ..
|
| 213 |
+
|
| 214 |
+
# Vicuna-7b-1.5
|
| 215 |
+
|
| 216 |
+
Conducting research on interfacial chemistry and toxicological effects of key radioactive nuclides requires a multidisciplinary approach, combining expertise in chemistry, physics, biology, and environmental science. Here are some general steps you can follow to conduct research in this area:
|
| 217 |
+
|
| 218 |
+
1. Identify the key radioactive nuclides of interest... 2. Develop a research question... 3. Design experiments: Develop a set of experiments that will help you answer your research question. This may involve conducting laboratory experiments, field studies, or both. Be sure to choose experiments that are appropriate for your research question and that use methods that are reliable and valid. 4. Collect and analyze data... 5. Interpret results and draw conclusions: Use your data to draw conclusions about the interfacial chemistry and toxicological effects of the key radioactive nuclides. Be sure to consider any limitations of your study and to consider how your findings may be generalized to other contexts. 6. Communicate your results: Finally, share your findings with others through publication in academic journals, presentations at conferences, and other means. Be sure to clearly communicate the importance of your work and its implications...
|
| 219 |
+
|
| 220 |
+

|
| 221 |
+
Figure 8: Case analysis on ocean science task. We use blue font to represent the difference and the instruction is: How to conduct research on interfacial chemistry and toxicological effects of key radioactive nuclides?
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Figure 9: Our model can be instructed for underwater robot control in the simulation platform of Gazebo which shows OCEANGPT gains preliminary embodied intelligence capabilities.
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
|
| 228 |
+
In contrast, although vicuna-1.5-7b has clear expression and logicality, it lacks depth and specific content related to radioactive nuclides. Overall, OCEANGPT has advantages in terms of knowledge expertise, quality, and richness. The complete outputs are shown in the Table 6.
|
| 229 |
+
|
| 230 |
+
# 5.2.2 OceanGPT for Ocean Engineering
|
| 231 |
+
|
| 232 |
+
Ocean engineering focuses on the design, development, and management of structures and systems within the ocean environment. It plays an indispensable role in harnessing the vast potential of the oceans while ensuring sustainable and secure maritime operations. To facilitate interaction between OCEANGPT and the external world, we synthesize robotic code data and integrate those machine code instructions into the training data.
|
| 233 |
+
|
| 234 |
+
As depicted in Figure 9, OCEANGPT can instruct underwater robots via code or console commands, allowing them to execute basic path-finding operations. In this example, by using programming language as a prompt, our OCEANGPT can automatically generate code (the robot generate a double helix path) for underwater robot to operate complex tasks (based on human instructions). In fact, the experimental result suggests that OCEANGPT has the potential to acquire embodied intelligence.
|
| 235 |
+
|
| 236 |
+
Though we make preliminary attempts for ocean robot interaction, it paves the way for advanced oceanic models to undertake intricate robotic control and complex planning tasks.
|
| 237 |
+
|
| 238 |
+
# 6 Conclusion
|
| 239 |
+
|
| 240 |
+
In this paper, we introduce OCEANGPT, the first-ever oceanographic pre-trained language model, which is expert in various ocean science tasks. To alleviate the difficulties for obtaining ocean data, we propose an domain construction framework called DOINSTRUCT, which constructs the ocean instruction dataset by multi-agent collaboration. Each agent in our designed framework is considered as an expert in a specific topic and is responsible for generating the corresponding data. Our generated dataset consists of diverse instructions to align the desired behaviors in ocean science issues. Though comprehensive analysis, we observe that OCEANGPT not only demonstrates a higher level of knowledge expertise for oceans science tasks but also gains preliminary embodied intelligence capabilities in ocean engineering. We will continue to improve OCEANGPT by training on larger corpus with larger models (e.g., 30B, 70B) and maintain OCEANBENCH by adding new data and tasks.
|
| 241 |
+
|
| 242 |
+
# Limitations
|
| 243 |
+
|
| 244 |
+
Bias in Data Distribution In the realm of LLMs, the distribution of pre-training data and instruction data can be subject to substantial biases, which can shape the outputs of these models. Pre-training data for LLMs often comes from the internet, a vast and potentially biased source of information. The Internet content is inherently skewed, reflecting the biases of its contributors, and hence may not represent a balanced global perspective. Similarly, instruction data can also carry the biases of the humans who create these instructions. For instance, instruction developed by individuals with a particular cultural, socioeconomic, or educational background may inadvertently favor specific perspectives, languages, or communication styles and marginalize others. This bias in data distribution can result in models that reinforce existing prejudices, lack cultural sensitivity, or fail to accurately understand and generate content in underrepresented languages or dialects.
|
| 245 |
+
|
| 246 |
+
Hallucination in LLMs Although LLMs have shown tremendous success in general domains of NLP, there is a notable issue regarding their tendency to produce hallucinations. Hallucinations refer to instances where LLMs occasionally generate content that deviates from the user's input, contradicts previously generated context, or conflicts with established world knowledge. By developing strategies to address the issue of hallucination, LLMs can better align their outputs with user intent, preserve coherence within generated content, and enhance their overall utility in real-world applications.
|
| 247 |
+
|
| 248 |
+
# Acknowledgments
|
| 249 |
+
|
| 250 |
+
We would like to express gratitude to the anonymous reviewers for constructive comments. This work was supported by the National Natural Science Foundation of China (No. 62206246, No. NSFCU23B2055, No. NSFCU19B2027), the Fundamental Research Funds for the Central Universities (226-2023-00138), Zhejiang Provincial Natural Science Foundation of China (No. LGG22F030011), Yongjiang Talent Introduction Programme (2021A-156-G), CCF-Baidu Open Fund, the "Pioneer and Leader + X" Plan Project of Zhejiang Province under Grant (2024C01162), and Information Technology Center and State Key Lab of CAD&CG, Zhejiang University.
|
| 251 |
+
|
| 252 |
+
# References
|
| 253 |
+
|
| 254 |
+
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual.
|
| 255 |
+
Zhuo Chen, Wen Zhang, Yufeng Huang, Mingyang Chen, Yuxia Geng, Hongtao Yu, Zhen Bi, Yichi Zhang, Zhen Yao, Wenting Song, Xinliang Wu, Yi Yang, Mingyi Chen, Zhaoyang Lian, Yingying Li, Lei Cheng, and Huajun Chen. 2023. Tele-knowledge pre-training for fault analysis.
|
| 256 |
+
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An opensource chatbot impressing gpt-4 with $90\%$ * chatgpt quality.
|
| 257 |
+
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, and et al. 2022. Palm: Scaling language modeling with pathways. CoRR, abs/2204.02311.
|
| 258 |
+
Cheng Deng, Tianhang Zhang, Zhongmou He, Qiyuan Chen, Yuanyuan Shi, Le Zhou, Luoyi Fu, Weinan Zhang, Xinbing Wang, Chenghu Zhou, Zhouhan Lin, and Junxian He. 2023. Learning A foundation language model for geoscience knowledge understanding and utilization. CoRR, abs/2306.05064.
|
| 259 |
+
Wayne E Esaias, Mark R Abbott, Ian Barton, Otis B Brown, Janet W Campbell, Kendall L Carder, Dennis K Clark, Robert H Evans, Frank E Hoge, Howard R Gordon, et al. 1998. An overview of modis capabilities for ocean science observations. IEEE Transactions on Geoscience and Remote Sensing, 36(4):1250-1265.
|
| 260 |
+
Paul Falkowski. 2012. Ocean science: the power of plankton. Nature, 483(7387):S17-S20.
|
| 261 |
+
Yin Fang, Qiang Zhang, Ningyu Zhang, Zhuo Chen, Xiang Zhuang, Xin Shao, Xiaohui Fan, and Huajun Chen. 2023. Knowledge graph-enhanced molecular contrastive learning with functional prompt. Nature Machine Intelligence, 5:1-12.
|
| 262 |
+
|
| 263 |
+
Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, Qianyu Guo, Meng Wang, and Haofen Wang. 2023. Retrievalaugmented generation for large language models: A survey. CoRR, abs/2312.10997.
|
| 264 |
+
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models.
|
| 265 |
+
Jinhao Jiang, Kun Zhou, Zican Dong, Keming Ye, Wayne Xin Zhao, and Ji-Rong Wen. 2023. Structgpt: A general framework for large language model to reason over structured data. CoRR, abs/2305.09645.
|
| 266 |
+
Xuchen Jin, Xianqiang He, Difeng Wang, Jianyun Ying, Fang Gong, Qiankun Zhu, Chenghu Zhou, and Delu Pan. 2023. Impact of rain effects on l-band passive microwave satellite observations over the ocean. IEEE Trans. Geosci. Remote. Sens., 61:1-16.
|
| 267 |
+
Urvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer, and Mike Lewis. 2020. Generalization through memorization: Nearest neighbor language models. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net.
|
| 268 |
+
Zeljko Kraljevic, Anthony Shek, Daniel Bean, Rebecca Bendayan, James T. Teo, and Richard J. B. Dobson. 2021. Medgpt: Medical concept prediction from clinical narratives. CoRR, abs/2107.03134.
|
| 269 |
+
Patrick S. H. Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Roektaschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual.
|
| 270 |
+
Chengshu Li, Jacky Liang, Andy Zeng, Xinyun Chen, Karol Hausman, Dorsa Sadigh, Sergey Levine, Li Fei-Fei, Fei Xia, and Brian Ichter. 2023. Chain of code: Reasoning with a language model-augmented code emulator.
|
| 271 |
+
Zeming Lin, Halil Akin, Roshan Rao, Brian Hie, Zhongkai Zhu, Wenting Lu, Nikita Smetanin, Robert Verkuil, Ori Kabeli, Yaniv Shmueli, Allan dos Santos Costa, Maryam Fazel-Zarandi, Tom Sercu, Salvatore Candido, and Alexander Rives. 2023. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science, 379(6637):1123-1130.
|
| 272 |
+
Renqian Luo, Liai Sun, Yingce Xia, Tao Qin, Sheng Zhang, Hoifung Poon, and Tie-Yan Liu. 2022. Biogpt: generative pre-trained transformer for biomedical text generation and mining. Briefings Bioinform., 23(6).
|
| 273 |
+
|
| 274 |
+
Musa Morena Marcusso Manhães, Sebastian A. Scherer, Martin Voss, Luiz Ricardo Douat, and Thomas Rauschenbach. 2016. UUV simulator: A gazebo-based package for underwater intervention and multirobot simulation. In OCEANS 2016 MTS/IEEE Monterey. IEEE.
|
| 275 |
+
Michael Moor, Oishi Banerjee, Zahra Shakeri, Harlan Krumholz, Jure Leskovec, Eric Topol, and Pranav Rajpurkar. 2023. Foundation models for generalist medical artificial intelligence. Nature, 616:259-265.
|
| 276 |
+
OpenAI. 2023. Gpt-4 technical report.
|
| 277 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F. Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In NeurIPS.
|
| 278 |
+
Shuofei Qiao, Honghao Gui, Huajun Chen, and Ningyu Zhang. 2023a. Making language models better tool learners with execution feedback. CoRR, abs/2305.13068.
|
| 279 |
+
Shuofei Qiao, Yixin Ou, Ningyu Zhang, Xiang Chen, Yunzhi Yao, Shumin Deng, Chuanqi Tan, Fei Huang, and Huajun Chen. 2023b. Reasoning with language model prompting: A survey. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2023, Toronto, Canada, July 9-14, 2023, pages 5368-5393. Association for Computational Linguistics.
|
| 280 |
+
Jack W. Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, H. Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, Eliza Rutherford, Tom Hennigan, Jacob Menick, Albin Cassirer, Richard Powell, George van den Driessche, Lisa Anne Hendricks, Maribeth Rauh, Po-Sen Huang, Amelia Glaese, Johannes Welbl, Sumanth Dathathri, Saffron Huang, Jonathan Uesato, John Mellor, Irina Higgins, Antonia Creswell, Nat McAleese, Amy Wu, Erich Elsen, Siddhant M. Jayakumar, Elena Buchatskaya, David Budden, Esme Sutherland, Karen Simonyan, Michela Paganini, Laurent Sifre, Lena Martens, Xiang Lorraine Li, Adhiguna Kuncoro, Aida Nematzadeh, Elena Gribovskaya, Domenic Donato, Angeliki Lazaridou, Arthur Mensch, Jean-Baptiste Lespiau, Maria Tsimpoukelli, Nikolai Grigorev, Doug Fritz, Thibault Sotiaux, Mantas Pajarskas, Toby Pohlen, Zhitao Gong, Daniel Toyama, Cyprien de Masson d'Autume, Yujia Li, Tayfun Terzi, Vladimir Mikulik, Igor Babuschkin, Aidan Clark, Diego de Las Casas, Aurelia Guy, Chris Jones, James Bradbury, Matthew J. Johnson, Blake A. Hechtman, Laura Weidinger, Jason Gabriel, William Isaac, Edward Lockhart, Simon Osindero, Laura Rimell, Chris Dyer, Oriol Vinyals, Kareem Ayoub, Jeff Stanway, Lorraine Bennett, Demis Hassabis, Koray Kavukcuoglu, and Geoffrey Irving. 2021. Scaling language models: Methods, analysis & insights from training gopher. CoRR, abs/2112.11446.
|
| 281 |
+
|
| 282 |
+
Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilic, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Galle, Jonathan Tow, Alexander M. Rush, Stella Biderman, Albert Webson, Pawan Sasanka Ammanamanchi, Thomas Wang, Benoit Sagot, Niklas Muennighoff, Albert Villanova del Moral, Olatunj Ruwase, Rachel Bawden, Stas Bekman, Angelina McMillan-Major, Iz Beltagy, Huu Nguyen, Lucile Saulnier, Samson Tan, Pedro Ortiz Suarez, Victor Sanh, Hugo Laurencon, Yacine Jernite, Julien Launay, Margaret Mitchell, Colin Raffel, Aaron Gokaslan, Adi Simhi, Aitor Soroa, Alham Fikri Aji, Amit Alfassy, Anna Rogers, Ariel Kreisberg Nitzav, Canwen Xu, Chenghao Mou, Chris Emezue, Christopher Klamm, Colin Leong, Daniel van Strien, David Ifeoluwa Adelani, and et al. 2022. BLOOM: A 176b-parameter open-access multilingual language model. CoRR, abs/2211.05100.
|
| 283 |
+
Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2023. Toolformer: Language models can teach themselves to use tools. CoRR, abs/2302.04761.
|
| 284 |
+
Karan Singhal, Shekoofeh Azizi, Tao Tu, S. Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Kumar Tanwani, Heather Cole-Lewis, Stephen Pfohl, Perry Payne, Martin Seneviratne, Paul Gamble, Chris Kelly, Nathaneal Scharli, Aakanksha Chowdhery, Philip Andrew Mansfield, Blaise Agüera y Arcas, Dale R. Webster, Gregory S. Corrado, Yossi Matias, Katherine Chou, Juraj Gottweis, Nenad Tomasev, Yun Liu, Alvin Rajkomar, Joelle K. Barral, Christopher Semturs, Alan Karthikesalingam, and Vivek Natarajan. 2022. Large language models encode clinical knowledge. CoRR, abs/2212.13138.
|
| 285 |
+
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca.
|
| 286 |
+
Christina Theodoris, Ling Xiao, Anant Chopra, Mark Chaffin, Zeina Sayed, Matthew Hill, Helene Mantineo, Elizabeth Brydon, Zexian Zeng, Shirley Liu, and Patrick Ellinor. 2023. Transfer learning enables predictions in network biology. Nature, 618:1-9.
|
| 287 |
+
Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, YaGuang Li, Hongrae Lee, Huaixiu Steven Zheng, Amin Ghafouri, Marcelo Menegali, Yanping Huang, Maxim Krikun, Dmitry Lepikhin, James Qin, Dehao Chen, Yuanzhong Xu, Zhifeng Chen, Adam Roberts, Maarten Bosma, Yanqi Zhou, Chung-Ching Chang, Igor Krivokon, Will Rusch, Marc Pickett, Kathleen S. Meier-Hellstern, Meredith Ringel Morris, Tulsee Doshi, Renelito Delos Santos, Toju Duke, Johnny Soraker, Ben Zevenbergen, Vinodkumar Prabhakaran, Mark Diaz, Ben Hutchinson, Kristen Olson, Alejandra Molina, Erin Hoffman-John, Josh Lee, Lora
|
| 288 |
+
|
| 289 |
+
Aroyo, Ravi Rajakumar, Alena Butryna, Matthew Lamm, Viktoriya Kuzmina, Joe Fenton, Aaron Cohen, Rachel Bernstein, Ray Kurzweil, Blaise Agüera y Arcas, Claire Cui, Marian Croak, Ed H. Chi, and Quoc Le. 2022. Lamda: Language models for dialog applications. CoRR, abs/2201.08239.
|
| 290 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Roziere, Naman Goyal, Eric Hambro, Faisal Azhar, Aurélien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023a. Llama: Open and efficient foundation language models. CoRR, abs/2302.13971.
|
| 291 |
+
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, and et al. 2023b. Llama 2: Open foundation and fine-tuned chat models. CoRR, abs/2307.09288.
|
| 292 |
+
Martin Visbeck. 2018. Ocean science research is key for a sustainable future. Nature communications, 9(1):690.
|
| 293 |
+
Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin Zhao, Zhewei Wei, and Ji-Rong Wen. 2023a. A survey on large language model based autonomous agents. CoRR, abs/2308.11432.
|
| 294 |
+
Peiyi Wang, Lei Li, Liang Chen, Zefan Cai, Dawei Zhu, Binghuai Lin, Yunbo Cao, Qi Liu, Tianyu Liu, and Zhifang Sui. 2023b. Large language models are not fair evaluators.
|
| 295 |
+
Xingyao Wang, Zihan Wang, Jiateng Liu, Yangyi Chen, Lifan Yuan, Hao Peng, and Heng Ji. 2023c. Mint: Evaluating llms in multi-turn interaction with tools and language feedback.
|
| 296 |
+
Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2023d. Self-instruct: Aligning language models with self-generated instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2023, Toronto, Canada, July 9-14, 2023, pages 13484-13508. Association for Computational Linguistics.
|
| 297 |
+
Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. 2022. Finetuned
|
| 298 |
+
|
| 299 |
+
language models are zero-shot learners. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 300 |
+
|
| 301 |
+
Zhiheng Xi, Wenxiang Chen, Xin Guo, Wei He, Yiwen Ding, Boyang Hong, Ming Zhang, Junzhe Wang, Senjie Jin, Enyu Zhou, Rui Zheng, Xiaoran Fan, Xiao Wang, Limao Xiong, Yuhao Zhou, Weiran Wang, Changhao Jiang, Yicheng Zou, Xiangyang Liu, Zhangyue Yin, Shihan Dou, Rongxiang Weng, Wensen Cheng, Qi Zhang, Wenjuan Qin, Yongyan Zheng, Xipeng Qiu, Xuanjing Huan, and Tao Gui. 2023. The rise and potential of large language model based agents: A survey. CoRR, abs/2309.07864.
|
| 302 |
+
|
| 303 |
+
Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. 2023. Wizardlm: Empowering large language models to follow complex instructions. CoRR, abs/2304.12244.
|
| 304 |
+
|
| 305 |
+
Shukang Yin, Chaoyou Fu, Sirui Zhao, Ke Li, Xing Sun, Tong Xu, and Enhong Chen. 2023. A survey on multimodal large language models. CoRR, abs/2306.13549.
|
| 306 |
+
|
| 307 |
+
Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, Weng Lam Tam, Zixuan Ma, Yufei Xue, Jidong Zhai, Wenguang Chen, Zhiyuan Liu, Peng Zhang, Yuxiao Dong, and Jie Tang. 2023. GLM-130B: an open bilingual pre-trained model.
|
| 308 |
+
|
| 309 |
+
Liangyu Zha, Junlin Zhou, Liyao Li, Rui Wang, Qingyi Huang, Saisai Yang, Jing Yuan, Changbao Su, Xiang Li, Aofeng Su, Tao Zhang, Chen Zhou, Kaizhe Shou, Miao Wang, Wufang Zhu, Guoshan Lu, Chao Ye, Yali Ye, Wentao Ye, Yiming Zhang, Xinglong Deng, Jie Xu, Haobo Wang, Gang Chen, and Junbo Zhao. 2023. Tablegpt: Towards unifying tables, nature language and commands into one GPT. CoRR, abs/2307.08674.
|
| 310 |
+
|
| 311 |
+
Ningyu Zhang, Jintian Zhang, Xiaohan Wang, Honghao Gui, Kangwei Liu, Yinuo Jiang, Xiang Chen, Shengyu Mao, Shuofei Qiao, Yuqi Zhu, Zhen Bi, Jing Chen, Xiaozhuan Liang, Yixin Ou, Runnan Fang, Zekun Xi, Xin Xu, Lei Li, Peng Wang, Mengru Wang, Yunzhi Yao, Bozhong Tian, Yin Fang, Guozhou Zheng, and Huajun Chen. 2023a. Knowlm technical report.
|
| 312 |
+
|
| 313 |
+
Shengyu Zhang, Linfeng Dong, Xiaoya Li, Sen Zhang, Xiaofei Sun, Shuhe Wang, Jiwei Li, Runyi Hu, Tianwei Zhang, Fei Wu, and Guoyin Wang. 2023b. Instruction tuning for large language models: A survey. CoRR, abs/2308.10792.
|
| 314 |
+
|
| 315 |
+
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona T. Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer. 2022.
|
| 316 |
+
|
| 317 |
+
OPT: open pre-trained transformer language models. CoRR, abs/2205.01068.
|
| 318 |
+
|
| 319 |
+
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen. 2023. A survey of large language models. CoRR, abs/2303.18223.
|
| 320 |
+
|
| 321 |
+
# A Appendix
|
| 322 |
+
|
| 323 |
+
<table><tr><td>Hyperparameter</td><td>Setting</td></tr><tr><td>Fine-tuning method</td><td>LoRA</td></tr><tr><td>Batch Size</td><td>512</td></tr><tr><td>Device†</td><td>NVIDIA A800</td></tr><tr><td>GPU number</td><td>6</td></tr><tr><td>Learning Rate (LR)</td><td>1e-4</td></tr><tr><td>LoRA r</td><td>8</td></tr><tr><td>LoRA α</td><td>16</td></tr><tr><td>LoRA Dropout</td><td>0.05</td></tr><tr><td>Epoch</td><td>10</td></tr></table>
|
| 324 |
+
|
| 325 |
+
Table 2: Detailed experimental settings.
|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 10: Instance-level results (automatic evaluation)
|
| 329 |
+
|
| 330 |
+
Figure 11: Distribution of our OCEANBENCH.
|
| 331 |
+

|
| 332 |
+
Description $\equiv$ Question-Answering $\equiv$ Recommendation $\equiv$ Extraction $\equiv$ Editing
|
| 333 |
+
Commonsense Reasoning Open-ended Generation Classification
|
| 334 |
+
Analysis Judgment Recognition Transformation Letter Writing
|
| 335 |
+
Summary Others
|
| 336 |
+
|
| 337 |
+
# The Cost for Fine-tuning GPT-3.5-Turbo
|
| 338 |
+
|
| 339 |
+
For fine-tuning GPT-3.5-turbo, we use the reference code provided by OpenAI to fine-tune their language model. Overall, during the actual debugging process, we train and test the model multiple times, spending a total of nearly 500 US dollars (with the number of high-quality training samples being around 2000). Each time we run the script to train the model, it takes several hours.
|
| 340 |
+
|
| 341 |
+
The training cost is 0.008 USD per 1K tokens, the input cost during use is 0.012 USD per 1K tokens, and the output cost is 0.016 USD per 1K tokens. Assuming our prompt's input and output for one conversation is 1000 tokens, and if we have 2000 training samples with actual testing on 10000 samples, our training cost would be approximately 16.8 USD. The usage cost of the model after finetuning is about 138.0 USD, making the total cost around 154.8 USD. Since we debugged multiple times in the actual process, the real expenditure is greater. Overall, the overall training cost is not high and is affordable.
|
| 342 |
+
|
| 343 |
+
# Comparison between Our Fine-tuning Method and the Prefix Prompts
|
| 344 |
+
|
| 345 |
+
In the paper, we define 5 marine science topics, but this is a very broad categorization. In reality, each major topic contains many subtopics. For example, the topic 'Ecology and Environment' includes subtopics like marine meteorology, marine pollution, and over a dozen others. Altogether, these subtopics amount to over 500. Each of these subtopics is relatively independent and very important. Concatenating them as a prefix to GPT-3.5-turbo would exceed its maximum length limit and the actual usage cost would also be significant. Therefore, we believe that fine-tuning GPT-3.5-turbo is a better choice. The prompt examples are shown in Table 3 and Table 4.
|
| 346 |
+
|
| 347 |
+
# The Similarity Calculating Method in the Dedduplication Procedure
|
| 348 |
+
|
| 349 |
+
Because comparing pairs for similarity involves a significant number of calculations, we choose a simple and effective method to address this challenge. We primarily use hash detection to compare two samples. First, we pre-extract keywords from the question part of each sample and then combine them into a new string. For example, the keywords for a data sample might be 'advice', 'ocean', and 'nuclear leakage'. We then employ hash detection
|
| 350 |
+
|
| 351 |
+
Instruction: You are a helpful ocean assistant. You are to extract the question from the provided content.
|
| 352 |
+
|
| 353 |
+
Input: Raw sentences in the marine literature (The instruction prompt will be concatenated with raw sentences about seawater resources).
|
| 354 |
+
|
| 355 |
+
# Output:
|
| 356 |
+
|
| 357 |
+
Answer: Existing methods of seawater resource exploitation have many problems, such as causing soil erosion and environmental pollution. Therefore, we need to seek more sustainable development methods, including water conservation, wastewater recycling, and the development of new water resources.
|
| 358 |
+
|
| 359 |
+
Question: Please discuss your views on the current methods of developing seawater resources.
|
| 360 |
+
|
| 361 |
+
Table 3: The prompt for fine-tuning GPT-3.5-turbo.
|
| 362 |
+
|
| 363 |
+
# Instruction:
|
| 364 |
+
|
| 365 |
+
You are a helpful ocean assistant. You are to extract the question from the provided content.
|
| 366 |
+
|
| 367 |
+
# Input:
|
| 368 |
+
|
| 369 |
+
Raw sentences in the marine literature (The instruction prompt will be concatenated with raw sentences about seawater resources).
|
| 370 |
+
|
| 371 |
+
# The demonstration and answer pairs:
|
| 372 |
+
|
| 373 |
+
I will first give you some typical examples to help you become a marine expert.
|
| 374 |
+
|
| 375 |
+
Demonstration 1: ... Answer 1: ...
|
| 376 |
+
|
| 377 |
+
Demonstration 2: ... Answer 2: ...
|
| 378 |
+
|
| 379 |
+
Demonstration 3: ... Answer 3: ...
|
| 380 |
+
|
| 381 |
+
Demonstration 4: ... Answer 4: ...
|
| 382 |
+
|
| 383 |
+
(The demonstration and answer pairs for each marine subtopics. over 500 sub-categories. Each sub-categories has different task types)
|
| 384 |
+
|
| 385 |
+
# Output:
|
| 386 |
+
|
| 387 |
+
Answer: ... Question: ...
|
| 388 |
+
|
| 389 |
+
(Concatenating them as a prefix to GPT-3.5-turbo would exceed its maximum length limit and the actual usage cost is significant)
|
| 390 |
+
|
| 391 |
+
Table 4: The prefix prompt to GPT-3.5-turbo.
|
| 392 |
+
|
| 393 |
+
to compare the keywords of the two samples. This method can relatively accurately prevent data leakage during the training process. It's important to note that sometimes the extraction of keywords can lead to redundancy or repetition, so we sometimes process them multiple times. Additionally, we also randomly select some samples and use the GPT-3.5-turbo API for detection to check for any cases of incomplete processing.
|
| 394 |
+
|
| 395 |
+
Additionally, regarding the dedduplication process between the benchmark and our training dataset, we remove only a hundred or two hundred samples from the training set in the actual experiment, which is not a large number.
|
| 396 |
+
|
| 397 |
+

|
| 398 |
+
Figure 12: Automatic evaluation results of OCEANGPT in all tasks in OCEANBENCH.
|
| 399 |
+
|
| 400 |
+
# Prompt for "Fine-Tuned Agent as the Literature Extractor":
|
| 401 |
+
|
| 402 |
+
You are a helpful ocean assistant. You are to extract the question from each of the answer provided.
|
| 403 |
+
|
| 404 |
+
Answer: This is a seahorse, belonging to the family Sygnathidae. Seahorses are vertebrates commonly found in tropical and subtropical waters. They have unique morphology and biological characteristics and are important organisms in marine ecosystems.
|
| 405 |
+
|
| 406 |
+
# Prompt for "Evolving Agent as the Generator":
|
| 407 |
+
|
| 408 |
+
Assuming you are an expert in marine engineering and resources, please keep the meaning of the following sentences unchanged and provide as much professional knowledge as possible.
|
| 409 |
+
|
| 410 |
+
Sentences:Please recommend some mineral resources found in the East China Sea.
|
| 411 |
+
|
| 412 |
+
# Prompt for "Agent as the Inspector with Rule Constraints":
|
| 413 |
+
|
| 414 |
+
Assuming you are an inspector in marine science, please filter and judge the sentences in 'Sentences' based on the constraints provided below:
|
| 415 |
+
|
| 416 |
+
Constraints: Keyword Filter: Focus on literature that prominently mentions the terms 'coral reefs', 'ocean acidification', or 'deep-sea exploration'. Date Range: Only consider articles published between 2010 and 2022. Author Filter: Prioritize works by
|
| 417 |
+
|
| 418 |
+
the Oceanic Research Institute. Type of Literature: Specifically look for 'experimental studies' and 'review articles'. Exclude 'conference papers'. Geographical Focus:
|
| 419 |
+
|
| 420 |
+
Highlight research that pertains to the Pacific Ocean region. Language Constraint: Only select literature written in English. Abstract Inclusion: Ensure the abstract contains the phrase 'climate impact'. Abstract Exclusion: Exclude any literature whose abstract mentions 'laboratory simulation'.
|
| 421 |
+
|
| 422 |
+
# Prompt for automatic evaluation using GPT4:
|
| 423 |
+
|
| 424 |
+
Please check if following sentences contain rich ocean related information. If so, output "related". Otherwise, output "unrelated".
|
| 425 |
+
|
| 426 |
+
Sentences: Dissolved organic carbon (DOC) represents the largest pool of reduced carbon in oceans and plays important roles in the ocean carbon cycle and food webs. DOC comprises nearly half of the riverine organic carbon flux into oceans. Riverine DOC is involved in numerous ecosystem functions, including key roles in chemical and biological processes. Refractory and labile DOC are, respectively, important for carbon sequestration in the ocean and a vital food source for marine bacteria.
|
| 427 |
+
|
| 428 |
+
Table 5: The prompt example that we use in this work.
|
| 429 |
+
|
| 430 |
+
<table><tr><td colspan="2">Instruction: How to conduct research on interfacial chemistry and toxicological effects of key radioactive nuclides?</td></tr><tr><td>OCEANGPT</td><td>The study of interfacial chemistry and toxicological effects of key radioactive nuclides is a complex research field that requires a multidisciplinary approach. It involves multiple techniques such as experimental research, theoretical research, and numerical simulations. The following is a detailed outline of the steps to conduct research on the interface chemistry and toxicological effects of key radioactive nuclides: 1. Determine the specific radioactive nuclides of interest: Different radioactive nuclides have different chemical properties and toxicological effects. Therefore, it is necessary to select specific radioactive nuclides of interest and establish a research plan. 2. Conduct laboratory experiments: Laboratory experiments are crucial for studying the chemical properties and toxicological effects of radioactive nuclides. The experiments involve measuring the chemical properties of radioactive nuclides, such as their reactivity, stability, and chemical reactivity. 3. Develop computational models: Computational models can be used to simulate the chemical and toxicological effects of radioactive nuclides. This involves developing mathematical models and algorithms to predict the behavior of radioactive nuclides under different conditions. 4. Analyze experimental data: Experimental data obtained from laboratory experiments need to be analyzed and interpreted. This involves studying the experimental results and comparing them with theoretical predictions. 5. Develop toxicological risk assessment methods: Toxicological risk assessment methods are used to evaluate the potential hazards of radioactive nuclides. This involves developing models that can predict the toxicological effects of radioactive nuclides and assessing their risks to human health. 6. Conduct field experiments: Field experiments are necessary to study the behavior of radioactive nuclides in real-world environments. This involves measuring the chemical and toxicological effects of radioactive nuclides in different ecosystems and studying their distribution and transport. 7. Develop guidelines for safe disposal: Safe disposal of radioactive nuclides is critical for preventing environmental contamination and protecting human health. This involves developing guidelines for the safe disposal of radioactive nuclides and their storage and transport.</td></tr><tr><td>vicuna-1.5-7b</td><td>Conducting research on interfacial chemistry and toxicological effects of key radioactive nuclides requires a multidisciplinary approach, combining expertise in chemistry, physics, biology, and environmental science. Here are some general steps you can follow to conduct research in this area: 1. Identify the key radioactive nuclides of interest: Start by identifying the specific radioactive nuclides that you want to study. This may include elements such as uranium, plutonium, and cesium, among others. 2. Develop a research question: Once you have identified the key radioactive nuclides, develop a research question that addresses an important aspect of their interfacial chemistry and toxicological effects. This question should be specific and focused, and should guide your research efforts. 3. Design experiments: Develop a set of experiments that will help you answer your research question. This may involve conducting laboratory experiments, field studies, or both. Be sure to choose experiments that are appropriate for your research question and that use methods that are reliable and valid. 4. Collect and analyze data: Once you have conducted your experiments, collect and analyze the data you have generated. Be sure to carefully document your methods and results, and to interpret your data in a clear and concise manner. 5. Interpret results and draw conclusions: Use your data to draw conclusions about the interfacial chemistry and toxicological effects of the key radioactive nuclides. Be sure to consider any limitations of your study and to consider how your findings may be generalized to other contexts. 6. Communicate your results: Finally, share your findings with others through publication in academic journals, presentations at conferences, and other means. Be sure to clearly communicate the importance of your work and its implications for interfacial chemistry and toxicology.</td></tr></table>
|
| 431 |
+
|
| 432 |
+
Table 6: Detailed case analysis on ocean science task. The input prompt is How to conduct research on interfacial chemistry and toxicological effects of key radioactive nuclides?
|
| 433 |
+
|
| 434 |
+
<table><tr><td>Task Type</td><td>Example</td></tr><tr><td>Analysis</td><td>Input: Analyze the impact of marine environmental dynamics processes on the wave environment. Output: The dynamic processes of the oceanic environment have a significant influence on the wave conditions, such as the temperature of seawater, salinity, and ocean current affecting the height and frequency of waves. Meanwhile, the wave conditions can further impact the dynamics of ocean current and tides.</td></tr><tr><td>Classification</td><td>Input: Classify the ships in the East China Sea according to their type. Output: Ships in the East China Sea can be classified into categories such as merchant ships, fishing vessels, passenger ships, and warships, etc. Merchant ships are primarily used for cargo transport, fishing vessels for fishery resources, passenger ships for tourism and personnel transport, and warships for maritime security and defense. These diverse types of vessels are frequently active in the waters of the East China Sea.</td></tr><tr><td>Commonsense Reasoning</td><td>Input: Why are fish resources in the East China Sea gradually decreasing? Output: Fish resources in the East China Sea are gradually decreasing, mainly due to the impact of factors such as overfishing and environmental pollution. With the increase in population and economic development, fishing activities have been continuously strengthened, resulting in over-exploitation of fish resources. In addition, marine environmental pollution also has adverse effects on the survival and reproduction of fish resources. Therefore, protecting the marine environment and rationally developing fishing resources are key to ensuring the sustainable development of fish resources in the East China Sea.</td></tr><tr><td>Description</td><td>Input: Describe the classification and distribution areas of coral reefs. Output: Coral reefs are calcareous submarine structures formed by coral entities and their attachments. According to their crescent characteristics, they can be categorized into large ring coral reefs, small ring coral reefs, crisscross serrated coral reefs, irregular shaped coral reefs, etc. Approximately 70% of the world's coral reefs are distributed in tropical and subtropical sea areas, with the most important distribution areas being the western Indian Ocean, western Pacific Ocean, and eastern Pacific Ocean.</td></tr><tr><td>Editing</td><td>Input: Edit a big data report used for analyzing marine ecosystems. Output: Important parameters that can be tracked in marine ecosystems include water temperature, salinity, direction of waves, quantity and species of plankton, rate of ocean acidification, etc. In marine big data analysis, we use these data to train machine learning algorithms to understand the changes in the marine ecosystem, forecast potential environmental changes, etc. By utilizing these critical parameters, we can perceive the panorama and pattern of the marine ecosystem and extract valuable information from it to support adaptive and sustainable management practices in the ocean.</td></tr><tr><td>Extraction</td><td>Input: Extract the definition of the greenhouse effect and its causes. Output: The greenhouse effect refers to a thermal blanketformed by the absorption and reflection of solar heat radiation by greenhouse gases (such as carbon dioxide, methane, fluorocarbons, etc.) in the atmosphere, thereby raising the surface temperature of the earth. The sources of greenhouse gases include human activities, natural gases, deforestation, etc., which leads to an intensification of the greenhouse effect and global warming.</td></tr><tr><td>Judgment</td><td>Input: Is active intervention suitable for maintaining the coral reef ecosystem? Output: Active intervention can protect coral reef ecosystems, such as through artificial restoration, controlling sea water pollution, controlling carbon emissions, and reasonable development of coral reefs. Therefore, the coral reef ecosystem is suitable for active intervention and maintenance.</td></tr><tr><td>Letter Writing</td><td>Input: Write a letter to the local environmental protection agency about the waste discharge and pollution recently discovered in the sea area, proposing solutions. Output: Dear xx Environment Bureau: Recently, we have discovered a large amount of waste emission and pollution in the sea area, which has caused serious damage to our marine environment. We suggest that you take a series of measures to strengthen the monitoring and management of pollution sources in the sea area, punish illegal emissions in accordance with the law, and educate illegal polluting enterprises to enhance their environmental protection awareness. We hope that you can take action to effectively protect our marine environment.</td></tr><tr><td>Open-ended Generation</td><td>Input: Briefly introduce the principle and method of wave energy generation. Output: The principle of wave power generation is to convert wave energy into mechanical energy, and then turn the mechanical energy into electrical energy through a generator. The methods of wave power generation include: floating system, wave influx system, wave reflux system, and wave pressure system.</td></tr><tr><td>Question Answering</td><td>Input: What is three-dimensional digital ocean modeling technology? Output: Three-dimensional marine digital modeling technology involves the use of advanced remote sensing, lidar, sonar, and other detection technologies to acquire surface and subsurface oceanographic topographic data. Through digital modeling methods, a three-dimensional mathematical model of the ocean can be constructed. This type of model can provide information on topography, ocean currents, hydrology and acoustics, which is beneficial for applications in ocean resource development, environmental protection, and management, among others.</td></tr><tr><td>Recognition</td><td>Input: Identify the following sea fish species: sea bream, codfish, saury, and shark. Output: Dorada is a common type of sea fish, laterally compressed in form with a big mouth, and is known for its delicious meat. Cod is also a common sea fish, slender in shape with a soft hanging lower jaw, and is also a delicacy. Saury is a type of fish that enters ports from summer to autumn and can be made into a variety of dishes. Sharks are carnivorous marine animals with many species, some of which are primarily used as food, while others may attack humans.</td></tr><tr><td>Recommendation</td><td>Input: Recommend a desalination method suitable for deep-sea water resource development Output: The development of deep-sea water resources is suitable for the adoption of low-temperature seawater desalination technology, which uses cooling water to lower the seawater temperature below the ambient temperature, condensing out fresh water. Compared to traditional seawater desalination technology, low-temperature seawater desalination can conserve energy and reduce costs, while the resulting brine is also more concentrated.</td></tr><tr><td>Summary</td><td>Input: Provide a summary of the current status and future development prospects of offshore wind power generation technology. Output: Ocean wind power generation technology is one of the hot technologies in the field of renewable energy, its power generation efficiency is becoming increasingly high, equipment is becoming increasingly advanced, and the costs are gradually decreasing. It has a broad development prospect and can inject new development momentum into China's marine economy.</td></tr><tr><td>Transformation</td><td>Input: How to transform marine plants into green products? Output: The conversion process of marine plants can be divided into initial collection and extraction of effective parts, followed by processing to obtain the final product. Among them, extraction and processing are critical steps, and they vary for different marine plants. Common processing methods include alkali extraction, acid extraction, and enzyme extraction. The resulting green products also vary, such as chlorophyll, peptide substances, polysaccharide substances, etc.</td></tr></table>
|
| 435 |
+
|
| 436 |
+
Table 7: Examples for tasks in OCEANBENCH.
|
oceangptalargelanguagemodelforoceansciencetasks/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7499b886ca3b5cff9836eae3b2a7603847ce59ec7180380c66cb2e5ce0e989b9
|
| 3 |
+
size 1345181
|
oceangptalargelanguagemodelforoceansciencetasks/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e96df86703982dc22b8e4fa46f649303ba650e83fd28649e0f14c377660ccf5b
|
| 3 |
+
size 427343
|
oliveobjectlevelincontextvisualembeddings/0f42effa-7808-4d52-95ed-8b24c0de004a_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fee0997f43fc59da218de968767e73154924f5de2cb79c6c9a724339b2bb267b
|
| 3 |
+
size 99429
|
oliveobjectlevelincontextvisualembeddings/0f42effa-7808-4d52-95ed-8b24c0de004a_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:247e1860b70e1f9ab239ca2df858750f6dfaa537ad6ab932a07575ce02634970
|
| 3 |
+
size 120483
|
oliveobjectlevelincontextvisualembeddings/0f42effa-7808-4d52-95ed-8b24c0de004a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6498b9c7c39d190d1c08ded29f954aa6dffc7939cc96d458248fcbf939093496
|
| 3 |
+
size 22282825
|
oliveobjectlevelincontextvisualembeddings/full.md
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OLIVE: Object Level In-Context Visual Embeddings
|
| 2 |
+
|
| 3 |
+
Timothy Ossowski<sup>1</sup>, Junjie Hu<sup>1,2</sup>
|
| 4 |
+
|
| 5 |
+
$^{1}$ Department of Computer Science, $^{2}$ Department of Biostatistics and Medical Informatics
|
| 6 |
+
|
| 7 |
+
University of Wisconsin, Madison, WI, USA
|
| 8 |
+
|
| 9 |
+
ossowski@wisc.edu, junjie.hu@wisc.edu
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Recent generalist vision-language models (VLMs) have demonstrated impressive reasoning capabilities across diverse multimodal tasks. However, these models still struggle with fine-grained object level understanding and grounding. In terms of modeling, existing VLMs implicitly align text tokens with image patch tokens, which is ineffective for embedding alignment at the same granularity and inevitably introduces noisy spurious background features. Additionally, these models struggle when generalizing to unseen visual concepts and may not be reliable for domain-specific tasks without further fine-tuning. To address these limitations, we propose a novel method to prompt large language models with in-context visual object vectors, thereby enabling controllable object level reasoning. This eliminates the necessity of fusing a lengthy array of image patch features and significantly speeds up training. Furthermore, we propose region-level retrieval using our object representations, facilitating rapid adaptation to new objects without additional training. Our experiments reveal that our method achieves competitive referring object classification and captioning performance, while also offering zero-shot generalization and robustness to visually challenging contexts. $^{1}$
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Despite the popularity, many existing VLMs such as LLaVA (Liu et al., 2023), MiniGPT4 (Zhu et al., 2023a), and mPLUG-OWL (Ye et al., 2023) handle the entire image for visual understanding, leading to two major shortcomings. First, these VLMs use a visual transformer to split an image into a grid of image patches and embed them into a lengthy array of image patch embeddings that have object level features scattered around different positions of the array. This leads to the different granularity
|
| 18 |
+
|
| 19 |
+
between the image patch tokens and text tokens, further creating difficulty in aligning and grounding visual objects to text concepts. Second, feeding all image patch embeddings to the large language model (LLM) decoder is problematic due to the resulting long context and inefficiency of including in-context examples from multiple images.
|
| 20 |
+
|
| 21 |
+
To improve fine-grained visual alignment, recent region-based VLMs are pre-trained to integrate object level information into the LLM decoder. GPT4ROI (Zhang et al., 2023b) pre-trains LLMs to understand ROIAlign features (He et al., 2017) extracted from bounding boxes. Other similar methods such as Shikra (Chen et al., 2023) or Kosmos-2 (Peng et al., 2024) ground and refer to objects using text in multimodal referential dialogues. FERRET (You et al., 2023) and ViP-LLaVA (Cai et al., 2023) further support free-form shapes as referring input by summarizing visual features sampled within the region of interest. Although these methods provide improvement to object level reasoning, they still fail at recognizing unseen/rare objects and are sensitive to spurious background features, as shown in §5. Even powerful closed-source multimodal models such as GPT4V are unreliable to deploy in high-stakes domain-specific situations such as the medical domain (Senkaiahliyan et al., 2023).
|
| 22 |
+
|
| 23 |
+
A straightforward way to handle generalization to unseen visual content is to integrate a retrieval component. Methods such as REVEAL (Hu et al., 2023) and MuRAG (Chen et al., 2022) provide retrieved multimodal facts as supplementary context to help VLMs generalize to new concepts without further training. However, these models do not consider object level retrieval and in-context prediction. Models such as Flamingo (Alayrac et al., 2022) and Qwen-VL (Bai et al., 2023) allow for in-context examples from multiple images, yet do not support object level retrieval and reasoning.
|
| 24 |
+
|
| 25 |
+
To address the above issues, we propose to encode object level in-context visual embeddings
|
| 26 |
+
|
| 27 |
+
(OLIVE) to enhance LLMs with region-level reasoning capabilities. Critically, we omit lengthy image patch features and encode visual object embeddings by a lightweight encoder of 20 million parameters, allowing for faster training and direct connection to existing LLMs. This preserves the full functionality of the original LLMs, while also introducing novel multimodal reasoning abilities. Furthermore, our object level retrieval module allows for more precise queries and retrieved information to help the model adapt to domain-specific tasks with limited training data. Our contributions are summarized below and in Table 1:
|
| 28 |
+
|
| 29 |
+
- We propose a lightweight object encoder that can be connected to existing LLMs to enable controllable object level multimodal reasoning with free-form input annotations.
|
| 30 |
+
- Our model omits image patch features and summarizes object features into a single vector, significantly reducing context length for more efficient training and inference, and allowing for in-context examples from multiple images.
|
| 31 |
+
- We conduct extensive experiments with region-retrieval of object level features and showcase rapid adaptation to unseen visual concepts.
|
| 32 |
+
|
| 33 |
+
# 2 Preliminaries
|
| 34 |
+
|
| 35 |
+
Generative VLM Architecture Recent generative VLMs (e.g., LLaVA, BLIP-2) adopt a similar architecture that connects a pre-trained visual encoder $\phi_v$ and a pre-trained language model decoder $\phi_t$ through a lightweight fusion neural network, denoted as $\phi_c$ . Specifically, the fusion module first uses a projection function to map a visual feature $\mathbf{v} \in \mathcal{V}$ to the text embedding space $\mathcal{X}$ of the language model decoder, and then fuse the visual and text embeddings as input to language model decoder. Formally, given an image $v$ and a text prompt $x$ , the decoder takes in the combined feature $\mathbf{x}$ to autoregressively predict the output $y$ .
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\begin{array}{l} \mathbf {x} _ {t} = \operatorname {T x t E m b e d} (x; \phi_ {t}) \in \mathcal {X} (1) \\ \mathbf {v} = \operatorname {I m g E n c o d e r} \left(v; \phi_ {v}\right) \in \mathcal {V} (2) \\ \end{array}
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\mathbf {x} _ {v} = \operatorname {P r o j e c t} (\mathbf {v}; \phi_ {c}) \in \mathcal {X} \tag {3}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\mathbf {x} = \text {F u s e} \left(\mathbf {x} _ {v}, \mathbf {x} _ {t}; \phi_ {c}\right) \tag {4}
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
p _ {\mathrm {v l m}} (y | v, x) = \prod_ {j = 0} ^ {| y |} p _ {\phi_ {t}} \left(y _ {j} \mid \mathbf {x}, y _ {< j}\right) \tag {5}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
Different from prior fusion modules (e.g., linear projection in LLaVA, gated cross-attention in
|
| 54 |
+
|
| 55 |
+
Flamingo, and Q-former in BLIP-2) that project the whole image features, we propose an object level encoder (§3.1) that captures fine-grained region features and speeds up training and inference.
|
| 56 |
+
|
| 57 |
+
Visual Instruction Tuning We adopt a similar visual instruction-tuning approach as Liu et al. (2023) by fine-tuning parts of the VLM parameters (e.g., $\phi_c$ and/or $\phi_t$ ) on instruction-following data. The training objective is based on maximum likelihood estimation for next-token predictions given the input image and the text prompt. Different from prior work using pure text prompts, our object encoder and retrieval module ( $\S 3.1$ , $\S 3.2$ ) enables the usage of code-switched prompt sequence mixing text tokens and image object tokens, and the rapid adaptation to unseen domains via in-context prediction.
|
| 58 |
+
|
| 59 |
+
# 3 Method
|
| 60 |
+
|
| 61 |
+
This section as well as Figure 1 highlights the main components of our method. We first design an object encoder (§3.1) to learn visual object embeddings in a shared vision-text space, then apply a similarity search over object embeddings to retrieve relevant visual objects (§3.2), and finally construct a code-switch multimodal prompt to integrate the retrieved object information for generation (§3.3).
|
| 62 |
+
|
| 63 |
+
# 3.1 Object Encoder
|
| 64 |
+
|
| 65 |
+
Following popular region-grounded models such as FERRET (You et al., 2023), we allow for free-form annotation of objects using the object segmentation mask $\mathbf{o}_{\mathrm{mask}}$ as input. Specifically, we first encode an image $v$ with a vision transformer (Dosovitskiy et al., 2020) to obtain patch-level features $\mathbf{v}$ :
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\mathbf {v} = \operatorname {I m g E n c o d e r} \left(v; \phi_ {v}\right) \in \mathbb {R} ^ {\left(n ^ {2} + 1\right) \times d}, \tag {6}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $n$ is the grid size and $d$ is the dimension of hidden states. To further obtain an object level feature $\mathbf{v}_{\mathrm{obj}}$ from the image, we first extract a subset of the image features $\mathbf{V}_{\mathrm{masked}}$ corresponding to the binary object segmentation mask $\mathbf{o}_{\mathrm{mask}}$ :
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\mathbf {v} _ {\text {m a s k e d}} = \mathbf {v} [ \text {F l a t t e n} (\mathbf {o} _ {\text {m a s k}}) ] \in \mathbb {R} ^ {l \times d} \tag {7}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\mathbf{o}_{\mathrm{mask}}$ is a $n\times n$ binary matrix, indicating the corresponding image patches occupied by an object in the image, and $l$ denotes the number of the occupied patches. These segmentation masks can be created by automatic segmentation tools such as SAM (Kirillov et al., 2023) or provided by human selection on the image. The segmentation
|
| 78 |
+
|
| 79 |
+
<table><tr><td>Model</td><td>Free-form Visual Prompts</td><td>Free-form Text prompts</td><td>Visual Generalization</td><td>Generative Approach</td><td>Multi-Image</td></tr><tr><td>Ferret</td><td>✓</td><td>✓</td><td>✗</td><td>✓</td><td>✗</td></tr><tr><td>Flamingo</td><td>✗</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>GPT4ROI</td><td>✗</td><td>✓</td><td>✗</td><td>✓</td><td>✗</td></tr><tr><td>GLAMM</td><td>✗</td><td>✓</td><td>✗</td><td>✓</td><td>✗</td></tr><tr><td>RegionCLIP</td><td>✗</td><td>✓</td><td>✗</td><td>✗</td><td>✗</td></tr><tr><td>Llama-Adapter v2</td><td>✗</td><td>✗</td><td>✗</td><td>✓</td><td>✗</td></tr><tr><td>ViP-LLAVA</td><td>✓</td><td>✗</td><td>✗</td><td>✓</td><td>✗</td></tr><tr><td>OLIVE</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr></table>
|
| 80 |
+
|
| 81 |
+
Table 1: Comparison of OLIVE to recent VLMs. To the best of our knowledge, we are the first method to offer visual generalization with in-context prompting, while also allowing for free form annotation. A more comprehensive summary of related studies is in §6.
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
Figure 1: An overview of our method which consists of three main components, described in detail in Section 3. The object encoder (green) is the only module with required trainable parameters. Note: the prompt in the LLM decoder is modified slightly for visual clarity. The exact prompt can be found in Appendix A.
|
| 85 |
+
|
| 86 |
+
mask is first flattened and used to select object patches $\mathbf{v}_{\mathrm{masked}}$ from $\mathbf{v}$ . Finally, we obtain the object embedding by compressing $\mathbf{v}_{\mathrm{masked}}$ into a single vector $\mathbf{v}_{\mathrm{obj}}$ .
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\mathbf {v} _ {\mathrm {o b j}} = \operatorname {O b j e c t E n c o d e r} \left(\mathbf {v} _ {\text {m a s k e d}}; \phi_ {c}\right) \in \mathbb {R} ^ {d}, \tag {8}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where the object encoder uses a lightweight 2-layer transformer that acts similar to a visual resampler (Zou et al., 2023a; Li et al., 2023), followed by a learnable linear layer to further project the visual representation to the text space (Liu et al., 2023).
|
| 93 |
+
|
| 94 |
+
# 3.2 Visual Object Retrieval
|
| 95 |
+
|
| 96 |
+
In many cases, the object of interest does not resemble anything seen during training. With our visual object embeddings, we can easily perform object level retrieval to match an open class of visual objects and integrate the retrieved information into the language decoder for predicting unseen or rare objects from specific domains (e.g., biomedicine). To this end, we assume access to a retrieval set $\mathcal{R} = \{(o_i,d_i,v_i)\}_{i = 1}^m$ , where each triple consists
|
| 97 |
+
|
| 98 |
+
of an object's segmentation mask $\mathbf{o}_i$ , the object's text description $d_i$ and the image $v_i$ containing this object. To retrieve relevant objects from $\mathcal{R}$ , we use a similar object encoding as §3.1 except that we use the mean pooling of $\mathbf{v}_{\mathrm{masked}}$ as the object encoder in Eq. (9), since this simple strategy does not require any learnable parameters for projection to the text embedding space and visual object embeddings can be pre-computed before any fine-tuning. However, we use a learnable object encoder in Eq. (8) to connect object embeddings to the LM decoder during instruction-tuning for text generation (§3.3).
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\mathbf {v} _ {\mathrm {o b j}} = \operatorname {M e a n P o o l} \left(\mathbf {v} _ {\text {m a s k e d}}\right) \in \mathbb {R} ^ {d}, \tag {9}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
During retrieval, we compute a query vector $\mathbf{v}_{\mathrm{query}}$ for a given object, and compute the cosine similarity scores between $\mathbf{v}_{\mathrm{query}}$ and all the visual object embeddings from $\mathcal{R}$ to obtain the top $k$ closest triples, denoted as $\mathcal{K} = \{(o_i,d_i,v_i)\}_{i = 1}^k$ .
|
| 105 |
+
|
| 106 |
+
# 3.3 In-context Prompt Construction
|
| 107 |
+
|
| 108 |
+
As the visual object embeddings are projected into the text embedding space of the LM decoder, this
|
| 109 |
+
|
| 110 |
+
allows us to construct a code-switched prompt that mixes visual objects with text tokens for the LM decoder (e.g., Llama 2 (Touvron et al., 2023)). In addition, as our object encoder compresses a visual object into a single vector $\mathbf{v}_{\mathrm{obj}}$ , this significantly shortens the length of the visual tokens that the LM decoder needs to fuse with text tokens. Therefore, we can easily integrate multiple retrieved object embeddings into the prompt to augment the LM decoder for in-context text generation. Specifically, we define a special vocabulary token [obj] which can be inserted flexibly in the user prompt $x$ . For example, the user can ask "[obj] Describe this part of the image" to perform region-level description. The embedding of this token is directly replaced with its corresponding visual object embedding. Formally, given a text prompt $x$ that contains indexed [obj] tokens referring to an object $\mathbf{v}_{\mathrm{obj}}$ of interest in an image $v$ and its relevant objects in $\mathcal{K}$ , we define a prompting function that replaces the text embedding of [obj] with its corresponding visual object embedding, and integrates the top $k$ most similar objects $\mathcal{K}$ as in-context examples. For example, a prompt with retrieved in-context examples can be "The top [k] related objects are: [obj_1] is a [label],...[obj_k] is a [label]. [obj_query] What is this?". We provide more details about in-context prompt templates and construction in Appendix A.
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\mathbf {x} = \operatorname {P r o m p t} (x, \mathbf {v} _ {\mathrm {o b j}}, \mathcal {K}) \tag {10}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
Finally, we feed the multimodal prompt $\mathbf{x}$ into the LM decoder for text generation following Eq. (5). Note that compared to prior VLMs (e.g., LLaVA) that directly fuse the patch-level features $\mathbf{v}$ of the whole image (Eq. 6) with object information scattering around different positions in $\mathbf{v}$ , our object encoding is computationally more efficient and speeds up the training that involves multiple in-context objects in the multimodal prompt.
|
| 117 |
+
|
| 118 |
+
# 4 Experimental Settings
|
| 119 |
+
|
| 120 |
+
In this section, we first describe two main object-level tasks for evaluation (§4.1) together with the datasets used (§4.2). Finally, we describe three variants of our model (§4.3), the training details (§4.4), and the other baselines in comparison (§4.5).
|
| 121 |
+
|
| 122 |
+
# 4.1 Object-level Tasks
|
| 123 |
+
|
| 124 |
+
Referring Object Classification Given an object referred by its image location (e.g. segmentation mask/bounding box), the model is instructed to
|
| 125 |
+
|
| 126 |
+
generate a text that predicts the object's class label in a predefined label set, $\mathcal{C} \in \{c_1, c_2, \ldots, c_n\}$ . We provide the ground truth segmentation mask to eliminate localization errors and focus on evaluating the models' understanding of image objects.
|
| 127 |
+
|
| 128 |
+
Referring Expression Generation Given an input image object referred by a segmentation mask, the model is instructed to generate a natural language expression which semantically matches multiple ground-truth references $\mathcal{R} \in \{r_1, r_2, \ldots, r_m\}$ . We use METEOR (Banerjee and Lavie, 2005) and CIDEr (Vedantam et al., 2015) score for evaluating generated description quality.
|
| 129 |
+
|
| 130 |
+
# 4.2 Datasets
|
| 131 |
+
|
| 132 |
+
This section describes the different datasets used in our experiments, with more details in Appendix C.
|
| 133 |
+
|
| 134 |
+
Common Objects in Context (COCO) (Lin et al., 2014) is a popular visual reasoning dataset with over 800,000 object-level annotations for 80 categories of objects. We use it to train our model to understand region input since it contains high-quality segmentation annotations. We use the standardized train and validation 2017 splits for the detection task, and discard a few $(< 1\%)$ small segmentation annotations that fail to be converted into a binary mask. Following (Zhong et al., 2022), we evaluate in the setting where ground-truth segmentations are provided as input to eliminate localization errors. We use the standard metric of mean average precision (mAP) for object detection using the COCO API, as well as overall accuracy.
|
| 135 |
+
|
| 136 |
+
refCOCOg (Kazemzadeh et al., 2014) is a variant of the COCO dataset with about 50,000 annotations for objects and their description. We use the data to train our model to describe image regions and use their standardized train/validation split.
|
| 137 |
+
|
| 138 |
+
ChestX-Ray8 (CXR8) (Wang et al., 2017) is a medical dataset consisting of 108,948 frontal-view X-ray images. The image annotations for the 8 possible pathologies are text-mined from the radiology reports using NLP tools. A small subset of 984 images contains bounding box annotation of the pathology. We use this subset for our zero-shot domain adaptation experiments, splitting the data into $16\%$ retrieval set and $84\%$ test data. The retrieval set consists of 20 examples of each pathology, and we use overall accuracy as the evaluation metric.
|
| 139 |
+
|
| 140 |
+
# 4.3 OLIVE Variants
|
| 141 |
+
|
| 142 |
+
OLIVE-R (Retrieval-only) This retrieval-only method predicts the answer to the user question by taking a majority vote of the top $k$ retrieved examples. For simplicity, we fix $k = 5$ for this setting unless otherwise specified and analyze the effect of $k$ in Figure 6. Although simple, this baseline proves to be effective and provides salient additional context as described in §4.3. However, this discriminative model does not allow for free-form text generation for tasks such as region captioning.
|
| 143 |
+
|
| 144 |
+
OLIVE-G (Generative-only) This model is trained to generate free-form text based solely on the user question and corresponding object features. We omit the retrieved information to observe the capability of the standalone object representations. We find that even without retrieval, the model can learn to perform more challenging object-level tasks such as region description. The final decoder input can be expressed as a variant of Eq. (10):
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\mathbf {x} = \operatorname {P r o m p t} (x, \mathbf {v} _ {\mathrm {o b j}}). \tag {11}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
OLIVE-RG (Full) Our full model generates text outputs based on in-context object examples from retrieval. The multimodal in-context prompt is constructed using Eq. (10). This prompt includes the retrieved object features, their labels, and their similarity scores. The exact construction can be found in Appendix A. The top $k$ retrieved multimodal documents in $\mathcal{K}$ are obtained using the same retrieval described in §3.2 and ordered in increasing relevance score. Both OLIVE-G and OLIVE-RG use greedy decoding for text generation.
|
| 151 |
+
|
| 152 |
+
# 4.4 Training Details
|
| 153 |
+
|
| 154 |
+
Our model uses a frozen ViT-L/14 vision transformer from a CLIP model to obtain patch-level features. For our LLM backbone, we use either Llama 2-7B or GPT-2 (124M) (Radford et al., 2019). The LLM is finetuned with LoRA (Hu et al., 2021) as we find this improves model performance. We use the train splits of two different region-level datasets (i.e., COCO, refCOCOg) as our training data for their respective tasks, and evaluate models on their corresponding validation splits because their test data does not have object-level annotation. More details are in Table 7 and we leave the other hyperparameter search to future exploration. We additionally find that we can train a multi-task model by combining the datasets for all object-level tasks (Details in Appendix E).
|
| 155 |
+
|
| 156 |
+
# 4.5 Other Baselines in Comparison
|
| 157 |
+
|
| 158 |
+
CLIP (Radford et al., 2021) Contrastive Language Image Pretraining learns a joint vision-language space between images and their matching captions. We use this method for zero shot object classification by predicting the target with the highest cosine similarity to the cropped region.
|
| 159 |
+
|
| 160 |
+
BioMedCLIP (Zhang et al., 2023a) The authors train a CLIP model aligned to biomedical image-text pairs, achieving state of the art on a variety of medical tasks. We use this model as a baseline for object classification in the medical domain.
|
| 161 |
+
|
| 162 |
+
RegionCLIP (Zhong et al., 2022) This model learns region-text level alignment through soft-labels obtained from CLIP. We use it for referring object detection based on ROAlign features.
|
| 163 |
+
|
| 164 |
+
Kosmos 2 (Peng et al., 2024) This generative VLM trains a LLM decoder to perform a variety of visual grounding tasks from their newly introduced grounded image-text (GRIT) dataset. We compare with their results on referring expression generation on the refCOCOg dataset.
|
| 165 |
+
|
| 166 |
+
Flamingo (Alayrac et al., 2022) This generative model learns to connect frozen visual features and LLMs by training on interleaved image-text data. We evaluate Flamingo's few-shot performance on referring expression generation on cropped image regions. We use an open-source implementation trained on the multimodal C4 (Zhu et al., 2023b) and LAION-2b (Schuhmann et al., 2022) datasets.
|
| 167 |
+
|
| 168 |
+
5 Results and Analysis
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Method Type</td><td>Pre-Training Data</td><td>Method</td><td>Accuracy</td></tr><tr><td rowspan="6">Classification</td><td>None</td><td>OLIVE-R</td><td>33.5</td></tr><tr><td>PMC-15</td><td>BioMedCLIP</td><td>32.5</td></tr><tr><td>PMC-15</td><td>BioMedCLIPcrop</td><td>23.3</td></tr><tr><td>CLIP400M</td><td>CLIP</td><td>14.0</td></tr><tr><td>None</td><td>Random Guess</td><td>12.5</td></tr><tr><td>CLIP400M</td><td>CLIPcrop</td><td>11.2</td></tr><tr><td rowspan="3">Generative</td><td>COCO</td><td>OLIVE-RG</td><td>31.2</td></tr><tr><td>C4 + LAION-2b</td><td>Flamingo-9B</td><td>12.5</td></tr><tr><td>COCO</td><td>OLIVE-G</td><td>0.0</td></tr></table>
|
| 171 |
+
|
| 172 |
+
Table 2: Zero shot transfer results of our Llama 2 backbone referring object classification model to new objects. crop indicates cropping the image based on the bounding box annotation and using it as the input image. Flamingo is evaluated 8-shot (one example from each pathology).
|
| 173 |
+
|
| 174 |
+
# 5.1 Referring Object Classification
|
| 175 |
+
|
| 176 |
+
Unseen Object Classification One of the benefits of our retrieval augmented system is its rapid
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 2: Examples showcasing the benefit of using retrieval for out of distribution objects. Despite not being trained with any images of sharks or turtles, OLIVE-RG can describe them zero shot by adding a few pictures of them in the retrieval set.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
|
| 183 |
+
generalization to unseen visual concepts. We estimate this capability by training on the COCO dataset and evaluating object classification on an unseen medical dataset which has drastically different types of images and limited training data. Table 2 illustrates the performance of our method on the CXR8 dataset in either a classification or generative setting. Even with as little as 20 examples per class in the medical retrieval set, OLIVE-R achieves competitive performance compared to domain-adapted models (i.e., BioMedCLIP), which we hypothesize is because of our region-level retrieval and in-distribution retrieval set. We also note that our generative approach OLIVE-RG can utilize the retrieved in-context examples and achieve similar performance to BioMedCLIP, despite only being trained on COCO images. Without retrieval, the generative model fails catastrophically with $0\%$ accuracy, and zero-shot CLIP achieves about the same performance as random guessing.
|
| 184 |
+
|
| 185 |
+
Rare Object Classification We also investigate our model's performance on rare, but seen objects. Figure 3 shows our method's performance on the top 5 rarest classes in the COCO dataset. For OLIVE-G and OLIVE-RG, we use a 224 pixel resolution visual encoder to match the CLIP visual encoder. OLIVE-G tends to have lower performances on the rare classes. However, when combining retrieval with parameterized methods in OLIVE-RG and OLIVE-RG-336px, the performance on rare classes improves significantly, with OLIVE-RG-336px performing better than CLIP on all rare classes. OLIVE-RG also achieves better performance on three out of five classes despite being trained on less data. Our model's overall performance can be found in Appendix D.
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Figure 3: Classification accuracy on the most uncommon objects in the COCO dataset. We use a Llama 2 decoder backbone and numbers below the object classes indicate their proportion of the retrieval set. Combining retrieval with generative methods improves performance and increasing vision encoder resolution provides further gains.
|
| 189 |
+
|
| 190 |
+
# 5.2 Referring Expression Generation
|
| 191 |
+
|
| 192 |
+
Captioning Unseen Objects In addition to referring object classification, we investigate our model's ability to caption out-of-distribution objects. Figure 2 illustrates an example of asking our model to describe animals not seen during training. Without retrieval, OLIVE-G fails to describe the shark and turtle. However, after manually adding just 5 labeled objects of turtles and sharks to the existing retrieval set, OLIVE-RG accurately describes the object and provides supporting examples for its prediction. The label description for each object in the retrieval set is only the name of the animal, but the model generates additional characteristics in its description. Appendix B shows more examples of zero-shot adaptation to unseen visual concepts in the object classification setting.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
Prompt: What is the object in the red rectangle?
|
| 196 |
+
Kosmos 2: It is a boogie board
|
| 197 |
+
ViP-LLaVA: The object is a skateboard
|
| 198 |
+
OLIVE-G (ours): The snowboard of the man
|
| 199 |
+
|
| 200 |
+
Challenging Visual Context To test the quality of the representations generated from our object encoder, we qualitatively evaluate our model prediction in adversarial visual contexts. Figure 7 shows a white dog and a black cat in a "yin-yang" shape. We observe that free-form annotation allows for more precise user queries and object descriptions, and illustrates other properties such as scene content awareness and patch-level details as shown in Appendix B. While many VLMs can accurately understand normal scenes, Figure 4 illustrates an example in which an object-level representation may be necessary, with recent works struggling to caption the snowboarder on the beach. The detailed performance of our model on the refCOCOg captioning task can be found in Appendix F.
|
| 201 |
+
|
| 202 |
+
# 5.3 In-context Example Size
|
| 203 |
+
|
| 204 |
+
Since our method omits image patch features and compresses object information into a single vector, it can process many objects from different images at once. In Figure 5, we highlight the difference in context length for various methods when prompted with multimedia examples. We assume an average prompt length of 30 accompanying each in-context image example for all models. Even approaches designed for interleaved image-text data such as Flamingo insert multiple latent vectors for each image, incurring a higher cost than our approach.
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Figure 5: Context length of different VLMs when prompted with multimodal input. Models that represent images with many patch tokens or learned latents incur higher costs with more in-context examples.
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
Figure 4: A challenging visual example in which the background of the image does not correspond with the query object. Methods which cross-attend to the whole image struggle to identify the snowboard, while our object representation enables more accurate description.
|
| 211 |
+
Figure 6: An illustration of how retrieval set size and choice of $k$ affects referring object classification performance. Numbers in the legend indicate the size of the retrieval set, and the stars are the highest accuracies achieved on their curves.
|
| 212 |
+
|
| 213 |
+
# 5.4 Sensitivity on Retrieval: Coverage and $k$
|
| 214 |
+
|
| 215 |
+
In Figure 6 we analyze the effect of changing the size of the object retrieval set as well as the number of retrieved examples, $k$ . To thoroughly test various settings, we evaluate the retrieval-only based approach (OLIVE-R) on the validation split of the COCO dataset using different sized subsets of the training data for retrieval. We ensure the retrieval set contains an equal amount of each object class when possible. Our results indicate that the optimal value of $k$ depends on the size of the retrieval set. With a small retrieval dataset (red), performance is lower and the optimal $k$ tends to be smaller. Larger retrieval sets (blue, green) benefit from retrieving more examples and have greater performance.
|
| 216 |
+
|
| 217 |
+
# 5.5 Object Vector Visualization
|
| 218 |
+
|
| 219 |
+
Having a single vector representation for each object allows for visualization using dimensionality reduction. In Figure 8, we perform principal com
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Figure 7: An illustration of the benefit of free-form visual input. Models that use the entire image or bounding box to refer to regions fail to describe the black cat, while OLIVE-G can use free-form annotation to identify the white dog and black cat.
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
|
| 228 |
+

|
| 229 |
+
|
| 230 |
+
ponent analysis (PCA) on the hidden states of object vectors at different layers in the LLM decoder. We plot 200 examples from each of 10 object categories and note several patterns. First, objects from the same class tend to appear together, even though they appear in different visual contexts. This suggests that the object encoder has semantic understanding of the visual concepts. Second, the object vectors naturally form hierarchical clusters where objects from the same super class such as vehicle, animal, or fruit have overlapping clusters. Lastly, the clustering appears similar across all layers, with only minor variations.
|
| 231 |
+
|
| 232 |
+
# 6 Related Work
|
| 233 |
+
|
| 234 |
+
Grounding in Language and Vision A popular approach for aligning vision and language embeddings is contrastive learning methods such as CLIP and ALIGN (Li et al., 2021). However, these methods align the entire image representation, leading to poor reasoning on image details for downstream vision language tasks. Region-CLIP (Zhong et al., 2022) and GLIP (Li et al., 2022) address this issue by proposing fine-grained alignment with region-text pairs during pretraining. GLIPv2 (Zhang et al., 2022) further improves the pretraining and alignment by introducing localization, detection, and other tasks. Another recent popular approach involves training models on automatically curated region-level data from image-caption pairs (Peng et al., 2024). Many other works focus on region-level alignment during pretraining for greater vision-language understanding (You et al., 2023; Chen et al., 2023; Zeng et al., 2022b,a). More generally, a recent study (Bugliarello et al., 2023) shows that VLMs with fine-grained object-level
|
| 235 |
+
|
| 236 |
+
pretraining such as X-VLM (Zeng et al., 2022a) have better reasoning ability. Other works align vision and language using regularization or loss to create relation aware cross attention between modalities (Pandey et al., 2023; Ren et al., 2021).
|
| 237 |
+
|
| 238 |
+
Visual Resampling Visual resampling is a popular technique to compress long sequences of image features into a few rich vector representations. This is achieved by constructing a fixed amount of learnable vectors that attend to the visual features through cross-attention layers. Models such as BLIP (Li et al., 2023) first explore this idea to connect frozen vision features to LLMs efficiently by summarizing the content of the image. Other methods including X-Decoder (Zou et al., 2023a) or SEEM (Zou et al., 2023b) use resampling to encode various types of prompts or intents which improve the LLM decoding ability. Additionally, works such as Flamingo (Alayrac et al., 2022) and QwenVL (Bai et al., 2023) show that multiple images can be inserted in-context to the prompt by compressing image features with resamplers, enabling few shot capabilities. Our work visually resamples object representations for object-conditioned text generation, and only uses a single vector for the representation. This allows for more fine-grained reasoning and longer in-context prompting.
|
| 239 |
+
|
| 240 |
+
Retrieval Augmented VLMs In the text domain, learning to retrieve relevant documents to enhance the LLM query (Guu et al., 2020) has been explored extensively (Wang et al., 2023). Recent VLM works follow a similar approach to retrieve multimodal documents to improve performance on knowledge-intensive tasks and improve generalization to rare situations. Gao et al. (2022) summarizes visual content into natural language to use as
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
Figure 8: Visualization of the top 2 components when performing PCA decomposition on object vectors in different layers of the LLM decoder (Llama 2). We display 200 examples from each class. Across different layers, objects with similar semantics appear together in the plot, even though they appear in different visual contexts. The clusters are similar across all layers.
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
|
| 249 |
+
a query for dense passage retrieval. MuRAG (Chen et al., 2022) proposes a multimodal image-text memory bank to help models answer challenging knowledge-based visual questions such as "What shape is the pediment on top of the white house?" REVEAL (Hu et al., 2023) and RA-VQA (Lin and Byrne, 2022) learns a trainable multimodal retriever similar to REALM (Guu et al., 2020) during pretraining to fetch relevant documents to answer questions, achieving state of the art performance on datasets such as VQAv2 (Antol et al., 2015) and OKVQA (Schwenk et al., 2022). To the best of our knowledge, we are the first to integrate region-level retrieval with LLMs, in which the multimodal documents are indexed by object-level visual features.
|
| 250 |
+
|
| 251 |
+
# 7 Conclusion
|
| 252 |
+
|
| 253 |
+
We present a simple approach to insert object level visual embeddings into large language model decoders, enabling object level reasoning with flexible prompt structure. Our object encoder compresses fine-grained region level information into a single vector, enabling in-context prompting with objects from multiple images and more efficient training and inference. In addition, we introduce the idea of region retrieval, which allows for precise queries free of image background noise and rapid generalization to rare and unseen objects with no parameter updates. We hope our method may help researchers design vision language models which can adapt to their needs by simply updating the retrieval set or object encoder, while also being responsive to varying user intents using LLM prompting techniques.
|
| 254 |
+
|
| 255 |
+
# 8 Limitations
|
| 256 |
+
|
| 257 |
+
While our approach provides a flexible way for users to supply object-level prompts, it does not output bounding boxes or other region-level grounding. This may be addressed in future research by further finetuning on region-level instruction tuning data as done in FERRET (You et al., 2023), GLAMM (Rasheed et al., 2023), and other region-level VLM pretraining. At the moment, we also do not explore generic image tasks such as VQA or image captioning. However, a potential solution is to use our object encoder to connect to existing VLMs (e.g. LLaVA) which excel at these tasks. Lastly, our results in the retrieval setting depend on the quality of the retrieved examples. Curating a high-quality retrieval set at the object-level can be challenging. However, existing tools such as GLIPv2 (Zhang et al., 2022) allows for semi-automatic generation of region-level data as used in KOSMOS-2 (Peng et al., 2024) in developing the GRIT dataset.
|
| 258 |
+
|
| 259 |
+
# 9 Ethical Considerations
|
| 260 |
+
|
| 261 |
+
Biases From Pretrained LLMs Since our model uses existing pretrained LLMs such as Llama 2 or GPT2, it may inherent some of the social biases or toxicity acquired during their pretraining stages. While Llama 2 undergoes extensive alignment to ideal human values through reinforcement learning from human feedback (RLHF) (Griffith et al., 2013), some of these toxic behaviors may still be present in the morally aligned model. We make sure to only use images of common objects in the COCO dataset, which do not contain any of these biases or violent scenes to the best of our knowledge. Nevertheless, further testing to ensure the
|
| 262 |
+
|
| 263 |
+
impartiality of the model may be necessary before deploying in widespread technologies.
|
| 264 |
+
|
| 265 |
+
Domain Adaptation Some of our experiments involve evaluating our model in a data-scarce domain in a zero shot manner with in-context prompting. While this is a promising direction for efficient domain adaptation, users should take caution in directly using model prediction, as this is a challenging task due to distribution shift. We encourage human-in-the-loop interaction to sanity check the outputs. Different from other ICL prompting methods, we provide retrieved examples and similarity scores which can help determine the trustworthiness of the model prediction, which may be valuable for high-risk domains such as medicine.
|
| 266 |
+
|
| 267 |
+
# Acknowledgement
|
| 268 |
+
|
| 269 |
+
Ossowski and Hu are supported by the Wisconsin Alumni Research Foundation and the National Institute Of Biomedical Imaging And Bioengineering of the National Institutes of Health under Award Number R01EB033782. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
|
| 270 |
+
|
| 271 |
+
# References
|
| 272 |
+
|
| 273 |
+
Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. 2022. Flamingo: a visual language model for few-shot learning. Advances in Neural Information Processing Systems, 35:23716-23736.
|
| 274 |
+
Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. 2015. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, pages 2425-2433.
|
| 275 |
+
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.
|
| 276 |
+
Satanjeev Banerjee and Alon Lavie. 2005. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, pages 65-72.
|
| 277 |
+
Emanuele Bugliarello, Laurent Sartran, Aishwarya Agrawal, Lisa Anne Hendricks, and Aida Nematzadeh. 2023. Measuring progress in fine-grained
|
| 278 |
+
|
| 279 |
+
vision-and-language understanding. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics.
|
| 280 |
+
Mu Cai, Haotian Liu, Siva Karthik Mustikovela, Gregory P Meyer, Yuning Chai, Dennis Park, and Yong Jae Lee. 2023. Making large multimodal models understand arbitrary visual prompts. arXiv preprint arXiv:2312.00784.
|
| 281 |
+
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.
|
| 282 |
+
Wenhu Chen, Hexiang Hu, Xi Chen, Pat Verga, and William W Cohen. 2022. Murag: Multimodal retrieval-augmented generator for open question answering over images and text. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.
|
| 283 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. 2020. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929.
|
| 284 |
+
Feng Gao, Qing Ping, Govind Thattai, Aishwarya Reganti, Ying Nian Wu, and Prem Natarajan. 2022. Transform-retrieve-produce: Natural language-centric outside-knowledge visual question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5067-5077.
|
| 285 |
+
Shane Griffith, Kaushik Subramanian, Jonathan Scholz, Charles L Isbell, and Andrea L Thomaz. 2013. Policy shaping: Integrating human feedback with reinforcement learning. Advances in neural information processing systems, 26.
|
| 286 |
+
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In International Conference on Machine Learning, pages 3929-3938. PMLR.
|
| 287 |
+
Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. 2017. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969.
|
| 288 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685.
|
| 289 |
+
Ziniu Hu, Ahmet Iscen, Chen Sun, Zirui Wang, KaiWei Chang, Yizhou Sun, Cordelia Schmid, David A
|
| 290 |
+
|
| 291 |
+
Ross, and Alireza Fathi. 2023. Reveal: Retrievalaugmented visual-language pre-training with multisource multimodal knowledge memory. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23369-23379.
|
| 292 |
+
Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. 2014. Referitgame: Referring to objects in photographs of natural scenes. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 787-798.
|
| 293 |
+
Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. 2023. Segment anything. arXiv preprint arXiv:2304.02643.
|
| 294 |
+
Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. Blip-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. In International Conference on Machine Learning.
|
| 295 |
+
Junnan Li, Ramprasaath Selvaraju, Akhilesh Gotmare, Shafiq Joty, Caiming Xiong, and Steven Chu Hong Hoi. 2021. Align before fuse: Vision and language representation learning with momentum distillation. Advances in neural information processing systems, 34:9694-9705.
|
| 296 |
+
Lianian Harold Li, Pengchuan Zhang, Haotian Zhang, Jianwei Yang, Chunyuan Li, Yiwu Zhong, Lijuan Wang, Lu Yuan, Lei Zhang, Jenq-Neng Hwang, et al. 2022. Grounded language-image pre-training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10965-10975.
|
| 297 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. 2014. Microsoft coco: Common objects in context. In Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pages 740-755. Springer.
|
| 298 |
+
Weizhe Lin and Bill Byrne. 2022. Retrieval augmented visual question answering with outside knowledge. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.
|
| 299 |
+
Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual instruction tuning. arXiv preprint arXiv:2304.08485.
|
| 300 |
+
Rohan Pandey, Rulin Shao, Paul Pu Liang, Ruslan Salakhutdinov, and Louis-Philippe Morency. 2023. Cross-modal attention congruence regularization for vision-language relation alignment. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5444–5455, Toronto, Canada. Association for Computational Linguistics.
|
| 301 |
+
|
| 302 |
+
Zhiliang Peng, Wenhui Wang, Li Dong, Yaru Hao, Shaohan Huang, Shuming Ma, and Furu Wei. 2024. Kosmos-2: Grounding multimodal large language models to the world. In Proceedings of the Twelfth International Conference on Learning Representations (ICLR).
|
| 303 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. 2021. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748-8763. PMLR.
|
| 304 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9.
|
| 305 |
+
Hanoona Rasheed, Muhammad Maaz, Sahal Shaji, Abdelrahman Shaker, Salman Khan, Hisham Cholakkal, Rao M Anwer, Erix Xing, Ming-Hsuan Yang, and Fahad S Khan. 2023. Glamm: Pixel grounding large multimodal model. arXiv preprint arXiv:2311.03356.
|
| 306 |
+
Shuhuai Ren, Junyang Lin, Guangxiang Zhao, Rui Men, An Yang, Jingren Zhou, Xu Sun, and Hongxia Yang. 2021. Learning relation alignment for calibrated cross-modal retrieval. arXiv preprint arXiv:2105.13868.
|
| 307 |
+
Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, et al. 2022. Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in Neural Information Processing Systems, 35:25278-25294.
|
| 308 |
+
Dustin Schwenk, Apoorv Khandelwal, Christopher Clark, Kenneth Marino, and Roozbeh Mottaghi. 2022. A-okvqa: A benchmark for visual question answering using world knowledge. In European Conference on Computer Vision, pages 146-162. Springer.
|
| 309 |
+
Senthujan Senkaiahliyan, Augustin Toma, Jun Ma, An-Wen Chan, Andrew Ha, Kevin R An, Hrishikesh Suresh, Barry Rubin, and Bo Wang. 2023. Gpt4v (ision) unsuitable for clinical care and education: A clinician-evaluated assessment. medRxiv, pages 2023-11.
|
| 310 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
|
| 311 |
+
Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. 2015. Cider: Consensus-based image description evaluation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4566-4575.
|
| 312 |
+
|
| 313 |
+
Liang Wang, Nan Yang, and Furu Wei. 2023. Learning to retrieve in-context examples for large language models. arXiv preprint arXiv:2307.07164.
|
| 314 |
+
Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, Mohammadhadi Bagheri, and Ronald M Summers. 2017. Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2097-2106.
|
| 315 |
+
Jialian Wu, Jianfeng Wang, Zhengyuan Yang, Zhe Gan, Zicheng Liu, Junsong Yuan, and Lijuan Wang. 2022. Grit: A generative region-to-text transformer for object understanding. arXiv preprint arXiv:2212.00280.
|
| 316 |
+
Qinghao Ye, Haiyang Xu, Guohai Xu, Jiabo Ye, Ming Yan, Yiyang Zhou, Junyang Wang, Anwen Hu, Pengcheng Shi, Yaya Shi, Chaoya Jiang, Chenliang Li, Yuanhong Xu, Hehong Chen, Junfeng Tian, Qian Qi, Ji Zhang, and Fei Huang. 2023. mplug-owl: Modularization empowers large language models with multimodality.
|
| 317 |
+
Haoxuan You, Haotian Zhang, Zhe Gan, Xianzhi Du, Bowen Zhang, Zirui Wang, Liangliang Cao, Shih-Fu Chang, and Yinfei Yang. 2023. Ferret: Refer and ground anything anywhere at any granularity. arXiv preprint arXiv:2310.07704.
|
| 318 |
+
Licheng Yu, Hao Tan, Mohit Bansal, and Tamara L Berg. 2017. A joint speaker-listener-reinforcer model for referring expressions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7282-7290.
|
| 319 |
+
Alireza Zareian, Kevin Dela Rosa, Derek Hao Hu, and Shih-Fu Chang. 2021. Open-vocabulary object detection using captions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14393-14402.
|
| 320 |
+
Yan Zeng, Xinsong Zhang, and Hang Li. 2022a. Multi-grained vision language pre-training: Aligning texts with visual concepts. In Proceedings of the Thirty-ninth International Conference on Machine Learning.
|
| 321 |
+
Yan Zeng, Xinsong Zhang, Hang Li, Jiawei Wang, Jipeng Zhang, and Wangchunshu Zhou. 2022b. $x^{2}$ -vlm: All-in-one pre-trained model for vision-language tasks. arXiv preprint arXiv:2211.12402.
|
| 322 |
+
Haotian Zhang, Pengchuan Zhang, Xiaowei Hu, YenChun Chen, Liunian Li, Xiyang Dai, Lijuan Wang, Lu Yuan, Jenq-Neng Hwang, and Jianfeng Gao. 2022. Glipv2: Unifying localization and vision-language understanding. Advances in Neural Information Processing Systems, 35:36067-36080.
|
| 323 |
+
Sheng Zhang, Yanbo Xu, Naoto Usuyama, Jaspreet Bagga, Robert Tinn, Sam Preston, Rajesh Rao, Mu Wei, Naveen Valluri, Cliff Wong, et al. 2023a.
|
| 324 |
+
|
| 325 |
+
Large-scale domain-specific pretraining for biomedical vision-language processing. arXiv preprint arXiv:2303.00915.
|
| 326 |
+
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.
|
| 327 |
+
Yiwu Zhong, Jianwei Yang, Pengchuan Zhang, Chunyuan Li, Noel Codella, Lianian Harold Li, Luowei Zhou, Xiyang Dai, Lu Yuan, Yin Li, et al. 2022. Regionclip: Region-based language-image pretraining. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16793-16803.
|
| 328 |
+
Deyao Zhu, Jun Chen, Xiaogian Shen, Xiang Li, and Mohamed Elhoseiny. 2023a. Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592.
|
| 329 |
+
Wanrong Zhu, Jack Hessel, Anas Awadalla, Samir Yitzhak Gadre, Jesse Dodge, Alex Fang, Youngjae Yu, Ludwig Schmidt, William Yang Wang, and Yejin Choi. 2023b. Multimodal c4: An open, billion-scale corpus of images interleaved with text. In Advances in Neural Information Processing Systems (D&B).
|
| 330 |
+
Xueyan Zou, Zi-Yi Dou, Jianwei Yang, Zhe Gan, Linjie Li, Chunyuan Li, Xiyang Dai, Harkirat Behl, Jianfeng Wang, Lu Yuan, et al. 2023a. Generalized decoding for pixel, image, and language. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15116-15127.
|
| 331 |
+
Xueyan Zou, Jianwei Yang, Hao Zhang, Feng Li, Linjie Li, Jianfeng Gao, and Yong Jae Lee. 2023b. Segment everything everywhere all at once. In Advances in Neural Information Processing Systems (poster).
|
| 332 |
+
|
| 333 |
+
# A Appendix
|
| 334 |
+
|
| 335 |
+
Table 3 contains all the prompts we use to instruct the LLM decoder.
|
| 336 |
+
|
| 337 |
+
# B Qualitative Examples
|
| 338 |
+
|
| 339 |
+
Here we include several selected examples showcasing the strengths and weaknesses of our approach.
|
| 340 |
+
|
| 341 |
+
Visual Concept Generalization In Figure 9 we demonstrate more examples of rapid generalization to new visual concepts. Many existing methods confidently predict concepts from their pretraining, while ours can predict new concepts on the fly.
|
| 342 |
+
|
| 343 |
+
Scene Content Awareness Even though our object representation involves masking out image patch features from other parts of the image, we have observed that the object vector still contains information about its surroundings. Figure 10 illustrates this phenomenon, where OLIVE can include the cow in its description, despite not including any image patches corresponding to the cow in the user selection.
|
| 344 |
+
|
| 345 |
+
Patch level Detail Our method also can identify and describe small objects at the patch level. Figure 11 shows an example of object classification on smaller objects.
|
| 346 |
+
|
| 347 |
+
Describing Partially Visible Objects We notice that our model can make mistakes when describing occluded or partially visible objects as seen in Figure 12. We hypothesize that the training data of refCOCOg does not include these kinds of image regions, which also limits its availability in retrieval data. This may be addressed with larger-scale pretraining on data such as GRIT which likely includes more occluded objects.
|
| 348 |
+
|
| 349 |
+
Errors in Detailed Description While our model can identify the object most of the time, it sometimes gets minor details incorrect. For example, the colors of a shirt or other piece of clothing are seen in Figure 12. This may be due to the extreme compression we learn into a single vector. Future work may consider visually resampling the object features into more than just 1 latent vector for detailed captioning, but still use the single vector representation for retrieval.
|
| 350 |
+
|
| 351 |
+
# C Dataset Information
|
| 352 |
+
|
| 353 |
+
Table 4 provides more details on the dataset splits used in our training and evaluation. Our COCO train and validation splits are slightly smaller than normal because of our approach of using segmentation masks. We decide to omit some excessively small segmentations which account for less than $1\%$ of the data. For tasks that require training (COCO and refCOCOg), we use the train split of the COCO object detection dataset as our retrieval data. We make sure to omit the closest match when training object detection on COCO with retrieval to avoid label leakage. We also confirm that no images are repeated in the validation split from the training split for both datasets.
|
| 354 |
+
|
| 355 |
+
# D Referring Object Classification
|
| 356 |
+
|
| 357 |
+
This task requires the LLM to predict the object class label given a ground truth input annotation (e.g. bounding box, segmentation, etc). We follow a similar evaluation protocol used in (Zhong et al., 2022) and (Zareian et al., 2021), in which the ground truth annotation is supplied to avoid localization error. Table 5 shows the overall referring object classification accuracy and $\mathrm{mAP}^3$ for our methods. We observe several findings. First, although retrieved examples help with domain adaptation and rare objects, it does not improve the overall in-domain performance. Second, both the LLama 2 and GPT2 baseline have similar performances on the task, suggesting that even smaller models can learn vision-language grounding. Lastly, even our retrieval-only baseline, which requires no training, has better accuracy than some parameterized methods such as CLIP.
|
| 358 |
+
|
| 359 |
+
# E Multi-Task Model
|
| 360 |
+
|
| 361 |
+
We also explore the possibility of training a multi-task model using a similar curriculum learning strategy to LLaVA (Liu et al., 2023). We first train the model on the referring object classification task to perform the object-word level alignment. The model is then trained on the referring expression generation task, and finally on an object instruction following dataset (Cai et al., 2023) with many different tasks. For each stage of training, we formulate the task in an instruction-following manner through the prompts in Table 3. This allows the
|
| 362 |
+
|
| 363 |
+
<table><tr><td>Task</td><td>ICL Prompt for Retrieved Examples</td><td>Vanilla Prompts</td></tr><tr><td rowspan="2">Object Classification</td><td>You are a helpful vision assistant trained to help people analyze images. The top [k] related objects are: [obj] is a [label] with confidence [score] [obj] is a [label] with confidence [score]</td><td rowspan="2">[obj] What is this? Answer in 1-2 words [obj] What is this object? Answer with a short word or phrase. [obj] Identify this object. Here is an object [obj]. What is this? Answer with a short word or phrase.</td></tr><tr><td>[vanilla prompt]</td></tr><tr><td rowspan="2">Region Description</td><td>You are a helpful vision assistant trained to help people analyze images. The top [k] related objects are: [obj] is a [label] with confidence [score] [obj] is a [label] with confidence [score]</td><td rowspan="2">[obj] Briefly describe this image region. [obj] Describe this part of the image. [obj] Share some details about about what's happening here in the image. [obj] Break down what you see in this particular part of the picture. [obj] Describe what you notice in this area of the picture.</td></tr><tr><td>[vanilla prompt]</td></tr></table>
|
| 364 |
+
|
| 365 |
+
Table 3: Collection of the prompts we use to guide the LLM decoder generation. For a given task, we sample one of the vanilla prompts uniformly at random. Text in brackets indicates variables whose value is dynamically filled in.
|
| 366 |
+
|
| 367 |
+

|
| 368 |
+
Figure 9: Examples of rapid adaptation to unseen visual concepts during training. Non-retrieval-based methods such as LLaVA often fail to generalize, instead predicting animals seen during pre-training.
|
| 369 |
+
|
| 370 |
+

|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 10: Example of scene content awareness of the object embeddings. Although neither selection includes any part of the cow, the model can still mention the cow in its description.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
|
| 377 |
+

|
| 378 |
+
Figure 11: Object classification on small objects.
|
| 379 |
+
|
| 380 |
+

|
| 381 |
+
Figure 12: Failure cases of our model. The model sometimes struggles with occluded/partially missing objects and may mix up some fine-grained details about objects.
|
| 382 |
+
|
| 383 |
+
<table><tr><td>Dataset</td><td>Train Split</td><td>Validation Split</td><td>Retrieval Set Train Split</td><td>Retrieval Set Test Split</td><td>Number of Classes</td></tr><tr><td>COCO</td><td>849586</td><td>36320</td><td>849586</td><td>849586</td><td>80</td></tr><tr><td>refCOCOg</td><td>44822</td><td>5000</td><td>849586</td><td>849586</td><td>-</td></tr><tr><td>CXR8</td><td>-</td><td>824</td><td>-</td><td>160</td><td>8</td></tr></table>
|
| 384 |
+
|
| 385 |
+
Table 4: More details about the datasets and splits we use in our experiments. For COCO and refCOCOg, we use the train split of the COCO dataset as the retrieval data. We select the first 20 examples of each pathology as the retrieval set for the zero shot evaluation on CXR8.
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
Figure 13: When trained on multiple tasks and object instruction following data, OLIVE is able to respond to varying user intents.
|
| 389 |
+
|
| 390 |
+
<table><tr><td>Method Type</td><td>Method</td><td>Accuracy</td><td>mAP</td></tr><tr><td rowspan="4">Classification</td><td>OLIVE-R</td><td>64.1</td><td>40.5</td></tr><tr><td>CLIP ViT-L/14</td><td>40.9</td><td>45.1</td></tr><tr><td>RegionCLIP RN50</td><td>-</td><td>61.4</td></tr><tr><td>OVR</td><td>-</td><td>44.5</td></tr><tr><td rowspan="4">Generative</td><td>OLIVE-G (GPT2)</td><td>76.6</td><td>60.4</td></tr><tr><td>OLIVE-G (Llama 2)</td><td>76.8</td><td>60.3</td></tr><tr><td>OLIVE-RG (GPT2)</td><td>74.8</td><td>57.5</td></tr><tr><td>OLIVE-RG (Llama 2)</td><td>74.1</td><td>56.2</td></tr></table>
|
| 391 |
+
|
| 392 |
+
model to be responsive to many different user intents (Figure 13)
|
| 393 |
+
|
| 394 |
+
# F Referring Expression Generation
|
| 395 |
+
|
| 396 |
+
Table 5: Performances on the referring object classification task with different levels of context on the COCO dataset. For each method type, the highest values for each metric are bolded.
|
| 397 |
+
|
| 398 |
+
<table><tr><td>Method</td><td>METEOR</td><td>CIDEr</td></tr><tr><td>OLIVE-G (Llama 2)</td><td>16.5</td><td>64.0</td></tr><tr><td>OLIVE-RG (Llama 2)</td><td>16.6</td><td>67.7</td></tr><tr><td>OLIVE-G (GPT2)</td><td>16.4</td><td>70.9</td></tr><tr><td>OLIVE-RG (GPT2)</td><td>17.0</td><td>75.0</td></tr><tr><td>SLR (Yu et al., 2017)</td><td>15.4</td><td>59.2</td></tr><tr><td>SLR+Rerank (Yu et al., 2017)</td><td>15.9</td><td>66.2</td></tr><tr><td>GLAMM (Rasheed et al., 2023)</td><td>16.2</td><td>105.0</td></tr><tr><td>GRIT (Wu et al., 2022)</td><td>15.2</td><td>71.6</td></tr><tr><td>Kosmos 2 (zero shot)</td><td>12.2</td><td>60.3</td></tr><tr><td>Kosmos 2 (fewshot k = 2)</td><td>13.8</td><td>62.2</td></tr><tr><td>Kosmos 2 (fewshot k = 4)</td><td>14.1</td><td>62.2</td></tr><tr><td>Flamingo-9B (zero shot)</td><td>9.2</td><td>34.3</td></tr><tr><td>Flamingo-9B (fewshot k = 2)</td><td>10.2</td><td>36.2</td></tr><tr><td>Flamingo-9B (fewshot k = 4)</td><td>12.3</td><td>39.6</td></tr></table>
|
| 399 |
+
|
| 400 |
+
We study our model's overall performance on referring expression generation by quantitatively evaluating our model on the RefCOCOg validation
|
| 401 |
+
|
| 402 |
+
set shown in Table 6. Several findings can be observed. First, including retrieved multimodal documents results in slightly better performance. Second, the size of the LLM can be modified without much performance change, with GPT2 performing slightly better than Llama 2. Third, having global image context contained in the object representation is important, as methods that crop the image region (e.g. Flamingo) perform worse.
|
| 403 |
+
|
| 404 |
+
# G Training Hyperparameters
|
| 405 |
+
|
| 406 |
+
We provide the detailed training hyperparameters in Table 7.
|
| 407 |
+
|
| 408 |
+
Table 6: Referring expression generation on the refCOCOg validation split. Our approach has competitive performance compared to other notable methods which also offer multimodal in-context prompting.
|
| 409 |
+
|
| 410 |
+
<table><tr><td>Hyperparameter</td><td>Classification</td><td>Generation</td></tr><tr><td>Epochs</td><td>1</td><td>5</td></tr><tr><td>Batch Size</td><td>4</td><td>4</td></tr><tr><td>Training Steps</td><td>~200,000</td><td>~56,030</td></tr><tr><td>Learning Rate</td><td>2e-5</td><td>2e-5</td></tr><tr><td>Optimizer</td><td>Adam</td><td>Adam</td></tr><tr><td>GPU Used</td><td>GTX 3090</td><td>GTX 3090</td></tr><tr><td>Train Time (hours)</td><td>24</td><td>7.5</td></tr></table>
|
| 411 |
+
|
| 412 |
+
Table 7: Details about the hyperparameters we use for (1) Referring Object Classification (Classification) and (2) Referring Expression Generation (Generation) in our experiments.
|
oliveobjectlevelincontextvisualembeddings/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a46d3e0a689021ff76fce82322280a294db1250c02be77e97ef37d20164e236
|
| 3 |
+
size 1340373
|
oliveobjectlevelincontextvisualembeddings/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08cd0a835a2b2347306a6a92fabfdd05afcf5f14cfde47aa53e27795a899464e
|
| 3 |
+
size 453457
|
olmoacceleratingthescienceoflanguagemodels/013319f4-8c66-46df-b7de-650f2534318b_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc67e1414e6f1c82f61e014670766cef5447c094cce4e5e665365703f2b053ec
|
| 3 |
+
size 137159
|
olmoacceleratingthescienceoflanguagemodels/013319f4-8c66-46df-b7de-650f2534318b_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:242839a3bbf2d1e453023a79b1cafa1f0d2f7e38a6f22a1c43fee53618d253a4
|
| 3 |
+
size 175944
|
olmoacceleratingthescienceoflanguagemodels/013319f4-8c66-46df-b7de-650f2534318b_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:681bef9e27f79502c37920cb3ec8f4da0b7ebd038d1baaf794bc4372882467ce
|
| 3 |
+
size 525699
|
olmoacceleratingthescienceoflanguagemodels/full.md
ADDED
|
@@ -0,0 +1,514 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 0 : Accelerating the Science of Language Models
|
| 2 |
+
|
| 3 |
+
Dirk Groeneveld $^{\alpha}$ Iz Beltagy $^{\alpha}$
|
| 4 |
+
|
| 5 |
+
Pete Walsh $^{\alpha}$ Akshita Bhagia $^{\alpha}$ Rodney Kinney $^{\alpha}$ Oyvind Tafjord $^{\alpha}$
|
| 6 |
+
|
| 7 |
+
Ananya Harsh Jha $^{\alpha}$ Hamish Ivison $^{\alpha\beta}$ Ian Magnusson $^{\alpha}$ Yizhong Wang $^{\alpha\beta}$
|
| 8 |
+
|
| 9 |
+
Shane Arora $^{\alpha}$ David Atkinson $^{\alpha}$ Russell Authur $^{\alpha}$ Khyathi Raghavi Chandu $^{\alpha}$
|
| 10 |
+
|
| 11 |
+
Arman Cohan $^{\gamma \alpha}$ Jennifer Dumas $^{\alpha}$ Yanai Elazar $^{\alpha \beta}$ Yuling Gu $^{\alpha}$
|
| 12 |
+
|
| 13 |
+
Jack Hessel $^{\alpha}$ Tushar Khot $^{\alpha}$ William Merrill $^{\delta}$ Jacob Morrison $^{\alpha}$
|
| 14 |
+
|
| 15 |
+
Niklas Muennighoff Aakanksha Naik $^{\alpha}$ Crystal Nam $^{\alpha}$ Matthew E. Peters $^{\alpha}$
|
| 16 |
+
|
| 17 |
+
Valentina Pyatkin $^{\alpha \beta}$ Abhilasha Ravichander $^{\alpha}$ Dustin Schwenk $^{\alpha}$ Saurabh Shah $^{\alpha}$
|
| 18 |
+
|
| 19 |
+
Will Smith $^{\alpha}$ Emma Strubell $^{\alpha \mu}$ Nishant Subramani $^{\alpha}$ Mitchell Wortsman $^{\beta}$
|
| 20 |
+
|
| 21 |
+
Pradeep Dasigi $^{\alpha}$ Nathan Lambert $^{\alpha}$ Kyle Richardson $^{\alpha}$
|
| 22 |
+
|
| 23 |
+
Luke Zettlemoyer $^{\beta}$ Jesse Dodge $^{\alpha}$ Kyle Lo $^{\alpha}$ Luca Soldaini $^{\alpha}$
|
| 24 |
+
|
| 25 |
+
Noah A. Smith $^{\alpha \beta}$ Hannaneh Hajishirzi $^{\alpha \beta}$
|
| 26 |
+
|
| 27 |
+
$^{\alpha}$ Allen Institute for Artificial Intelligence
|
| 28 |
+
|
| 29 |
+
$^{\beta}$ University of Washington $^{\gamma}$ Yale University
|
| 30 |
+
|
| 31 |
+
$^{\delta}$ New York University $\mu$ Carnegie Mellon University
|
| 32 |
+
|
| 33 |
+
olmo@allenai.org
|
| 34 |
+
|
| 35 |
+
# Abstract
|
| 36 |
+
|
| 37 |
+
Language models (LMs) have become ubiquitous in both NLP research and in commercial product offerings. As their commercial importance has surged, the most powerful models have become closed off, gated behind proprietary interfaces, with important details of their training data, architectures, and development undisclosed. Given the importance of these details in scientifically studying these models, including their biases and potential risks, we believe it is essential for the research community to have access to powerful, truly open LMs. To this end, we have built OLMo, a competitive, truly Open Language Model, to enable the scientific study of language models. Unlike most prior efforts that have only released model weights and inference code, we release OLMo alongside open training data and training and evaluation code. We hope this release will empower the open research community and inspire a new wave of innovation.
|
| 38 |
+
|
| 39 |
+
# 1 Introduction
|
| 40 |
+
|
| 41 |
+
Language models have been at the center of NLP technologies for many years (Rosenfeld, 2000; Ben
|
| 42 |
+
|
| 43 |
+
gio et al., 2003; Mikolov et al., 2013; Peters et al., 2018; Brown et al., 2020). Recently, due to large-scale pretraining and human annotation for alignment, they have become commercially valuable (OpenAI, 2023). However, as their commercial value has increased, the largest models have become gated behind proprietary interfaces, with important details left undisclosed.
|
| 44 |
+
|
| 45 |
+
We believe that full access to open language models for the research community is critical to the scientific study of these models, their strengths and weaknesses, and their biases and risks. Accordingly, we introduce OLMo, a powerful, truly open language model alongside open training data, training and evaluation code, intermediate model checkpoints, and training logs.
|
| 46 |
+
|
| 47 |
+
Recent LM releases have varied in their degree of openness. For example, Mixtral 8x7B provided model weights and a brief report (Jiang et al., 2024), while LLaMA came with in-depth adaptation training instructions (Touvron et al., 2023b), and Mosaic Pretrained Transformer came with many details, including the dataset distribution, though not the data itself (MosaicML NLP Team,
|
| 48 |
+
|
| 49 |
+
2023). Falcon's pretraining data was partially released (Almazrouei et al., 2023), and the most open models—the Pythia suite (Biderman et al., 2023) and BLOOM (BigScience et al., 2022)—released training code, model checkpoints, data, and more.
|
| 50 |
+
|
| 51 |
+
With OLMo, we release the whole framework from data to training to evaluation tools: multiple training checkpoints across multiple hardware types, training logs, and exact datasets used, with a permissive license. We are not the only team to do this; recent work from LLM360 targets similar goals (Liu et al., 2023). OLMo narrows the gap from their models to state-of-the-art capabilities of models like Llama 2. This project has benefited from lessons learned from all of these previous efforts with their varying degrees of openness, and we believe that a large, diverse population of open models is the best hope for scientific progress on understanding language models and engineering progress on improving their utility.
|
| 52 |
+
|
| 53 |
+
The OLMo framework encompasses the tools and resources required for building and researching language models. For training and modeling, it includes full model weights, training code, training logs, and inference code. The released model includes four variants of our language model at the 7B scale corresponding to different architectures, optimizers, and training hardware, and one model at the 1B scale, all trained on at least 2T tokens. We also release hundreds of intermediate checkpoints available as revisions on HuggingFace. For dataset building and analysis, the full training data used for these models is openly available (Dolma; Soldaini et al., 2024), including code that produces the training data, and tools for analyzing pretraining data (Elazar et al., 2024). For evaluation, we build on Catwalk (Groeneveld et al., 2023) for downstream evaluation and Paloma (Magnusson et al., 2023) for perplexity-based evaluation. For adaptation, we use Open Instruct (Ivison et al., 2023; Wang et al., 2023) to train with instruction and feedback data. Finally, all code and weights are released under the Apache 2.0 License.
|
| 54 |
+
|
| 55 |
+
With this release, we hope to catalyze research into as-yet poorly understood aspects of these models, for example, the relationship between pretraining data and model capabilities, the impact of design and hyperparameter choices, and various optimization methods and their impact on model training. In addition, we report on the lessons learned
|
| 56 |
+
|
| 57 |
+
and important details necessary to successfully train language models at this scale.
|
| 58 |
+
|
| 59 |
+
# 2 OLMo Framework
|
| 60 |
+
|
| 61 |
+
This section describes the OLMo framework, consisting of the OLMo models (Section 2.1), our pretraining dataset, Dolma (Section 2.2), and our evaluation framework (Section 2.4).
|
| 62 |
+
|
| 63 |
+
# 2.1 OLMo Model and Architecture
|
| 64 |
+
|
| 65 |
+
We adopt a decoder-only transformer architecture based on (Vaswani et al., 2017), and deliver 1B and 7B variants as described in Table 1. Our specific architecture includes several improvements over the vanilla transformer from (Vaswani et al., 2017) following other recent large language models like PaLM (Chowdhery et al., 2022), the LLaMA family (Touvron et al., 2023a,b), OpenLM (Gururangan et al., 2023), and Falcon (Almazrouei et al., 2023). See Table 5 in Appendix A for a comprehensive comparison of our 7B architecture to the similarly-sized models from these other families.
|
| 66 |
+
|
| 67 |
+
We generally select hyperparameters by optimizing for training throughput on our hardware while minimizing the risk of loss spikes and slow divergence. We ablate choices through our in-loop evaluation setting, given available computational sources (Section 2.4). Our main changes over the vanilla transformer architecture can be summarized as follows:
|
| 68 |
+
|
| 69 |
+
1. No biases. Following LLaMA, PaLM, and others, we exclude all bias terms from our architecture in order to improve training stability.
|
| 70 |
+
2. Non-parametric layer norm. We use the non-parametric formulation of layer norm (Ba et al., 2016) in which there is no affine transformation within the norm, i.e., no "adaptive gain" (or bias). We believe this was the safest option and it was also the fastest compared to the other variants we considered: parametric layer norm and RMSNorm (Zhang and Senrich, 2019).
|
| 71 |
+
3. SwiGLU activation function. Like LLaMA, PaLM, and others we use the SwiGLU activation function (Shazeer, 2020) instead of ReLU, and following LLaMA the activation hidden size is approximately $\frac{8}{3}d$ , but increased to the closest multiple of 128 (e.g. 11,008 for our 7B model) to improve throughput. $^2$
|
| 72 |
+
|
| 73 |
+
<table><tr><td>Size</td><td>L</td><td>D</td><td>H</td><td>Tokens</td><td>Peak LR</td><td>Warmup</td><td>Weight Tying</td><td>Batch size</td></tr><tr><td>1B</td><td>16</td><td>2048</td><td>16</td><td>2T</td><td>4.0E-4</td><td>2000 steps</td><td>yes</td><td>~4M</td></tr><tr><td>7B</td><td>32</td><td>4086</td><td>32</td><td>2.46T</td><td>3.0E-4</td><td>5000 steps</td><td>no</td><td>~4M</td></tr></table>
|
| 74 |
+
|
| 75 |
+
4. Rotary positional embeddings (RoPE). Like LLaMA, PaLM, and others we replace absolute positional embeddings with rotary positional embeddings (RoPE; Su et al., 2021).
|
| 76 |
+
5. Vocabulary. We use a modified version of the BPE-based tokenizer from GPT-NeoX-20B (Black et al., 2022) with additional tokens for masking personal identifiable information (PII). The final vocabulary size is 50,280. However, to maximize training throughput we increase the size of the corresponding embedding matrix in our model to 50,304 to be a multiple of 128.
|
| 77 |
+
|
| 78 |
+
# 2.2 Pretraining Data: Dolma
|
| 79 |
+
|
| 80 |
+
Despite progress in access to model parameters, pretraining datasets are still not as open. Pretraining data are often not released alongside open models (let alone closed models) and documentation about such data is often lacking in detail that would be needed to reproduce or fully understand the work. This has made it difficult to support certain threads of language model research, such as understanding how training data impacts model capabilities and limitations. To facilitate open research on language model pretraining, we built and released our pretraining dataset, Dolma—a diverse, multisource corpus containing trillions of tokens across billions of documents acquired from different data sources that are (1) commonly seen in large-scale language model pretraining and (2) accessible to the general public (Soldaini et al., 2024). Table 2 provides a high-level overview of the amount of data from each source.
|
| 81 |
+
|
| 82 |
+
Dolma is built using a pipeline of (1) language filtering, (2) quality filtering, (3) content filtering, (4) dedduplication, (5) multi-source mixing, and (6) tokenization. We refer the reader to the Dolma report (Soldaini et al., 2024) for more details about its design principles, details about its construction, and a more detailed summary of its contents. The
|
| 83 |
+
|
| 84 |
+
is half the size of the input. So technically our inputs to SwiGLU have a dimensionality of $2 \times 11,008 = 22,016$ for our 7B model.
|
| 85 |
+
|
| 86 |
+
Table 1: OLMo model sizes, number of training tokens, and optimizer settings. In all runs, the optimizer was AdamW, with betas of 0.9 and 0.95, and an epsilon of 1.0E-5. L is number of layers, D is hidden dimension, H is number of attention heads, WD is weight decay.
|
| 87 |
+
|
| 88 |
+
<table><tr><td>Source</td><td>Type</td><td>UTF-8 bytes (GB)</td><td>Docs (millions)</td><td>Tokens (billions)</td></tr><tr><td>Common crawl</td><td>web pages</td><td>9,812</td><td>3,734</td><td>2,180</td></tr><tr><td>GitHub</td><td>code</td><td>1,043</td><td>210</td><td>342</td></tr><tr><td>Reddit</td><td>social media</td><td>339</td><td>377</td><td>80</td></tr><tr><td>Semantic Scholar</td><td>papers</td><td>268</td><td>38.8</td><td>57</td></tr><tr><td>Project Gutenberg</td><td>books</td><td>20.4</td><td>0.056</td><td>5.2</td></tr><tr><td>Wikipedia</td><td>encyclopedia</td><td>16.2</td><td>6.2</td><td>3.7</td></tr><tr><td colspan="2">Total</td><td>11,519</td><td>4,367</td><td>2,668</td></tr></table>
|
| 89 |
+
|
| 90 |
+
Table 2: Composition of Dolma. Tokens counts are based on the GPT-NeoX tokenizer.
|
| 91 |
+
|
| 92 |
+
report provides additional analyses and experimental results from training language models on intermediate states of Dolma to share what we learned about important data curation practices, including the role of content or quality filters, dedduplication, and mixing data from multiple sources. We keep documents from each source separate, both during curation as well as in the final release. We open-sourced our high-performance data curation tools; this toolkit can be used to further experiment on Dolma, reproduce our work, and enable fast and easy curation of pretraining corpora. Finally, we also open-sourced our WIMBD tool (Elazar et al., 2024) to help with dataset analysis.
|
| 93 |
+
|
| 94 |
+
# 2.3 Adaptation
|
| 95 |
+
|
| 96 |
+
Pretrained models are not always used as-is, but rather further finetuned to improve their performance, safety, and usability. Often models are first trained to follow instructions (Mishra et al., 2022; Wei et al., 2022; Sanh et al., 2022), and then further trained on human preferences (Ouyang et al., 2022) to improve the quality of their generations. We showcase the efficacy of using OLMo as a base model for further fine-tuning by training OLMo to be a general chat assistant following the TULU data and training setup (Ivison et al., 2023). This involves first performing instruction finetuning with a mixture of distilled and human-written instruction data and then further aligning the model with
|
| 97 |
+
|
| 98 |
+
distilled preference data using Direct Preference Optimization (DPO) (Rafailov et al., 2023).
|
| 99 |
+
|
| 100 |
+
# 2.4 Evaluation
|
| 101 |
+
|
| 102 |
+
We perform base model evaluation at two stages: online evaluation to make decisions for model design and offline evaluation to evaluate model checkpoints. For the offline stage, we use the Catwalk framework (Groeneveld et al., 2023), a publicly available evaluation tool with access to a wide range of datasets and task formats, to perform downstream evaluation as well as intrinsic language modeling evaluation on the perplexity benchmark Paloma (Magnusson et al., 2023).
|
| 103 |
+
|
| 104 |
+
For both downstream and perplexity evaluation, we use our fixed evaluation pipeline to compare results against publicly available models. We also report a separate evaluation of our adapted model.
|
| 105 |
+
|
| 106 |
+
In-Loop Training Ablations Throughout model training, we perform downstream evaluations to make decisions around model architecture, initialization, optimizers, learning rate schedule, and data mixtures. We call this our online evaluation as it runs in-loop every 1000 training steps (or $\sim 4\mathrm{B}$ training tokens) and provides an early and continuous signal on the quality of the model being trained. These evaluations rely on many of the core tasks and experiment settings used for our offline evaluation detailed in Section 4.1, which also mirrors the task and evaluation structure of the EleutherAI eval harness (Gao et al., 2023).
|
| 107 |
+
|
| 108 |
+
Downstream Evaluation Following much previous work (Brown et al., 2020; Black et al., 2022; Touvron et al., 2023a,b, inter alia), we report zero-shot performance on a set of downstream tasks. Our evaluation suite consists of 8 core tasks corresponding closely to the commonsense reasoning task set reported by Touvron et al. (2023a) and Touvron et al. (2023b) (see Table 3 for a list of tasks). Given the scale of the models being evaluated, such tasks were selected at the beginning of model development due to their naturalness (e.g., all can formulated as text completion scoring tasks) and ability to provide meaningful signals throughout training (see Figure 1).
|
| 109 |
+
|
| 110 |
+
Intrinsic Language Modeling Evaluation To measure how OLMo fits distributions of language beyond held-out training data, we use Paloma (Magnusson et al., 2023), a new perplexity benchmark that includes 585 different domains of text.
|
| 111 |
+
|
| 112 |
+
Domains range from nytimes.com to r/depression on Reddit and are drawn from 18 separate data sources, such as C4 (Raffel et al., 2020), in stratified samples. This allows for more equal inclusion of text domains that are under-represented in their source corpora.
|
| 113 |
+
|
| 114 |
+
We aim not just to compare OLMo against other models for best performance, but also to demonstrate how it enables fuller and more controlled scientific evaluations. OLMo-7B is the largest LM with explicit decontamination for perplexity evaluation. Following the approach described in Paloma, we remove any pretraining document with paragraphs leaked from Paloma evaluation data. Without decontamination, other models risk underestimating perplexity (i.e., overestimating the model's out-of-sample fit). We also release intermediate checkpoints, allowing richer comparisons with two other models that release checkpoints, Pythia-6.9B (Biderman et al., 2023) and RPJ-INCITE-7B (Together Computer, 2023) (see Figure 2).
|
| 115 |
+
|
| 116 |
+
Adaptation Evaluation We also evaluate OLMo after instruction fine-tuning and DPO training using the TÜLU evaluation suite proposed in Wang et al. (2023); Ivison et al. (2023). We focus on evaluations around model chat capabilities and safety in order to showcase the efficacy of using OLMo as a base for further fine-tuning.
|
| 117 |
+
|
| 118 |
+
# 3 Training OLMo
|
| 119 |
+
|
| 120 |
+
This section describes our pretraining setup, including our distributed training framework (Section 3.1), optimizer (Section 3.2), data preparation (Section 3.3), and hardware (Section 3.4).
|
| 121 |
+
|
| 122 |
+
# 3.1 Distributed Training Framework
|
| 123 |
+
|
| 124 |
+
We train our models using the ZeRO optimizer strategy (Rajbhandari et al., 2019) via PyTorch's FSDP framework (Zhao et al., 2023), which reduces memory consumption by sharding the model weights and their corresponding optimizer state across GPUs. At the 7B scale, this enables training with a micro-batch size of 4096 tokens per GPU on our hardware (see Section 3.4). For OLMo-1B and -7B models, we use a constant global batch size of approximately 4M tokens (2048 instances, each with a sequence length of 2048 tokens).
|
| 125 |
+
|
| 126 |
+
To improve throughput, we employ mixed-precision training (Micikevicius et al., 2017) through FSDP's built-in settings and PyTorch's amp module. The latter ensures that certain operations
|
| 127 |
+
|
| 128 |
+
like the softmax always run in full precision to improve stability, while all other operations run in half-precision with the bffloat16 format. Under our specific settings, the sharded model weights and optimizer state local to each GPU are kept in full precision. The weights within each transformer block are only cast to bffloat16 when the full-sized parameters are materialized on each GPU during the forward and backward passes. Gradients are reduced across GPUs in full precision.
|
| 129 |
+
|
| 130 |
+
# 3.2 Optimizer
|
| 131 |
+
|
| 132 |
+
We use the AdamW optimizer (Loshchilov and Hutter, 2019) with the hyperparameters shown in Table 1. For all model sizes, we warm up the learning rate over 5000 steps (~21B tokens) and then decay it linearly from there down to a tenth of the peak learning rate over the remainder of training. After the warm-up period, we clip gradients such that the total $l^2$ -norm of the parameter gradients<sup>3</sup> does not exceed 1.0. Table 5 gives a comparison of our optimizer settings at the 7B scale to those of other recent LMs that also used AdamW.
|
| 133 |
+
|
| 134 |
+
# 3.3 Data
|
| 135 |
+
|
| 136 |
+
We built our training dataset out of a 2T-token sample from our open dataset, Dolma (Soldaini et al., 2024), which we describe in Section 2.2. The tokens from every document are concatenated together after appending a special EOS token to the end of each document, and then we group consecutive chunks of 2048 tokens to form training instances. The training instances are shuffled in the exact same way for each training run. The data order and exact composition of each training batch can be reconstructed from the artifacts we release.
|
| 137 |
+
|
| 138 |
+
All of our released models have been trained to at least 2T tokens (a single epoch over our training data), and some have been trained beyond that by starting a second epoch over the data with a different shuffling order. The impact of repeating this small amount of data should be negligible according to prior work (Muennighoff et al., 2023).
|
| 139 |
+
|
| 140 |
+
# 3.4 Hardware
|
| 141 |
+
|
| 142 |
+
In order to verify that our codebase could be used on both NVIDIA and AMD GPUs without any loss
|
| 143 |
+
|
| 144 |
+
in performance, we trained models on two different clusters:
|
| 145 |
+
|
| 146 |
+
- LUMI: Provided by the LUMI supercomputer, we used up to 256 nodes on this cluster, where each node consists of $4 \times$ AMD MI250X GPUs with 128GB of memory and 800Gbps of interconnect.
|
| 147 |
+
- MosaicML: Provided by MosaicML (Databricks), we used 27 nodes on this cluster, where each node consists of 8x NVIDIA A100 GPUs with 40GB of memory and 800Gbps interconnect.
|
| 148 |
+
|
| 149 |
+
Despite minor differences in batch size to optimize for training throughput, both runs resulted in nearly identical performance on our evaluation suite by 2T tokens.
|
| 150 |
+
|
| 151 |
+
# 4 Results
|
| 152 |
+
|
| 153 |
+
The checkpoint used for evaluating OLMo-7B is trained until 2.46T tokens on the Dolma (Soldaini et al., 2024) dataset with a linear learning rate decay schedule mentioned in Section 3.2. In our experiments, we find that tuning this checkpoint further on the Dolma dataset for 1000 steps with the learning rate linearly decayed to 0 boosts model performance on perplexity and end-task evaluation suites described in Section 2.4. We compare OLMo with other publicly available models including LLaMA7B (Touvron et al., 2023a), Llama-2-7B (Touvron et al., 2023b), MPT-7B (MosaicML NLP Team, 2023), Pythia-6.9B (Biderman et al., 2023), Falcon7B (Almazrouei et al., 2023) and RPJ-INCITE-7B (Together Computer, 2023).
|
| 154 |
+
|
| 155 |
+
# 4.1 Downstream evaluation
|
| 156 |
+
|
| 157 |
+
Setup Our core downstream evaluation suite (see Table 3) consists of: arc (both arc_easy and arc_challenge) (Clark et al., 2018), boolq (Clark et al., 2019), openbookqa (Mihaylov et al., 2018), sciq (Welbl et al., 2017), hellaswag (Zellers et al., 2019), piqa (Bisk et al., 2020), and winogrande (Sakaguchi et al., 2021). In Appendix C, we also report results on an additional set of auxiliary tasks outside of our core evaluation set that we found to have less stable performance trends (see Figure 4).
|
| 158 |
+
|
| 159 |
+
<table><tr><td>Models</td><td>arc challenge</td><td>arc easy</td><td>boolq</td><td>hella-swag</td><td>open bookqa</td><td>piqa</td><td>sciq</td><td>wino-grande</td><td>avg.</td></tr><tr><td>StableLM 1.6B</td><td>43.8</td><td>63.7</td><td>76.6</td><td>68.2</td><td>45.8</td><td>74.0</td><td>94.7</td><td>64.9</td><td>66.5</td></tr><tr><td>Pythia 1B</td><td>33.1</td><td>50.2</td><td>61.8</td><td>44.7</td><td>37.8</td><td>69.1</td><td>86.0</td><td>53.3</td><td>54.5</td></tr><tr><td>TinyLlama 1.1B</td><td>34.8</td><td>53.2</td><td>64.6</td><td>58.7</td><td>43.6</td><td>71.1</td><td>90.5</td><td>58.9</td><td>59.4</td></tr><tr><td>OLMo-1B</td><td>34.5</td><td>58.1</td><td>60.7</td><td>62.5</td><td>46.4</td><td>73.7</td><td>88.1</td><td>58.9</td><td>60.4</td></tr><tr><td>Falcon-7B</td><td>47.5</td><td>70.4</td><td>74.6</td><td>75.9</td><td>53.0</td><td>78.5</td><td>93.9</td><td>68.9</td><td>70.3</td></tr><tr><td>LLaMA 7B</td><td>44.5</td><td>67.9</td><td>75.4</td><td>76.2</td><td>51.2</td><td>77.2</td><td>93.9</td><td>70.5</td><td>69.6</td></tr><tr><td>Llama 2 7B</td><td>48.5</td><td>69.5</td><td>80.2</td><td>76.8</td><td>48.4</td><td>76.7</td><td>94.5</td><td>69.4</td><td>70.5</td></tr><tr><td>MPT-7B</td><td>46.5</td><td>70.5</td><td>74.2</td><td>77.6</td><td>48.6</td><td>77.3</td><td>93.7</td><td>69.9</td><td>69.8</td></tr><tr><td>Pythia 6.9B</td><td>44.1</td><td>61.9</td><td>61.1</td><td>63.8</td><td>45.0</td><td>75.1</td><td>91.1</td><td>62.0</td><td>63.0</td></tr><tr><td>RPJ-INCITE-7B</td><td>42.8</td><td>68.4</td><td>68.6</td><td>70.3</td><td>49.4</td><td>76.0</td><td>92.9</td><td>64.7</td><td>66.6</td></tr><tr><td>OLMo-7B</td><td>48.5</td><td>65.4</td><td>73.4</td><td>76.4</td><td>50.4</td><td>78.4</td><td>93.8</td><td>67.9</td><td>69.3</td></tr></table>
|
| 160 |
+
|
| 161 |
+
Table 3: Zero-shot evaluation of OLMo-1B and OLMo-7B, with other publicly available comparable model checkpoints on 8 core tasks from the downstream evaluation suite described in Section 2.4. For OLMo-7B, we report results for the 2.46T token checkpoint.
|
| 162 |
+
|
| 163 |
+
In all cases, we perform zero-shot evaluation using the rank classification approach popularized by Brown et al. (2020). Under this approach, candidate text completions (e.g., different multiple-choice options) are ranked by likelihood (usually normalized by some normalization factor), and prediction accuracy is reported. While Catwalk implements several common likelihood normalization strategies, including normalizing by number of tokens (per-token normalization; Brown et al., 2020; Liang et al., 2022), by number of characters (per-character normalization; Gao et al., 2023), as well as incorporating an answer's unconditional likelihood (Brown et al., 2020), we selected the normalization strategies for each dataset separately. Specifically, we used unconditional normalization for arc and openbookqa, per-token normalization for hellaswag, piqa, and winogrande and no normalization for boolq, and sciq (i.e., tasks formulated as single token prediction tasks).
|
| 164 |
+
|
| 165 |
+
Results Table 3 summarizes the result of zero-shot evaluation of OLMo and compares against other publicly available models of comparable size. We report results on 8 core tasks from our evaluation suite described in Section 2.4. On aggregate, OLMo-7B is competitive against all the comparable models. We include the comparison to StableLM 1.6B, but note that it is significantly larger, and was trained on unknown data.
|
| 166 |
+
|
| 167 |
+
In Figure 1 we plot the accuracy score progression of 8 core end-tasks. All tasks, except OBQA, show an upward trend in accuracy numbers as
|
| 168 |
+
|
| 169 |
+
OLMo-7B is trained on more tokens. A sharp upward tick in accuracy of many tasks between the last and the second to last step shows us the benefit of linearly reducing the LR to 0 over the final 1000 training steps. See Table 7 in Appendix C for additional evaluation results and discussion.
|
| 170 |
+
|
| 171 |
+
# 4.2 Intrinsic language modeling evaluation
|
| 172 |
+
|
| 173 |
+
Setup For intrinsic evaluations, Paloma proposes a range of analyses, from inspection of performance in each domain separately to more summarized results over combinations of domains. We report results at two levels of granularity: the aggregate performance over 11 of the 18 sources in Paloma as in (Magnusson et al., 2023), as well as more fine-grained results over each of these sources individually. This particular subset of 11 sources from Paloma excludes sources that are not publicly available, involve fringe or toxic text, or consist of code data not supported by Paloma's decontamination approach. This leaves C4 (Raffel et al., 2020), mC4-en (Chung et al., 2023), Wikitext 103 (Merit et al., 2016), Penn Treebank (Marcus et al., 1999; Nunes, 2020), RedPajama (Together Computer, 2023), Falcon-RefinedWeb (Penedo et al., 2023), Dolma (Soldaini et al., 2024), M2D2 S2ORC (Reid et al., 2022), M2D2 Wikipedia (Reid et al., 2022), C4 100 domains (Chronopoulou et al., 2022), and Dolma 100 Subreddits (Soldaini et al., 2024). To allow for a fair comparison between models with different vocabularies, we report bits per byte as defined by Gao et al. (2020) over the test sets of these sources.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
Figure 1: Accuracy score progression of OLMo-7B on 8 core end-tasks score from Catwalk evaluation suite described in Section 2.4. We can see the benefit of decaying LR to 0 in the final 1000 steps of training on most tasks.
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Tokens Seen (billions)
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
|
| 193 |
+
Results In the Sources Combined subplot of Figure 2, we show the performance of OLMo-7B against 6 comparably-sized language models on the combination of 11 data sources from Paloma. Overall we find OLMo to have a competitive fit, especially given its training data was explicitly decontaminated against Paloma. As seen through the comparison of final models (see shapes) as well intermediate checkpoints (see dashed lines), the OLMo results follow similar scaling trends of other models. Note that the performance of intermediate checkpoints is influenced by where that checkpoint occurs in the learning rate schedule. So models trained for fewer steps will tend to have steeper training curves without necessarily being more sample efficient if training duration were fixed across all models. MPT-7B, nevertheless, stands out as improving ahead of the other models in this subplot. This could be due to a number of factors, including pretraining data composition and its match to the domains in Paloma (e.g., MPT trains on $27\%$ non-Common Crawl data rather than $18\%$ for LLaMA, $12.2\%$ for RedPajama, and $11.2\%$ for OLMo) as well as various data preprocessing decisions (e.g., MPT's use of semantic dedduplication by Abbas et al., 2023, on C4).
|
| 194 |
+
|
| 195 |
+
The remaining subplots in Figure 2 provide more fine-grained analysis by reporting bits per byte separately for each of the 11 data sources that are combined in the aggregated Paloma metric. From this we see greater variation in sample efficiency,
|
| 196 |
+
|
| 197 |
+
largely driven by the similarity of training and evaluation distributions. Notably, OLMo-7B fares well on evaluations predominated by Common Crawl, such as C4, though different ways of postprocessing Common Crawl are best fit by models trained with that specific data, such as Falcon-7B on Falcon RefinedWeb. Meanwhile, OLMo-7B is less sample efficient compared to other models on sources less related to scraped web text, such as WikiText-103, M2D2 S2ORC, and M2D2 Wikipedia. The RedPajama evaluation shows a similar pattern, perhaps as only 2 of its 7 domains are from Common Crawl, and Paloma weights domains within each source equally. Since heterogeneous data from curated sources like Wikipedia and ArXiv papers is scarcer than scraped web text, maintaining sample efficiency for fit to these distributions of language will be challenging as pretraining corpora are scaled.
|
| 198 |
+
|
| 199 |
+
# 4.3 Adaptation Evaluation
|
| 200 |
+
|
| 201 |
+
Setup We evaluate OLMo-7B before adaptation, and after both the supervised fine-tuning and DPO training stage, focusing on the safety and chat evaluations used by Wang et al. (2023). We additionally compare to officially released instruction-tuned variants of the models from Table 3. We finally also compare to TULU 2 models to compare against models trained using the same post-training data mixes and procedures.
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
Figure 2: Bits per byte on 11 evaluation data sources from Paloma and their combination (Magnusson et al., 2023), decontaminated from OLMo's pretraining data. While models follow a general data scaling trend, sample efficiency is most favorable on in-distribution data. For example, OLMo-7B overtakes all other models on C4, perhaps from having $88.8\%$ Common Crawl pretraining data.
|
| 205 |
+
|
| 206 |
+
<table><tr><td>Model</td><td>MMLU 0-shot ↑</td><td>AlpacaEval %win ↑</td><td>ToxiGen % Toxic ↓</td><td>TruthfulQA %Info+True ↑</td></tr><tr><td>OLMo (base)</td><td>28.3</td><td>-</td><td>81.4</td><td>31.6</td></tr><tr><td>MPT Chat</td><td>33.8</td><td>46.8</td><td>0.1</td><td>42.7</td></tr><tr><td>Falcon Instruct</td><td>25.2</td><td>14.0</td><td>70.7</td><td>27.2</td></tr><tr><td>RPJ-INCITE Chat</td><td>27.0</td><td>38.0</td><td>46.4</td><td>53.0</td></tr><tr><td>Llama-2-Chat</td><td>46.8</td><td>87.3</td><td>0.0</td><td>26.3</td></tr><tr><td>TÜLU 2</td><td>50.4</td><td>73.9</td><td>7.0</td><td>51.7</td></tr><tr><td>TÜLU 2+DPO</td><td>50.7</td><td>85.1</td><td>0.5</td><td>-7</td></tr><tr><td>OLMo+SFT</td><td>47.3</td><td>57.0</td><td>14.4</td><td>41.2</td></tr><tr><td>OLMo+SFT+DPO</td><td>46.2</td><td>69.3</td><td>1.7</td><td>52.0</td></tr></table>
|
| 207 |
+
|
| 208 |
+
Table 4: Evaluation of various instruction-tuned 7B models, including OLMo-7B and before and after adaptation training. Lower is better for ToxiGen and higher is better for other metrics. We provide a detailed description of models and metrics in Appendix. E.
|
| 209 |
+
|
| 210 |
+
Results We find that instruction tuning considerably improves the performance and safety of OLMo-7B, increasing MMLU performance by a wide margin and improving ToxiGen and TruthfulQA scores - especially after DPO training. Additionally, we find that OLMo-7B outperforms most other chat variants after both initial instruction tuning (OLMo+SFT) and additional preference alignment (OLMo+SFT+DPO), highlighting both the strength of OLMo-7B as a base model and the
|
| 211 |
+
|
| 212 |
+
strength of the TÜLU mix used to perform adaptation training. However, we find there is still a gap with TÜLU 2, which is trained by applying the TÜLU mix on Llama 2. This gap may be due to test set contamination in Llama $2^{8}$ and because the TÜLU mix was primarily designed for Llama models. Overall, we see that OLMo-7B greatly benefits from additional tuning and serves as a strong base model for downstream applications.
|
| 213 |
+
|
| 214 |
+
# 5 Artifacts Released
|
| 215 |
+
|
| 216 |
+
By sharing artifacts from all pipeline stages, we aim to encourage open research and reduce duplicated, often costly efforts, by academics and practitioners. We release the following:
|
| 217 |
+
|
| 218 |
+
# - Pretraining (§2.1)
|
| 219 |
+
|
| 220 |
+
1. The training and modeling code.
|
| 221 |
+
2. The trained model weights for the 7B model, 7B-twin-2T, and the 1B model. For all the models, we release not only the final model weights but also $500+$ intermediate checkpoints at intervals of 1000 steps.
|
| 222 |
+
|
| 223 |
+
3. The complete set of metrics logged to Weights & Biases during training.
|
| 224 |
+
|
| 225 |
+
# Data (§2.2)
|
| 226 |
+
|
| 227 |
+
1. Our full pretraining corpus Dolma (Soldaini et al., 2024).
|
| 228 |
+
2. Tools to support reproduction of full training data order as well as inspection of which training data was seen at each step during training.
|
| 229 |
+
3. Tools for recreating our training data (Soldaini et al., 2024) and performing dataset analysis (Elazar et al., 2024).
|
| 230 |
+
|
| 231 |
+
# Adaptation (§2.3)
|
| 232 |
+
|
| 233 |
+
1. The training code and data for adaptation.
|
| 234 |
+
2. The model weights for OLMo+SFT and OLMo+SFT+DPO.
|
| 235 |
+
|
| 236 |
+
# - Evaluation (§2.4)
|
| 237 |
+
|
| 238 |
+
1. The code and data in our evaluation framework Catwalk (Groeneveld et al., 2023) for offline evaluation on both downstream tasks and intrinsic language modeling (Magnusson et al., 2023).
|
| 239 |
+
2. The evaluation suite (Wang et al., 2023; Ivison et al., 2023) for adapted models.
|
| 240 |
+
|
| 241 |
+
# 6 Conclusion and Future Work
|
| 242 |
+
|
| 243 |
+
This paper presents our first release of OLMo, a state-of-the-art, truly open language model and its framework to build and study the science of language modeling. Unlike most prior efforts that have only released model weights and inference code, we release OLMo and the whole framework, including training data, training and evaluation code, and detailed metrics collected during the training runs. Additionally, we released adapted models, as well as all of our model adaptation code and data.
|
| 244 |
+
|
| 245 |
+
We intend to continuously support and extend OLMo and its framework, and continue to push the boundaries of open LMs to empower the open research community. Since the original release of OLMo described here, we improved our data and training setup to significantly improve results. For example, MMLU scores have improved by 24 points to $52\%$ . We look forward to bringing different model sizes, modalities, datasets, safety measures, and evaluations into the OLMo family. We hope this and future releases will empower and strengthen the open research community and inspire a new wave of innovation.
|
| 246 |
+
|
| 247 |
+
# Limitations
|
| 248 |
+
|
| 249 |
+
We recognize building a large language model has many limitations. In fact, each step of the process of creating a language model, from the data to training to adaptation to evaluation each have their own limitations, and so we've added sections for each below. Of course we recognize that AI systems today can have broad societal reach, and therefore there are significant limitations beyond what we are able to fit into this section.
|
| 250 |
+
|
| 251 |
+
Data Our work focuses on pretraining data in English. We hope that our open framework enables the development of future models in more languages as well as multilingual models. The data that models are trained on is what gives models their capabilities, and at the scale of training a large language model we recognize that the data likely contains problematic content like toxic language, personal information, and copyrighted text. We mitigated this to the best of our ability but recognize there are no perfect approaches today that can completely remove such content.
|
| 252 |
+
|
| 253 |
+
Training Training a large language model is currently a challenging endeavor which is missing significant support from the open source community. With our limited page count we did not provide extensive training logs documenting, for example, training runs that diverged or failed to learn.
|
| 254 |
+
|
| 255 |
+
Adaptation Our pretrained models face the same issues as existing pretrained LLMs, such as bias, toxicity and, hallucinations. Our adapted models are better at avoiding these generations, but they are not perfect. Additionally, we note that we largely adopt an existing data mixture designed for a different model family (TÜLU, designed for Llama models), and OLMo may require different data mixing to adjust for its unique strengths and weaknesses. TheTÜLU mix itself also relies on data distilled from a variety of models, and we hope to reduce our reliance on such data in the future.
|
| 256 |
+
|
| 257 |
+
Evaluation While we've included comparisons on a variety of datasets to other current language models, many of the downstream tasks are not actually representative of how users interact with language models (i.e., as a chatbot). In addition, language model evaluations are currently very noisy; we aimed to include only evaluations on datasets that provided some signal as to which model performs best, but recognize that there is no perfect
|
| 258 |
+
|
| 259 |
+
automatic evaluation, and thus comparisons should be taken with a grain of salt.
|
| 260 |
+
|
| 261 |
+
# Ethics Statement
|
| 262 |
+
|
| 263 |
+
Through this work, we take the position that increased openness of language models is essential for scientific understanding of their abilities and limitations and for broad participation in the continued development of such models. Training on open data further enhances these benefits. In addition, our open release enables practitioners to take our models and build on them instead of having to train their own from scratch, in which case they would be repeating our work while consuming more resources and leading to an increased environmental impact. Of course, openness is not without risk; the possibility remains that these models will be used in unintended ways that cause harm. We believe that research and development efforts to understand and mitigate those potential harms will also be accelerated by the openness of the models, allowing a diversity of approaches and analyses. Over the past year there have been a number of comparable models released with very permissive licenses, so using a more strict license for our work would not remove the overall risk in the field. We believe this trade-off on the side of being more open is the best option.
|
| 264 |
+
|
| 265 |
+
# Acknowledgments
|
| 266 |
+
|
| 267 |
+
OLMo would not have been possible without the support of many individuals and institutions. The experimental components of this work were made possible through a partnership with AMD and CSC, enabling use of the LUMI supercomputer, and Kempner Institute at Harvard University. We thank Jonathan Frankle and the team at MosaicML (now Databricks) for sharing their experiences with FSDP, and building the code base that OLMo is based on. We thank our teammates Taira Anderson, Michelle Benedict, Jon Borchardt, Evie Cheng, Arnavi Chheda, Johann Dahm, Matt Latzke, Kelsey MacMillan, Aaron Sarnat, Carissa Schoenick, Sam Skjonsberg, Michael Schmitz, Michael Wilson, Caitlin Wittlif, and the entire IT team, for their help with the website, design, internal and external communications, budgeting, and other activities that supported smooth progress on this project. Finally, we also express gratitude for the helpful discussions and feedback from our teammates at AI2 and close collaborators, including Prithviraj (Raj)
|
| 268 |
+
|
| 269 |
+
Ammanabrolu, Peter Clark, Nicole DeCario, Doug Downey, Ali Farhadi, Ian Ferreira, Vainö Hatanpää, Sham M. Kakade, Julien Launay, Sydney Levine, Pekka Manninen, Franzi Roessner, Maarten Sap, Ludwig Schmidt, Yulia Tsvetkov, and Daniel S. Weld.
|
| 270 |
+
|
| 271 |
+
# References
|
| 272 |
+
|
| 273 |
+
Amro Abbas, Kushal Tirumala, Daniel Simig, Surya Ganguli, and Ari S Morcos. 2023. Semdedup: Data-efficient learning at web-scale through semantic dedduplication. arXiv preprint arXiv:2303.09540.
|
| 274 |
+
Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra-Aimée Cojocaru, Daniel Hesslow, Julien Launay, Quentin Malartic, Daniele Mazzotta, Badreddine Noune, Baptiste Pannier, and Guilherme Penedo. 2023. The falcon series of open language models. ArXiv, abs/2311.16867.
|
| 275 |
+
Yuvanesh Anand, Zach Nussbaum, Brandon Duderstadt, Benjamin Schmidt, and Andriy Mulyar. 2023. Gpt4all: Training an assistant-style chatbot with large scale data distillation from gpt-3.5-turbo. https://github.com/nomic-ai/gpt4all.
|
| 276 |
+
Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. 2016. Layer normalization. ArXiv, abs/1607.06450.
|
| 277 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, Nicholas Joseph, Saurav Kadavath, Jackson Kernion, Tom Conerly, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Danny Hernandez, Tristan Hume, Scott Johnston, Shauna Kravec, Liane Lovitt, Neel Nanda, Catherine Olsson, Dario Amodei, Tom Brown, Jack Clark, Sam McCandlish, Chris Olah, Ben Mann, and Jared Kaplan. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback.
|
| 278 |
+
Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Janvin. 2003. A neural probabilistic language model. J. Mach. Learn. Res., 3:1137-1155.
|
| 279 |
+
Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O'Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, Usvsn Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar Van Der Wal. 2023. Pythia: A suite for analyzing large language models across training and scaling. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 2397-2430. PMLR.
|
| 280 |
+
BigScience, Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilic, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François
|
| 281 |
+
|
| 282 |
+
Yvon, et al. 2022. Bloom: A 176b-parameter open-access multilingual language model. arXiv preprint arXiv:2211.05100.
|
| 283 |
+
Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 7432-7439.
|
| 284 |
+
Sid Black, Stella Biderman, Eric Hallahan, Quentin Anthony, Leo Gao, Laurence Golding, Horace He, Connor Leahy, Kyle McDonell, Jason Phang, Michael Pieler, USVSN Sai Prashanth, Shivanshu Purohit, Laria Reynolds, Jonathan Tow, Ben Wang, and Samuel Weinbach. 2022. GPT-NeoX-20B: An open-source autoregressive language model. In Proceedings of the ACL Workshop on Challenges & Perspectives in Creating Large Language Models.
|
| 285 |
+
Su Lin Blodgett, Lisa Green, and Brendan O'Connor. 2016. Demographic dialectal variation in social media: A case study of African-American English. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1119-1130, Austin, Texas. Association for Computational Linguistics.
|
| 286 |
+
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. J. Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. *ArXiv*, abs/2005.14165.
|
| 287 |
+
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An open-source chatbot impressing gpt-4 with $90\%$ * chatgpt quality.
|
| 288 |
+
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira,
|
| 289 |
+
|
| 290 |
+
Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan First, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. 2022. Palm: Scaling language modeling with pathways.
|
| 291 |
+
Alexandra Chronopoulou, Matthew Peters, and Jesse Dodge. 2022. Efficient hierarchical domain adaptation for pretrained language models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1336-1351, Seattle, United States. Association for Computational Linguistics.
|
| 292 |
+
Hyung Won Chung, Noah Constant, Xavier Garcia, Adam Roberts, Yi Tay, Sharan Narang, and Orhan First. 2023. Unimax: Fairer and more effective language sampling for large-scale multilingual pretraining. ArXiv, abs/2304.09151.
|
| 293 |
+
Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. Boolq: Exploring the surprising difficulty of natural yes/no questions. arXiv preprint arXiv:1905.10044.
|
| 294 |
+
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457.
|
| 295 |
+
Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. 2023. Free dolly: Introducing the world's first truly open instruction-tuned llm.
|
| 296 |
+
Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback.
|
| 297 |
+
Jesse Dodge, Taylor Prewitt, Remi Tachet Des Combes, Erika Odmark, Roy Schwartz, Emma Strubell, Alexandra Sasha Luccioni, Noah A. Smith, Nicole DeCario, and Will Buchanan. 2022. Measuring the carbon intensity of ai in cloud instances.
|
| 298 |
+
William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In International Joint Conference on Natural Language Processing.
|
| 299 |
+
Yanai Elazar, Akshita Bhagia, Ian Helgi Magnusson, Abhilasha Ravichander, Dustin Schwenk, Alane Suhr, Evan Pete Walsh, Dirk Groeneveld, Luca Soldaini, Sameer Singh, Hanna Hajishirzi, Noah A. Smith, and Jesse Dodge. 2024. What's in my big data? In The Twelfth International Conference on Learning Representations.
|
| 300 |
+
|
| 301 |
+
Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027.
|
| 302 |
+
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.
|
| 303 |
+
Sidney Greenbaum and Gerald Nelson. 1996. The international corpus of english (ICE) project. World Englishes, 15(1):3-15.
|
| 304 |
+
Dirk Groeneveld, Anas Awadalla, Iz Beltagy, Akshitaa Bhagia, Ian Magnusson, Hao Peng, Oyvind Tafjord, Pete Walsh, Kyle Richardson, and Jesse Dodge. 2023. Catwalk: A unified language model evaluation framework for many datasets. arXiv preprint arXiv:2312.10253.
|
| 305 |
+
Biyang Guo, Xin Zhang, Ziyuan Wang, Minqi Jiang, Jinran Nie, Yuxuan Ding, Jianwei Yue, and Yupeng Wu. 2023. How close is chatgpt to human experts? comparison corpus, evaluation, and detection. arXiv preprint arxiv:2301.07597.
|
| 306 |
+
Suchin Gururangan, Mitchell Wortsman, Samir Yitzhak Gadre, Achal Dave, Maciej Kilian, Weijia Shi, Jean Mercat, Georgios Smyrnis, Gabriel Ilharco, Matt Jordan, Reinhard Heckel, Alex Dimakis, Ali Farhadi, Vaishaal Shankar, and Ludwig Schmidt. 2023. OpenLM: a minimal but performative language modeling (lm) repository. GitHub repository.
|
| 307 |
+
Thomas Hartvigsen, Saadia Gabriel, Hamid Palangi, Maarten Sap, Dipankar Ray, and Ece Kamar. 2022. TOXIGEN: Controlling Language Models to Generate Implied and Adversarial Toxicity. In ACL.
|
| 308 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding. Proceedings of the International Conference on Learning Representations (ICLR).
|
| 309 |
+
Hamish Ivison, Yizhong Wang, Valentina Pyatkin, Nathan Lambert, Matthew Peters, Pradeep Dasigi, Joel Jang, David Wadden, Noah A. Smith, Iz Beltagy, and Hannaneh Hajishirzi. 2023. Camels in a changing climate: Enhancing lm adaptation with tulu 2.
|
| 310 |
+
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, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088.
|
| 311 |
+
|
| 312 |
+
Andreas Köpf, Yannic Kilcher, Dimitri von Rütte, Sotiris Anagnostidis, Zhi Rui Tam, Keith Stevens, Abdullah Barhoum, Duc Minh Nguyen, Oliver Stanley, Richard Nagyfi, Shahul ES, Sameer Suri, David Alexandrovich Glushkov, Arnav Varma Dantuluri, Andrew Maguire, Christoph Schuhmann, Huu Nguyen, and Alexander Julian Mattick. 2023. Opennassistant conversations - democratizing large language model alignment. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
|
| 313 |
+
Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Alpacaeval: An automatic evaluator of instruction-following models. Github repository.
|
| 314 |
+
Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. 2022. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110.
|
| 315 |
+
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), pages 3214-3252.
|
| 316 |
+
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. CoRR, abs/2007.08124.
|
| 317 |
+
Zhengzhong Liu, Aurick Qiao, Willie Neiswanger, Hongyi Wang, Bowen Tan, Tianhua Tao, Junbo Li, Yuqi Wang, Suqi Sun, Omkar Pangarkar, et al. 2023. Llm360: Towards fully transparent open-source llms. arXiv preprint arXiv:2312.06550.
|
| 318 |
+
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations.
|
| 319 |
+
Alexandra Sasha Luccioni, Sylvain Viguier, and Anne-Laure Ligozat. 2022. Estimating the carbon footprint of bloom, a 176b parameter language model.
|
| 320 |
+
Ian Magnusson, Akshita Bhagia, Valentin Hofmann, Luca Soldaini, Ananya Harsh Jha, Oyvind Tafjord, Dustin Schwenk, Evan Pete Walsh, Yanai Elazar, Kyle Lo, et al. 2023. Paloma: A benchmark for evaluating language model fit. arXiv preprint arXiv:2312.10523.
|
| 321 |
+
Mitchell P. Marcus, Beatrice Santorini, Mary Ann Marcinkiewicz, and Ann Taylor. 1999. Treebank-3.
|
| 322 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. ArXiv, abs/1609.07843.
|
| 323 |
+
|
| 324 |
+
Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Frederick Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, and Hao Wu. 2017. Mixed precision training. ArXiv, abs/1710.03740.
|
| 325 |
+
Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. 2018. Can a suit of armor conduct electricity? a new dataset for open book question answering. arXiv preprint arXiv:1809.02789.
|
| 326 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. 2013. Distributed representations of words and phrases and their compositionality. In Neural Information Processing Systems.
|
| 327 |
+
Swaroop Mishra, Daniel Khashabi, Chitta Baral, and Hannaneh Hajishirzi. 2022. Cross-task generalization via natural language crowdsourcing instructions. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3470-3487, Dublin, Ireland. Association for Computational Linguistics.
|
| 328 |
+
MosaicML NLP Team. 2023. Introducing mpt-7b: A new standard for open-source, commercially usable llms. Accessed: 2023-05-05.
|
| 329 |
+
Niklas Muennighoff, Alexander M Rush, Boaz Barak, Teven Le Scao, Aleksandra Piktus, Nouamane Tazi, Campo Pyysalo, Thomas Wolf, and Colin Raffel. 2023. Scaling data-constrained language models. arXiv preprint arXiv:2305.16264.
|
| 330 |
+
Davide Nunes. 2020. Preprocessed penn tree bank.
|
| 331 |
+
OpenAI. 2023. Gpt-4 technical report. ArXiv, abs/2303.08774.
|
| 332 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35, pages 27730-27744. Curran Associates, Inc.
|
| 333 |
+
Antonis Papasavva, Savvas Zannettou, Emiliano De Cristofaro, Gianluca Stringhini, and Jeremy Blackburn. 2020. Raiders of the lost kek: 3.5 years of augmented 4chan posts from the politically incorrect board. Proceedings of the International AAAI Conference on Web and Social Media, 14:885-894.
|
| 334 |
+
David Patterson, Joseph Gonzalez, Quoc Le, Chen Liang, Lluis-Miquel Munguia, Daniel Rothchild, David So, Maud Texier, and Jeff Dean. 2021. Carbon emissions and large neural network training.
|
| 335 |
+
Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra-Aimée Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam
|
| 336 |
+
|
| 337 |
+
Almazrouei, and Julien Launay. 2023. The refined-web dataset for falcon llm: Outperforming curated corpora with web data, and web data only. ArXiv, abs/2306.01116.
|
| 338 |
+
Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. ArXiv, abs/1802.05365.
|
| 339 |
+
Mohammad Taher Pilehvar and José Camacho-Collados. 2018. Wic: 10, 000 example pairs for evaluating context-sensitive representations. CoRR, abs/1808.09121.
|
| 340 |
+
Jack W. Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, Eliza Rutherford, Tom Hennigan, Jacob Menick, Albin Cassirer, Richard Powell, George van den Driessche, Lisa Anne Hendricks, Maribeth Rauh, Po-Sen Huang, Amelia Glaese, Johannes Welbl, Sumanth Dathathri, Saffron Huang, Jonathan Uesato, John Mellor, Irina Higgins, Antonia Creswell, Nat McAleese, Amy Wu, Erich Elsen, Siddhant Jayakumar, Elena Buchatskaya, David Budden, Esme Sutherland, Karen Simonyan, Michela Paganini, Laurent Sifre, Lena Martens, Xiang Lorraine Li, Adhiguna Kuncoro, Aida Nematzadeh, Elena Gribovskaya, Domenic Donato, Angeliki Lazaridou, Arthur Mensch, Jean-Baptiste Lespiau, Maria Tsimpoukelli, Nikolai Grigorev, Doug Fritz, Thibault Sottiaux, Mantas Pajarskas, Toby Pohlen, Zhitao Gong, Daniel Toyama, Cyprien de Masson d'Autume, Yujia Li, Tayfun Terzi, Vladimir Mikulik, Igor Babuschkin, Aidan Clark, Diego de Las Casas, Aurelia Guy, Chris Jones, James Bradbury, Matthew Johnson, Blake Hechtman, Laura Weidinger, Iason Gabriel, William Isaac, Ed Lockhart, Simon Osindero, Laura Rimell, Chris Dyer, Oriol Vinyals, Kareem Ayoub, Jeff Stanway, Lorrayne Bennett, Demis Hassabis, Koray Kavukcuoglu, and Geoffrey Irving. 2022. Scaling language models: Methods, analysis & insights from training gopher.
|
| 341 |
+
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 342 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(1).
|
| 343 |
+
Samyam Rajbhandari, Jeff Rasley, Olatunjri Ruwase, and Yuxiong He. 2019. Zero: Memory optimizations toward training trillion parameter models. SC20: International Conference for High Performance Computing, Networking, Storage and Analysis, pages 1-16.
|
| 344 |
+
|
| 345 |
+
Machel Reid, Victor Zhong, Suchin Gururangan, and Luke Zettlemoyer. 2022. M2D2: A massively multi-domain language modeling dataset. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 964-975, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 346 |
+
Manoel Horta Ribeiro, Jeremy Blackburn, Barry Bradlyn, Emiliano De Cristofaro, Gianluca Stringhini, Summer Long, Stephanie Greenberg, and Savvas Zannettou. 2021. The evolution of the manosphere across the web. Proceedings of the International AAAI Conference on Web and Social Media, 15:196-207.
|
| 347 |
+
Ronald Rosenfeld. 2000. Two decades of statistical language modeling: Where do we go from here? Proceedings of the IEEE, 88(8):1270-1278.
|
| 348 |
+
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99-106.
|
| 349 |
+
Victor Sanh, Albert Webson, Colin Raffel, Stephen Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Arun Raja, Manan Dey, M Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan Chhablani, Nihal Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Fevry, Jason Alan Fries, Ryan Teehan, Teven Le Scao, Stella Biderman, Leo Gao, Thomas Wolf, and Alexander M Rush. 2022. Multitask prompted training enables zero-shot task generalization. In International Conference on Learning Representations.
|
| 350 |
+
Noam M. Shazeer. 2020. Glu variants improve transformer. ArXiv, abs/2002.05202.
|
| 351 |
+
Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Harsh Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Pete Walsh, Luke Zettlemoyer, Noah A. Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, and Kyle Lo. 2024. Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research. arXiv preprint.
|
| 352 |
+
Emma Strubell, Ananya Ganesh, and Andrew McCallum. 2019. Energy and policy considerations for deep learning in NLP. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3645-3650, Florence, Italy. Association for Computational Linguistics.
|
| 353 |
+
|
| 354 |
+
Jianlin Su, Yu Lu, Shengfeng Pan, Bo Wen, and Yunfeng Liu. 2021. Roformer: Enhanced transformer with rotary position embedding. ArXiv, abs/2104.09864.
|
| 355 |
+
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca.
|
| 356 |
+
Teknium1. 2023. Gpteacher. https://github.com/ tekniun1/GPTeacher.
|
| 357 |
+
Together Computer. 2023. RedPajama: An Open Source Recipe to Reproduce LLaMA training dataset.
|
| 358 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023a. Llama: Open and efficient foundation language models. *ArXiv*, abs/2302.13971.
|
| 359 |
+
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. 2023b. Llama 2: Open foundation and fine-tuned chat models.
|
| 360 |
+
María Ubierna, Cristina Díez Santos, and Sara Mercier-Blais. 2022. Water Security and Climate Change: Hydropower Reservoir Greenhouse Gas Emissions, pages 69–94. Springer Singapore, Singapore.
|
| 361 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
|
| 362 |
+
David Vilares and Carlos Gomez-Rodriguez. 2019. HEAD-QA: A healthcare dataset for complex reasoning. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 960-966, Florence, Italy. Association for Computational Linguistics.
|
| 363 |
+
|
| 364 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2018. Glue: A multi-task benchmark and analysis platform for natural language understanding. *ArXiv*, abs/1804.07461.
|
| 365 |
+
Yizhong Wang, Hamish Ivison, Pradeep Dasigi, Jack Hessel, Tushar Khot, Khyathi Raghavi Chandu, David Wadden, Kelsey MacMillan, Noah A. Smith, Iz Beltagy, and Hannaneh Hajishirzi. 2023. How far can camels go? exploring the state of instruction tuning on open resources.
|
| 366 |
+
Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned language models are zero-shot learners. In International Conference on Learning Representations.
|
| 367 |
+
Johannes Welbl, Nelson F Liu, and Matt Gardner. 2017. Crowdsourcing multiple choice science questions. arXiv preprint arXiv:1707.06209.
|
| 368 |
+
Carole-Jean Wu, Ramya Raghavendra, Udit Gupta, Bilge Acun, Newsha Ardalani, Kiwan Maeng, Gloria Chang, Fiona Aga Behram, James Huang, Charles Bai, Michael Gschwind, Anurag Gupta, Myle Ott, Anastasia Melnikov, Salvatore Candido, David Brooks, Geeta Chauhan, Benjamin Lee, Hsien-Hsin S. Lee, Bugra Akyildiz, Maximilian Balandat, Joe Spisak, Ravi Jain, Mike Rabbat, and Kim Hazelwood. 2022. Sustainable ai: Environmental implications, challenges and opportunities.
|
| 369 |
+
Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, Qingwei Lin, and Daxin Jiang. 2024. WizardLM: Empowering large pre-trained language models to follow complex instructions. In The Twelfth International Conference on Learning Representations.
|
| 370 |
+
Canwen Xu, Daya Guo, Nan Duan, and Julian McAuley. 2023. Baize: An open-source chat model with parameter-efficient tuning on self-chat data. arXiv preprint arXiv:2304.01196.
|
| 371 |
+
Savvas Zannettou, Barry Bradlyn, Emiliano De Cristofaro, Haewoon Kwak, Michael Sirivianos, Gianluca Stringini, and Jeremy Blackburn. 2018. What is gab: A bastion of free speech or an alt-right echo chamber. In Companion Proceedings of the The Web Conference 2018, WWW '18, page 1007-1014, Republic and Canton of Geneva, CHE. International World Wide Web Conferences Steering Committee.
|
| 372 |
+
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. Hellaswag: Can a machine really finish your sentence? arXiv preprint arXiv:1905.07830.
|
| 373 |
+
Biao Zhang and Rico Sennrich. 2019. Root mean square layer normalization. ArXiv, abs/1910.07467.
|
| 374 |
+
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel
|
| 375 |
+
|
| 376 |
+
Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer. 2022. Opt: Open pretrained transformer language models.
|
| 377 |
+
Yanli Zhao, Andrew Gu, Rohan Varma, Liangchen Luo, Chien chin Huang, Min Xu, Less Wright, Hamid Shojanazeri, Myle Ott, Sam Shleifer, Alban Desmaison, Can Balioglu, Bernard Nguyen, Geeta Chauhan, Yuchen Hao, and Shen Li. 2023. Pytorch fsdp: Experiences on scaling fully sharded data parallel. Proc. VLDB Endow., 16:3848-3860.
|
| 378 |
+
|
| 379 |
+
# A Training Settings
|
| 380 |
+
|
| 381 |
+
Table 5 summarizes the model architecture and the optimizer parameters of OLMo-7B as well as recent similar-sized models.
|
| 382 |
+
|
| 383 |
+
# B Power Consumption and Carbon Footprint
|
| 384 |
+
|
| 385 |
+
Following previous literature (Strubell et al., 2019; Patterson et al., 2021; Wu et al., 2022; Dodge et al., 2022), we estimate the total energy consumed and carbon released while pretraining our models by calculating the total power consumption required for training, and then multiplying it by the carbon emission intensity of the power grid where the model was trained. While reporting these operational emissions is standard practice, it does not account for other sources of emissions such as the embodied emissions due to the manufacturing, transportation, and disposal of hardware and datacenter infrastructure, lifetime operational emissions due to use, rebound effects, or other environmental impacts such as water consumption or mining. Thus our estimates should be viewed as lower bounds.
|
| 386 |
+
|
| 387 |
+
We calculate the total power consumption for our models by measuring the power consumption of a single node every $25\mathrm{ms}$ , calculating an average across the entire training run, and multiplying by the total number of nodes. We then account for the energy efficiency of the data center by multiplying the previous total by a power usage effectiveness (PUE) factor, which we set to 1.1, representing a conservative $10\%$ energy consumption overhead typical of energy efficient datacenters.[1011] We estimate that pretraining our 7B models consumed 239 MWh of energy.
|
| 388 |
+
|
| 389 |
+
To calculate carbon emissions, we multiply the total power consumption by a carbon intensity factor, measured in $\mathrm{kgCO_2}$ emitted per KWh, based on the physical location of the data center where each model was trained. The model trained on A100-40GB GPUs was trained in Australia, so we assume a carbon intensity factor of 0.610, the national average for Australia in 2022.[12] The model trained on MI250X GPUs was trained in the LUMI
|
| 390 |
+
|
| 391 |
+
supercomputer, which runs on $100\%$ renewable, carbon-neutral energy, so we assume a carbon intensity factor of 0. LUMI is powered entirely by hydroelectric power and some sources (Ubierna et al., 2022) measure the carbon intensity factor of hydroelectric power to be 0.024, which would imply total carbon emissions of $3.54\mathrm{tCO}_2\mathrm{eq}$ . However, we rely on the official LUMI data for our calculations, and thus we estimate total pretraining emissions of $69.78\mathrm{tCO}_2\mathrm{eq}$ . In Table 6 we compare our models with other previously released models based on publicly available information.
|
| 392 |
+
|
| 393 |
+
We hope that openly releasing our models can reduce future emissions by allowing others to avoid the need to pretrain models from scratch, and give insights into the true cost of developing state of the art models. We also highlight that our estimates are lower bounds, because they do not include other critical pieces of development such as debugging, hyperparameter tuning, and downtime.
|
| 394 |
+
|
| 395 |
+
# C Additional Evaluation
|
| 396 |
+
|
| 397 |
+
Additional perplexity results In Figure 3 we provide results for each of the 7 data sources in Paloma (Magnusson et al., 2023) that are excluded from the combined metric in Figure 2. Some of these sources such as Pile (Gao et al., 2020) and ICE (Greenbaum and Nelson, 1996) are not publicly available at this time. Dolma 100 Programming Languages (Soldaini et al., 2024) consists of code data that is not supported by the decontamination approach used in Paloma. TwitterAAE (Blodgett et al., 2016), along with ICE, are datasets for targeted analyses of disparities in performance between different dialects and as such should be evaluated separately. And finally, the Manosphere, Gab, and 4chan corpora (Ribeiro et al., 2021; Zannettou et al., 2018; Papasavva et al., 2020) are intended to examine model fit to language from fringe online communities that are studied for prevalent hate speech and toxicity. Thus minimizing perplexity on these fringe corpora is not always desirable.
|
| 398 |
+
|
| 399 |
+
One notable result here is that OLMo-7B is much farther ahead of the other models on Dolma 100 Programming Languages (100 PLs). Note that this effect may be due in part to underestimation from contamination, as decontaminating code data is beyond the scope of the method in Paloma. At the
|
| 400 |
+
|
| 401 |
+
<table><tr><td></td><td>OLMo-7B</td><td>LLaMA2-7B</td><td>OpenLM-7B</td><td>Falcon-7B</td><td>PaLM-8B</td></tr><tr><td>Dimension</td><td>4096</td><td>4096</td><td>4096</td><td>4544</td><td>4096</td></tr><tr><td>Num heads</td><td>32</td><td>32</td><td>32</td><td>71</td><td>16</td></tr><tr><td>Num layers</td><td>32</td><td>32</td><td>32</td><td>32</td><td>32</td></tr><tr><td>MLP ratio</td><td>~8/3</td><td>~8/3</td><td>~8/3</td><td>4</td><td>4</td></tr><tr><td>Layer norm type</td><td>non-parametric</td><td>RMSNorm</td><td>parametric</td><td>parametric</td><td>parametric</td></tr><tr><td>Positional embeddings</td><td>RoPE</td><td>RoPE</td><td>RoPE</td><td>RoPE</td><td>RoPE</td></tr><tr><td>Attention variant</td><td>full</td><td>GQA</td><td>full</td><td>MQA</td><td>MQA</td></tr><tr><td>Biases</td><td>none</td><td>none</td><td>in LN only</td><td>in LN only</td><td>none</td></tr><tr><td>Block type</td><td>sequential</td><td>sequential</td><td>sequential</td><td>parallel</td><td>parallel</td></tr><tr><td>Activation</td><td>SwiGLU</td><td>SwiGLU</td><td>SwiGLU</td><td>GeLU</td><td>SwiGLU</td></tr><tr><td>Sequence length</td><td>2048</td><td>4096</td><td>2048</td><td>2048</td><td>2048</td></tr><tr><td>Batch size (instances)</td><td>2160</td><td>1024</td><td>2048</td><td>2304</td><td>512</td></tr><tr><td>Batch size (tokens)</td><td>~4M</td><td>~4M</td><td>~4M</td><td>~4M</td><td>~1M</td></tr><tr><td>Weight tying</td><td>no</td><td>no</td><td>no</td><td>no</td><td>yes</td></tr><tr><td>Warmup steps</td><td>5000</td><td>2000</td><td>2000</td><td>1000</td><td></td></tr><tr><td>Peak LR</td><td>3.0E-04</td><td>3.0E-04</td><td>3.0E-04</td><td>6.0E-04</td><td></td></tr><tr><td>Minimum LR</td><td>3.0E-05</td><td>3.0E-05</td><td>3.0E-05</td><td>1.2E-05</td><td></td></tr><tr><td>Weight decay</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.1</td><td></td></tr><tr><td>Beta1</td><td>0.9</td><td>0.9</td><td>0.9</td><td>0.99</td><td></td></tr><tr><td>Beta2</td><td>0.95</td><td>0.95</td><td>0.95</td><td>0.999</td><td></td></tr><tr><td>Epsilon</td><td>1.0E-05</td><td>1.0E-05</td><td>1.0E-05</td><td>1.0E-05</td><td></td></tr><tr><td>LR schedule</td><td>linear</td><td>cosine</td><td>cosine</td><td>cosine</td><td></td></tr><tr><td>Gradient clipping</td><td>global 1.0</td><td>global 1.0</td><td>global 1.0</td><td>global 1.0</td><td></td></tr><tr><td>Gradient reduce dtype</td><td>FP32</td><td>FP32</td><td>FP32</td><td>BF16</td><td></td></tr><tr><td>Optimizer state dtype</td><td>FP32</td><td>most likely FP32</td><td>FP32</td><td>FP32</td><td></td></tr></table>
|
| 402 |
+
|
| 403 |
+
Table 5: LM architecture and optimizer comparison at the 7-8B scale. In the "layer norm type" row, "parametric" and "non-parametric" refer to the usual layer norm implementation with and without adaptive gain and bias, respectively. All models are trained using AdamW.
|
| 404 |
+
|
| 405 |
+
same time other models that are trained on code data from GitHub such as RPJ-INCITE-7B, that are just as likely to have contamination, fair much worse. Another factor then is that OLMo-7B trains on code data with exactly the same post-processing as that in 100 PLs while the code data in other models will have been processed differently. Similarly, Pile evaluation demonstrates these in-distribution and potential contamination effects as Pythia-6.9B achieves top performance despite being trained on almost an order of magnitude fewer tokens than OLMo-7B.
|
| 406 |
+
|
| 407 |
+
The results on the remaining 5 targeted sources should be interpreted with care, as Paloma often finds that perplexity on these sources is dominated by superficial features such as low average document length rather than fit to that which would actually be salient to members of these speech communities. TwitterAAE and Gab have among the shortest documents in Paloma contributing to unusually high bits per byte in this figure. Other than these two, the models are notably very closely grouped in a data scaling trend in ICE, Manosphere, and 4chan.
|
| 408 |
+
|
| 409 |
+
Additional end-task results Next, in Table 7, we provide results from zero-shot evaluation of
|
| 410 |
+
|
| 411 |
+
OLMo-7B on 6 additional end-tasks apart from the 8 in our core evaluation suite. These tasks are headqa_en (Vilares and Gomez-Rodriguez, 2019), logiqa (Liu et al., 2020), mrpc (Dolan and Brockett, 2005), qnli (Wang et al., 2018), wic (Pilehvar and Camacho-Collados, 2018), and wnli (Wang et al., 2018).
|
| 412 |
+
|
| 413 |
+
We note, however, that in contrast to our core evaluation set described in Section 4.1, we found these additional end-tasks to have less stable performance during model development, and to provide a limited signal. This is illustrated in Figure 4, where we see the progress of task performance throughout training to be more random (compare with the more stable upward trends in Figure 1). While tasks such as mrpc and wic appear more stable, they offered additional difficulties related to performance being tied to random chance (e.g., wic) or the tendency of models to make spurious predictions (e.g., always predicting a single label) that either inflate or deflate performance due to dataset class imbalances (e.g., mrpc). We therefore caution against relying too heavily on these tasks when measuring model performance throughout training and comparing models.
|
| 414 |
+
|
| 415 |
+
<table><tr><td></td><td>GPU Type</td><td>GPU Power Consumption (MWh)</td><td>Power Usage Effectiveness</td><td>Carbon Intensity (kg CO2e/KWh)</td><td>Carbon Emissions (tCO2eq)</td></tr><tr><td>Gopher-280B</td><td>TPU v3</td><td>1,066</td><td>1.08</td><td>0.330</td><td>380</td></tr><tr><td>BLOOM-176B</td><td>A100-80GB</td><td>433</td><td>1.2</td><td>0.057</td><td>30</td></tr><tr><td>OPT-175B</td><td>A100-80GB</td><td>324</td><td>1.1</td><td>0.231</td><td>82</td></tr><tr><td>T5-11B</td><td>TPU v3</td><td>77</td><td>1.12</td><td>0.545</td><td>47</td></tr><tr><td>LLaMA-7B</td><td>A100-80GB</td><td>33</td><td>1.1</td><td>0.385</td><td>14</td></tr><tr><td>LLaMA2-7B</td><td>A100-80GB</td><td>74</td><td>1.1</td><td>0.385</td><td>31</td></tr><tr><td>OLMo-7B</td><td>MI250X</td><td>135</td><td>1.1</td><td>0.000*</td><td>0*</td></tr><tr><td>OLMo-7B</td><td>A100-40GB</td><td>104</td><td>1.1</td><td>0.610</td><td>70</td></tr></table>
|
| 416 |
+
|
| 417 |
+
Table 6: $\mathrm{CO}_{2}$ emissions during pretraining. We estimate the total carbon emissions for various models using publicly available data on PUE, carbon intensity of local power grid, and reported power consumption. Numbers for Gopher-280B (Rae et al., 2022), BLOOM-176B (Luccioni et al., 2022), OPT-175B (Zhang et al., 2022), T5-11B (Patterson et al., 2021), LLaMA (Touvron et al., 2023a), and LLaMA2 (Touvron et al., 2023b) are taken from their respective papers. See Section B for details on how tCO2eq was calculated.
|
| 418 |
+
* LUMI runs entirely on hydroelectric power $^{13}$ and some estimates (Ubierna et al., 2022) measure the intensity factor of hydroelectric power to be 0.024, implying total emissions of $3.54 \mathrm{tCO}_{2} \mathrm{eq}$ .
|
| 419 |
+
|
| 420 |
+
<table><tr><td></td><td>headqa_en</td><td>logiqa</td><td>mrpc</td><td>qnli</td><td>wic</td><td>wnli</td><td>avg.</td></tr><tr><td>Falcon-7B</td><td>38.6</td><td>23.7</td><td>62.8</td><td>49.8</td><td>49.5</td><td>47.9</td><td>45.4</td></tr><tr><td>LLaMA-7B</td><td>38.7</td><td>19.5</td><td>68.6</td><td>50.1</td><td>49.1</td><td>52.1</td><td>46.4</td></tr><tr><td>LLaMA2-7B</td><td>39.5</td><td>26.1</td><td>69.1</td><td>49.4</td><td>49.8</td><td>45.1</td><td>46.5</td></tr><tr><td>MPT-7B</td><td>37.4</td><td>22.9</td><td>67.7</td><td>52.1</td><td>48.1</td><td>47.9</td><td>46.0</td></tr><tr><td>Pythia-6.9B</td><td>40.1</td><td>21.5</td><td>65.4</td><td>53.8</td><td>55.0</td><td>38.0</td><td>45.6</td></tr><tr><td>RPJ-INCITE-7B</td><td>36.9</td><td>27.8</td><td>58.8</td><td>53.8</td><td>48.9</td><td>57.8</td><td>47.3</td></tr><tr><td>OLMo-7B</td><td>37.3</td><td>23.4</td><td>68.4</td><td>49.1</td><td>50.2</td><td>56.3</td><td>47.5</td></tr></table>
|
| 421 |
+
|
| 422 |
+
Table 7: Zero-shot evaluation of OLMo-7B on 6 additional end-tasks apart from the 8 present in our core evaluation suite. Once again, we compare OLMo-7B to 6 other model checkpoints which are publicly available. We find that OLMo-7B outperforms the other models on aggregate taken over 6 additional end-tasks from this table, however these tasks were also found to provide limited signal during training (see Figure 4).
|
| 423 |
+
|
| 424 |
+
# D Adaptation Training Details
|
| 425 |
+
|
| 426 |
+
We use the following hyperparameters when instruction tuning OLMo. These were chosen through small pilot experiments.
|
| 427 |
+
|
| 428 |
+
- Learning rate: $2 \times 10^{-6}$
|
| 429 |
+
- Epochs: 3
|
| 430 |
+
- Warmup: Linear warmup for the first $3\%$ of total training time, and then linear cooldown to a learning rate of 0 over the remaining steps.
|
| 431 |
+
Weight decay: 0
|
| 432 |
+
Gradient clipping: 0
|
| 433 |
+
Maximum sequence length: 2048
|
| 434 |
+
- Data:TÜLU V2 SFT mix, resplit such that long conversations are split into 2048-token chunks and replacing the hardcoded split with
|
| 435 |
+
|
| 436 |
+
data about OLMo. Data is publicly available. $^{14}$
|
| 437 |
+
|
| 438 |
+
After instruction finetuning, we then use the following hyperparameters for DPO training, following Ivison et al. (2023):
|
| 439 |
+
|
| 440 |
+
- Learning rate: $5 \times 10^{-7}$
|
| 441 |
+
$\beta$ : 0.1
|
| 442 |
+
- Epochs: 3
|
| 443 |
+
- Warmup: Linear warmup for the first $10\%$ of total training time, and then linear cooldown to a learning rate of 0 over the remaining steps.
|
| 444 |
+
Weight decay: 0
|
| 445 |
+
Gradient clipping: 0
|
| 446 |
+
|
| 447 |
+

|
| 448 |
+
|
| 449 |
+

|
| 450 |
+
|
| 451 |
+

|
| 452 |
+
|
| 453 |
+

|
| 454 |
+
|
| 455 |
+

|
| 456 |
+
Figure 3: Bits per byte for each of the 7 remaining Paloma data sources not aggregated in Figure 2.
|
| 457 |
+
|
| 458 |
+

|
| 459 |
+
Tokens Seen (billions)
|
| 460 |
+
|
| 461 |
+

|
| 462 |
+
|
| 463 |
+

|
| 464 |
+
|
| 465 |
+

|
| 466 |
+
|
| 467 |
+

|
| 468 |
+
|
| 469 |
+

|
| 470 |
+
|
| 471 |
+

|
| 472 |
+
|
| 473 |
+

|
| 474 |
+
Tokens Seen (billions)
|
| 475 |
+
|
| 476 |
+

|
| 477 |
+
Figure 4: Accuracy score progression of OLMo-7B on 6 additional end-tasks. The performance of these additional end-tasks was unstable and provided limited signal during model development.
|
| 478 |
+
|
| 479 |
+
Maximum sequence length: 2048
|
| 480 |
+
- Data: A modified form of UltraFeedback (Cui et al., 2023), with TruthfulQA prompts removed. We used the 'fixed' variant released by Argilla, which uses the average of GPT-generated aspect-based scores to determine
|
| 481 |
+
|
| 482 |
+
chosen and rejected pairs. 15
|
| 483 |
+
|
| 484 |
+
# E Adaptation Evaluation and Model details
|
| 485 |
+
|
| 486 |
+
We choose the models in Table 4 by choosing the 'canonical' best versions (that is, the best instruction-tuned or otherwise adapted models released by the same organisation) of the base models we compare against in Table 3. We additionally compare to TULU 2 to show the current best models trained using the TULU mix used to finetune OLMo. We display evaluations on MMLU, AlpacaEval, ToxiGen, and Truthfulness to focus on displaying how instruction tuning can generally help capabilities (MMLU), how the models perform in an open-ended chat setting (AlpacaEval), and to test how instruction tuning aids in model safety and truthfulness (AlpacaEval, ToxiGen). We additionally report OLMo's performance over the entire TULU evaluation suite in Table 8.
|
| 487 |
+
|
| 488 |
+
We provide a brief description of each model evaluated in Table 4 below. For all models, we use the provided chat template for prompt formatting when available.
|
| 489 |
+
|
| 490 |
+
- MPT Chat: A version of MPT 7B finetuned on the ShareGPT-Vicuna (Chiang et al., 2023), HC3 (Guo et al., 2023), Alpaca (Taori et al., 2023), HH-RLHF (Bai et al., 2022), and Evol-Instruct (Xu et al., 2024) datasets. Retrieved from https://huggingface.co/mosaicml/mpt-7b-chat.
|
| 491 |
+
- Falcon Instruct: A version of Falcon 7B finetuned on the Baize (Xu et al., 2023), GPT4All (Anand et al., 2023), GPTeacher (Teknium1, 2023), and Refined-Web English (Penedo et al., 2023) datasets. Retrieved from https://huggingface.co/tiiuae/falcon-7b-instruct.
|
| 492 |
+
- RPJ-INCITE Chat: A version of RPJ-INCITE 7B finetuned on the OASST1 (Köpf et al., 2023) and Dolly V2 (Conover et al., 2023) datasets. Retrieved from https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Chat.
|
| 493 |
+
- Llama-2 Chat: A version of Llama 2 7B finetuned on a mixture of instruction datasets and further trained with RLHF. We refer the reader to Touvron et al. (2023b) for further details.
|
| 494 |
+
- TÜLU 2: A version of Llama 2 7B finetuned on a mixture of instruction datasets (the TÜLU 2 mix).
|
| 495 |
+
|
| 496 |
+
We refer the reader to Ivison et al. (2023) for further details.
|
| 497 |
+
|
| 498 |
+
- TÜLU 2+DPO: TÜLU 2 further trained with DPO on the UltraFeedback dataset (Cui et al., 2023). We refer the reader to Ivison et al. (2023) for further details.
|
| 499 |
+
- OLMo+SFT: A version of OLMo 7B fintuned on the same data as TÜLU 2.
|
| 500 |
+
- OLMo+SFT+DPO: OLMo+SFT further trained with DPO on the UltraFeedback dataset (Cui et al., 2023).
|
| 501 |
+
|
| 502 |
+
We additionally provide a brief description of each evaluation setting from Table 4:
|
| 503 |
+
|
| 504 |
+
- MMLU: We use the official MMLU (Hendrycks et al., 2021) evaluation script and prompts available at https://github.com/hendrycks/test, with modifications to allow for batch processing. We evaluate using 0 few-shot examples, following the original setup of MMLU. We report average accuracy across test examples.
|
| 505 |
+
- ToxiGen: We follow the setup in Touvron et al. (2023b), but use the original set of prompts from Hartvigsen et al. (2022), which are designed to elicit toxic generations for certain groups. We take only the prompts designed to produce toxic language ('hateful' prompts) and use 500 prompts per group to reduce evaluation costs. For base language models, we pass in the original ToxiGen prompts unchanged and greedily decode up to the first new line (or a maximum of 512 tokens). For instruction-tuned models, we place the prompt in the corresponding template, and ask the model to complete the prompt, until the model generates a stop token (or a maximum of 512 tokens). We pass the generated text into a roberta-large model trained to detect toxic content finetuned as part of Hartvigsen et al. (2022).<sup>16</sup> We then report the percentage of generations deemed toxic by the classifier.
|
| 506 |
+
- TruthfulQA: Following Touvron et al. (2023b), we mainly use the generation setting of TruthfulQA (Lin et al., 2022). The TruthfulQA dataset contains 818 questions, which are used to prompt the tested model to generate answers. We use the default QA prompt format with 6 in-context QA
|
| 507 |
+
|
| 508 |
+
<table><tr><td>Model</td><td>MMLU 0-shot</td><td>GSM8k 8-shot CoT</td><td>BBH 3-shot CoT</td><td>TydiQA 1-shot</td><td>Codex-Eval Pass@10</td><td>AlpacaEval %win</td><td>ToxiGen % Toxic</td><td>TruthfulQA % Info + True</td></tr><tr><td>OLMo-7B</td><td>28.3</td><td>8.5</td><td>31.7</td><td>32.3</td><td>21.4</td><td>-</td><td>81.4</td><td>31.6</td></tr><tr><td>+SFT</td><td>47.3</td><td>15.5</td><td>36.9</td><td>35.2</td><td>28.6</td><td>57.0</td><td>14.4</td><td>41.2</td></tr><tr><td>+SFT+DPO</td><td>46.1</td><td>11.0</td><td>35.8</td><td>21.7</td><td>27.8</td><td>69.3</td><td>1.7</td><td>52.0</td></tr></table>
|
| 509 |
+
|
| 510 |
+
Table 8: Evaluation of OLMo-7B models before and after instruction finetuning and DPO training on the full TÜLU evaluation suite. Lower is better for ToxiGen and higher is better for other metrics.
|
| 511 |
+
|
| 512 |
+
examples. We follow the official script in their official implementation to do greedy decoding and answer postprocessing. We train two LLaMA 2-based classifiers for judging the truthfulness and informativeness of the model response, due to the depreciation of GPT-3 making exact replication of the original TruthfulQA evaluation infeasible. We find that the LLaMA 2 judges are generally able to match the performance of the original GPT-3-based judges used by Lin et al. (2022). We report the rate of the responses being truthful and informative (\% Informative and Truthful) following Touvron et al. (2023b). We only report the $\%$ Informative and Truthful as our primary metric.
|
| 513 |
+
|
| 514 |
+
- AlpacaEval: We use the package provided by Li et al. (2023), following the default setup which asks the evaluated model to generate responses for 805 prompts and employ GPT-4 to compare the response with Davinci-003. We employ the "alpaca_eval_gpt4" annotator. We allow the evaluated model to generate up to 2048 tokens, without specifying special stop sequences. The reported win-rate is the percentage of model generations that GPT-4 reports as being preferred over the generations from Davinci-003.
|
olmoacceleratingthescienceoflanguagemodels/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a617b596308bbdab59b496ed1643bf40fe5c62179271f97fc268f0517cf19c2
|
| 3 |
+
size 704582
|
olmoacceleratingthescienceoflanguagemodels/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:435787033f06792d94a359a649e6e7fc37026a7734556e909ad93f66501d4d44
|
| 3 |
+
size 629895
|
olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/88359de8-3b01-486e-bd67-0c4817aee7cb_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b96e779e6c7abdedd96818e473466f234efb5519dd72ce0eaff843cf4615884
|
| 3 |
+
size 135833
|
olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/88359de8-3b01-486e-bd67-0c4817aee7cb_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76831bd7ea3bfabcb650839cdfabe2cd736aa4e37444c96866ffb85c75c77b4a
|
| 3 |
+
size 164045
|
olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/88359de8-3b01-486e-bd67-0c4817aee7cb_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9c9190fdef37660fb9e6690f9dbdb7766f5b39f5941aae4061c8e93f22074e1
|
| 3 |
+
size 1047682
|
olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/full.md
ADDED
|
@@ -0,0 +1,601 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problems
|
| 2 |
+
|
| 3 |
+
Chaoqun $\mathsf{He}^1$ , Renjie Luo $^2$ , Yuzhuo Bai $^1$ , Shengding $\mathsf{Hu}^1$ , Zhen Leng Thai $^1$
|
| 4 |
+
Junhao Shen $^1$ , Jinyi $\mathsf{Hu}^1$ , Xu $\mathsf{Han}^{1*}$ , Yujie Huang $^1$ , Yuxiang Zhang $^3$
|
| 5 |
+
Jie Liu $^3$ , Lei Qi $^3$ , Zhiyuan $\mathsf{Liu}^{1*}$ , Maosong Sun $^1$
|
| 6 |
+
|
| 7 |
+
$^{1}$ Dept. of Comp. Sci. & Tech., Institute for AI, Tsinghua University, Beijing, China
|
| 8 |
+
|
| 9 |
+
$^{2}$ Institute of Artificial Intelligence, Beihang University, China
|
| 10 |
+
|
| 11 |
+
$^{3}$ Wisdom Way AI Lab, China
|
| 12 |
+
|
| 13 |
+
{hcq21,byz22}@mails.tsinghua.edu.cn,renjie.luo@outlook.com,{hanxu2022,liuzy}@tsinghua.edu.cn
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Recent advancements have seen Large Language Models (LLMs) and Large Multimodal Models (LMMs) surpassing general human capabilities in various tasks, approaching the proficiency level of human experts across multiple domains. With traditional benchmarks becoming less challenging for these models, new rigorous challenges are essential to gauge their advanced abilities. In this work, we present OlympiadBench, an Olympiad-level bilingual multimodal scientific benchmark, featuring 8,476 problems from Olympiad-level mathematics and physics competitions, including the Chinese college entrance exam. Each problem is detailed with expert-level annotations for step-by-step reasoning. Evaluating top-tier models on OlympiadBench, we implement a comprehensive assessment methodology to accurately evaluate model responses. Notably, the best-performing model, GPT-4V, attains an average score of $17.97\%$ on OlympiadBench, with a mere $10.74\%$ in physics, highlighting the benchmark rigor and the intricacy of physical reasoning. Our analysis orienting GPT-4V points out prevalent issues with hallucinations, knowledge omissions, and logical fallacies. We hope that our challenging benchmark can serve as a valuable resource for helping future AGI research endeavors. The data and evaluation code are available at https://github.com/OpenBMB/OlympiadBench
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
Large Language Models (LLMs) have demonstrated remarkable capabilities across various tasks such as text generation (Zhao et al., 2023), code generation (Zan et al., 2023) and mathematical reasoning (Lu et al., 2023; Zhou et al., 2023), garnering significant attention from both academia and industry (Wei et al., 2022; Zhao et al., 2023; Bubeck et al., 2023). The most powerful models
|
| 22 |
+
|
| 23 |
+
*Corresponding authors: Xu Han and Zhiyuan Liu.
|
| 24 |
+
|
| 25 |
+
Question: Find all triples $(x,y,z)$ of positive integers such that $x\leq y\leq$ $z$ and $x^{3}(y^{3} + z^{3}) = 2012(xyz + 2)$
|
| 26 |
+
|
| 27 |
+
Solution: First note that $x$ divides $2012 \cdot 2 = 2^3 \cdot 503$ . If $503 \mid x$ then the right-hand side of the equation is divisible by $503^3$ , and it follows that $503^2 \mid xyz + 2$ . This is false as $503 \mid x$ . Hence $x = 2^m$ with $m \in \{0,1,2,3\}$ . If $m \geq 2$ then $2^6 \mid 2012(xyz + 2)$ . However the highest powers of 2 dividing 2012 and $xyz + 2 = 2^m yz + 2$ are $2^2$ and $2^1$ respectively. So $x = 1$ or $x = 2$ , yielding the two equations
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
y ^ {3} + z ^ {3} = 2 0 1 2 (y z + 2),
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
y ^ {3} + z ^ {3} = 5 0 3 (y z + 1)
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
In both cases .... It follows that $y\equiv -z(mod503)$ as claimed. Therefore $y + z = 503k$ with $k\geq 1$ . In view of $y^{3}+$ $z^3 = (y + z)((y - z)^2 +yz)$ the two equations take the form
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
k (y - z) ^ {2} + (k - 4) y z = 8 \tag {1}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
k (y - z) ^ {2} + (k - 1) y z = 1 \tag {2}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
In (1) we have $(k - 4)\mathrm{yz}\leq 8$ , which implies $k\leq 4$ .... Therefore (1) has no integer solutions.
|
| 48 |
+
|
| 49 |
+
Equation (2) implies $0 \leq (k - 1)yz \leq 1$ , so that $k = 1$ or $k = 2$ . Also $0 \leq k(y - z)^2 \leq 1$ , hence $k = 2$ only if $y = z$ . However then $y = z = 1$ , which is false in view of $y + z \geq 503$ . Therefore $k = 1$ and (2) takes the form $(y - z)^{2} = 1$ , yielding $z - y = |y - z| = 1$ . Combined with $k = 1$ and $y + z = 503k$ , this leads to $y = 251, z = 252$ .
|
| 50 |
+
|
| 51 |
+
In summary the triple $(2,251,252)$ is the only solution.
|
| 52 |
+
|
| 53 |
+
Final answer: (2,251,252)
|
| 54 |
+
|
| 55 |
+
Answer type: Tuple
|
| 56 |
+
|
| 57 |
+
Subfield: Number theory
|
| 58 |
+
|
| 59 |
+
Question type: Open-ended
|
| 60 |
+
|
| 61 |
+
Figure 1: An example of IMO in OlympiadBench. Solving this example requires AI systems to span different mathematical domains and conduct advanced reasoning.
|
| 62 |
+
|
| 63 |
+
such as GPT-4 (OpenAI, 2023a) and Gemini Ultra (Team, 2023) have even surpassed ordinary human level on a wide variety of benchmarks such as MMLU (Hendrycks et al., 2020), MMMU (Yue et al., 2023), and even surpassing human expert in many area. These results show a promising future that LLMs can serve as proficient assistants for human scientists (Nguyen, 2023; Qiu et al., 2023). Among the array of expert-level skills exhibited by LLMs, scientific reasoning consistently emerges as one of the most brilliant, showcasing some of the most distinguished intellectual properties that experts possess. Therefore, this paper primarily focuses on mathematical and physical reasoning.
|
| 64 |
+
|
| 65 |
+
In recent years, several benchmarks related to mathematics have been proposed, such as the
|
| 66 |
+
|
| 67 |
+
dataset GSM8K (Cobbe et al., 2021) as well as the dataset MATH (Hendrycks et al., 2021). However, these benchmarks, are primarily developed before the advent of highly capable LLMs, and now lack sufficient challenge for the latest models. For instance, GPT-4 with prompting techniques(Zhou et al., 2023) has achieved a $97.0\%$ success rate on GSM8K and $84.3\%$ on MATH. The rapid evolution of LLMs may soon lead to saturated results on these benchmarks. Concurrently, LLMs are not yet fully equipped to assist mathematicians in solving complex problems (Collins et al., 2023; Zhang et al., 2023), nor are they capable of performing expert-level mathematical reasoning independently. This discrepancy underscores the need for more challenging datasets to benchmark future advancements of LLMs in this domain. Similarly, physics presents comparable challenges for AI to those found in mathematics. Nevertheless, existing benchmarks related to physics (Lu et al., 2022; Arora et al., 2023; Wang et al., 2024) are characterized by their relatively low difficulty and limited scope. There is also a significant lack of a rigorous and challenging benchmark in physics.
|
| 68 |
+
|
| 69 |
+
In addition to the issue regarding the benchmark difficulty, it is important to note that these benchmarks predominantly focus on text. This presents a significant limitation, as a wide range of scientific reasoning contexts require multimodal reasoning abilities. For example, grasping geometry reasoning in mathematics or understanding experiments designs in physics are scenarios where multimodal reasoning capabilities are crucial. Notably, various large multimodal models (LMMs) have been developed (Team, 2023; Liu et al., 2023) and demonstrate proficiency on a variety of tasks (Lu et al., 2022; Yue et al., 2023; Zhang et al., 2024b; Lu et al., 2024), offering the potential for multimodal scientific reasoning. Nevertheless, there is still a lack of sufficient benchmarks to prove whether these LMMs are capable of handling scientific problems. Consequently, a challenging multimodal benchmark is essential for advancing scientific reasoning tasks(Zhang et al., 2024a; Lu et al., 2023).
|
| 70 |
+
|
| 71 |
+
To address the aforementioned inadequacies, we introduce OlympiadBench, an Olympiad-level bilingual multimodal scientific benchmark. This collection comprises 8,476 math and physics problems sourced from International Olympiads, Chinese Olympiads, and the most challenging segments of the Chinese College Entrance Exam (GaoKao). We download PDF data from official
|
| 72 |
+
|
| 73 |
+
websites and utilize Mathpix<sup>1</sup> for OCR parsing. We meticulously inspect, clean, and revise the data, and further adopt LLMs for dedduplication. Finally, we annotate the data with crucial information such as answer types and subfields, yielding a dataset that is clean, accurate, and detailed. As shown in Figure 1, OlympiadBench features numerous distinct characteristics such as difficulty, free-form generation, expert-level solution annotation, detailed labeling of difficulty, wide-coverage of modality and language, etc. These features are summarized more clearly from Table 1.
|
| 74 |
+
|
| 75 |
+
We conduct an evaluation of current state-of-the-art LLMs and LMMs on the OlympiadBench. The best-performing model, GPT-4V, is a multimodal version of GPT-4 developed by OpenAI that can understand images. Despite its advanced capabilities, GPT-4V achieves a score of only $17.97\%$ on OlympiadBench, with individual scores of $21.70\%$ in mathematics and $10.74\%$ in physics.
|
| 76 |
+
|
| 77 |
+
Importantly, the experiment results show that LMMs still struggle in computational error, incorrect reasoning or induction. For the process involved in the correct responses, the process occasionally includes hallucinated reasoning, or choosing a more complex solution when a simpler solution exists. All these results highlight the substantial challenge OlympiadBench presents to contemporary large models and point the direction of future efforts.
|
| 78 |
+
|
| 79 |
+
OlympiadBench is inspired by the significant advances made by DeepMind AlphaGeometry (Trinh et al., 2024), which nearly matches the proficiency of International Mathematical Olympiad (IMO) gold medalists in geometry proofs. It is clear that OlympiadBench, along with other challenging datasets like the AI-MO challenge $^{2}$ , will witness and benchmark the swift progress towards expert-level AI assistants for solving scientific problems.
|
| 80 |
+
|
| 81 |
+
# 2 Related Work
|
| 82 |
+
|
| 83 |
+
This section gives an overview of the existing datasets in solving mathematics and physics problems as well as multimodal datasets.
|
| 84 |
+
|
| 85 |
+
Mathematics Benchmarks. Solving mathematics problems and proving theorems in natural languages has been a key research focus in machine learning and natural language processing since the 1960s (Bobrow et al., 1964). Previous bench
|
| 86 |
+
|
| 87 |
+
marks (Koncel-Kedziorski et al., 2016; Wang et al., 2017; Ling et al., 2017; Amini et al., 2019; Cobbe et al., 2021; Wei et al., 2023) focus predominantly on math word problems (WMPs) which involve four basic arithmetic operations with single or multiple operation steps (Lu et al., 2023). Typically, the GSM8K (Cobbe et al., 2021) dataset targets elementary-level questions within 8 steps of basic arithmetic operations. However, these problems are typically text-only (Lu et al., 2023) and of lower difficulty, with reasoning limited to a few computations. As the complexity of the problems rises, some works (Hendrycks et al., 2021; Frieder et al., 2023; Arora et al., 2023) introduce competition-level problems integrating mathematical logic and background knowledge. Yet, these challenging datasets are increasingly being surmounted (Zhou et al., 2023). Theorem proving is a problem to demonstrate the truth of a mathematical claim (a theorem) through a sequence of logical arguments (a proof) (Lu et al., 2023). Earlier efforts mainly focused on translating natural language proofs into formal representations, facing significant expertise and labor challenges (Zheng et al., 2022; Welleck et al., 2021). The emergence of LLMs has facilitated notable advancements in the domain of natural language proof (Jiang et al., 2023). Olympiad-Bench presents mathematical reasoning and theoretical proofs all in natural language with detailed solution annotations.
|
| 88 |
+
|
| 89 |
+
Physics Benchmarks. Physics questions in SciQ (Welbl et al., 2017), ScienceQA (Lu et al., 2022) and E-EVAL (Hou et al., 2024) are mainly elementary and high school level multiple-choice questions, lacking complex reasoning and computational tasks. In MMLU-STEM (Hendrycks et al., 2020) and C-Eval-STEM (Huang et al., 2023), physics questions also adopt a multiple-choice format. JEEBench (Arora et al., 2023) extends this format to include multistep reasoning with physics knowledge, yet it is limited in scope and purely text-only. TheoremQA (Chen et al., 2023) is the first theorem-driven question-answering dataset. Curated by domain experts, it contains 800 high-quality questions that encompass 350 theorems from Mathematics, Physics, Electrical Engineering and Computer Science (EE&CS), and Finance. SciEval (Sun et al., 2023) consists of a total of about 18,000 challenging scientific questions, spanning three important basic science fields: chemistry, physics and biology. SciBench (Wang et al., 2024) and OCWCourses (Lewkowycz et al., 2022) of
|
| 90 |
+
|
| 91 |
+
fer college-level physics questions in free-response formats, where SciBench contains multimodal information. In contrast, OlympiadBench escalates in difficulty, diversifies in question types, and surpasses in volume, setting a new benchmark for complexity and variety in the domain.
|
| 92 |
+
|
| 93 |
+
Multimodal Benchmarks. For assessing multimodal capability, works such as Geometry3K (Lu et al., 2021), GeoQA (Chen et al., 2021), GeoQA+ (Cao and Xiao, 2022), and UniGeo (Chen et al., 2022) have employed multimodal information for tackling geometric problems, integrating natural language descriptions with diagrams. ScienceQA (Lu et al., 2022), MMMU (Yue et al., 2023), CMMMU (Zhang et al., 2024b) and CMMU (He et al., 2024) are multimodal, multidiscipline evaluation sets, encompassing a broad range of subjects. MathVista (Lu et al., 2024) integrates 28 existing and 3 newly constructed multimodal datasets involving mathematics, aiming to establish a benchmark that encapsulates challenges from a variety of mathematical and visual tasks. However, it does not concentrate on delving into the complexity of mathematics problems.
|
| 94 |
+
|
| 95 |
+
In summary, we introduce a new benchmark to address these gaps. Table 1 presents a comparison between OlympiadBench and several related benchmarks, highlighting the significant advantages of OlympiadBench across all aspects.
|
| 96 |
+
|
| 97 |
+
# 3 The OlympiadBench Dataset
|
| 98 |
+
|
| 99 |
+
To evaluate the reasoning abilities of LLMs and LMMs in mathematics and physics problems, we have created OlympiadBench, a bilingual and multimodal scientific benchmark at the competition level. This section provides a detailed account of the construction process of OlympiadBench. Summarized statistics of the dataset is shown in Table 2, and more detailed statistics are in Appendix A.2.
|
| 100 |
+
|
| 101 |
+
# 3.1 Design Principle
|
| 102 |
+
|
| 103 |
+
The motivation behind OlympiadBench is to establish a benchmark that represents the pinnacle of human intellectual achievement, thereby encouraging researchers of large models to push the boundaries of mathematical and physical reasoning capabilities. We focus on curating challenges that epitomize the highest level of competition worldwide. Specifically, OlympiadBench includes:
|
| 104 |
+
|
| 105 |
+
1. Inclusion of Olympiad-Level Problems. We collect mathematics and physics problems
|
| 106 |
+
|
| 107 |
+
<table><tr><td rowspan="2">Benchmark</td><td colspan="2">Subject</td><td rowspan="2">Multi-modal</td><td rowspan="2">Detailed solution</td><td rowspan="2">Difficulty level</td><td colspan="2">Size</td><td rowspan="2">Answer type</td><td rowspan="2">Language type</td><td rowspan="2">Question type</td></tr><tr><td>Maths</td><td>Physics</td><td>Maths</td><td>Physics</td></tr><tr><td>SciBench</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>COL</td><td>217</td><td>295</td><td>Num</td><td>EN</td><td>OE</td></tr><tr><td>MMMU</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>COL</td><td>540</td><td>443</td><td>Num</td><td>EN</td><td>MC,OE</td></tr><tr><td>MathVista</td><td>✓</td><td></td><td>✓</td><td></td><td>-</td><td>1,000</td><td></td><td>Num</td><td>EN</td><td>MC,OE</td></tr><tr><td>ScienceQA</td><td></td><td>✓</td><td>✓</td><td></td><td>H</td><td></td><td>617</td><td></td><td>EN</td><td>MC</td></tr><tr><td>SciEval</td><td></td><td>✓</td><td></td><td></td><td>-</td><td></td><td>1,657</td><td>Num</td><td>EN</td><td>MC,FB,J</td></tr><tr><td>JEEBench</td><td>✓</td><td>✓</td><td></td><td>✓</td><td>CEE</td><td>236</td><td>123</td><td>Num</td><td>EN</td><td>MC,OE</td></tr><tr><td>MMLU</td><td>✓</td><td>✓</td><td></td><td></td><td>COL</td><td>948</td><td>548</td><td></td><td>EN</td><td>MC</td></tr><tr><td>AGIEval</td><td>✓</td><td>✓</td><td></td><td></td><td>CEE</td><td>953</td><td>200</td><td>Num</td><td>EN,ZH</td><td>MC,FB,OE</td></tr><tr><td>GSM8K</td><td>✓</td><td></td><td></td><td>✓</td><td>E</td><td>1,319</td><td></td><td>Num</td><td>EN</td><td>OE</td></tr><tr><td>MATH</td><td>✓</td><td></td><td></td><td>✓</td><td>COMP</td><td>5,000</td><td></td><td>Num,Exp,Tup</td><td>EN</td><td>OE</td></tr><tr><td>OlympiadBench</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>COMP</td><td>6,142</td><td>2,334</td><td>ALL</td><td>EN,ZH</td><td>OE</td></tr></table>
|
| 108 |
+
|
| 109 |
+
Table 1: For difficulty level, COMP: Competition, COL: College, CEE: College Entrance Examination, H: High School, E: Elementary School, and we picked the highest level; For answer type, Num: Numeric value, Exp: Expression, Equ: Equation, Int: Interval, Tup: Tuple; For language type, EN: English, ZH: Chinese; For question type, OE: Open-ended, MC: Multiple-choice, FB: Fill-in-the-blank, J: Judgement. For the statistical analysis of quantity and relevant metrics in AGIEval, we exclude 1,000 questions from the MATH benchmark to facilitate a more accurate comparison. The “-” indicates that it cannot be confirmed. Upon comparison, OlympiadBench leads in all aspects.
|
| 110 |
+
|
| 111 |
+
<table><tr><td>Statistics</td><td>Number</td></tr><tr><td>Total Problems</td><td>8,476</td></tr><tr><td>* Problems with images</td><td>4,869 (57%)</td></tr><tr><td>* Problems with solutions</td><td>8,476 (100%)</td></tr><tr><td>Difficulties (CEE: COMP)</td><td>66%: 34%</td></tr><tr><td>EN: ZH</td><td>2,125: 6,351</td></tr><tr><td>Open-ended Questions</td><td>6,728 (79%)</td></tr><tr><td>Theorem Proving</td><td>1,748 (21%)</td></tr><tr><td>Math: Physics</td><td>6,142: 2,334</td></tr><tr><td>* Maths with images</td><td>2,911</td></tr><tr><td>* Physics with images</td><td>1,958</td></tr><tr><td>Average question tokens</td><td>253</td></tr><tr><td>Max question tokens</td><td>3,745</td></tr><tr><td>Average solution tokens</td><td>347</td></tr><tr><td>Max solution tokens</td><td>4,223</td></tr></table>
|
| 112 |
+
|
| 113 |
+
Table 2: Statistics of OlympiadBench. When calculating tokens, images are not included.
|
| 114 |
+
|
| 115 |
+
from the International Olympiad competitions, which cater to the most outstanding high school students in a region. These problems are open-ended, differing from traditional multiple-choice or fill-in-the-blank formats. This selection aims to more accurately reflect the complexity of advanced scientific reasoning, providing insight into the actual reasoning process of the models.
|
| 116 |
+
|
| 117 |
+
2. Provision of Detailed Solutions. Given the advanced difficulty of these problems, which may exceed the comprehension of individuals
|
| 118 |
+
|
| 119 |
+
without a specialized background in mathematics, each problem is accompanied by expertly crafted solutions that detail the reasoning steps involved. This approach can not only reduces the difficulty of annotation and evaluation but also enhances the accuracy of the solutions provided. Furthermore, detailed expert-level solutions are valuable for research in model reasoning.
|
| 120 |
+
|
| 121 |
+
3. Incorporation of Visuals. Recognizing the crucial role of visual information in conveying complex ideas, OlympiadBench incorporates problems that require understanding images, identifying spatial relationships, and other advanced reasoning tasks. This inclusion aims to assess the model's capabilities in interpreting visual data as part of its reasoning process.
|
| 122 |
+
|
| 123 |
+
4. Minimization of Data Leakage Risks. To minimize the risk of data leakage, we have sourced problems from official Olympiad competitions, converting them from their original PDF files provided by official websites to the markdown format required. This strategy is aimed at reducing the likelihood of the data being inadvertently incorporated into the pre-training corpora of models.
|
| 124 |
+
|
| 125 |
+
Through these carefully designed criteria, OlympiadBench aims to not only challenge but also significantly advance the capabilities of
|
| 126 |
+
|
| 127 |
+
models in mathematical and physical reasoning.
|
| 128 |
+
|
| 129 |
+
# 3.2 Data Processing
|
| 130 |
+
|
| 131 |
+
The data processing pipeline is structured into three distinct phases: data collection, format conversion & dedduplication, and classification labeling.
|
| 132 |
+
|
| 133 |
+
Data Collection. OlympiadBench is meticulously compiled from three primary sources: Global Mathematics and Physics Olympiad Problems, Regional and National Chinese Math Competitions, and Gaokao Mock Questions for Mathematics and Physics $^{3}$ . Each chosen for its distinct advantages in creating a robust and comprehensive benchmark for evaluating LLMs and LMMs in mathematical and scientific reasoning. Their challenges progressively increase in difficulty, not only distinguishing the reasoning capabilities of models of various sizes but also offering guidance on scaling laws (Kaplan et al., 2020) for specialized models in these domains.
|
| 134 |
+
|
| 135 |
+
Format Conversion and Dedduplication. After collecting all PDF files, we utilize the Mathpix tool for OCR recognition and convert them into markdown format. However, no conversion process is flawless, necessitating manual verification by our team members between the original PDF files and the converted Markdown texts. The Markdown texts are further structured into a format akin to "Problem—Solution—Answer", employing its markup language for text organization. Subsequently, we leverage a specialized small-scale language model trained on mathematical symbol corpora for vectorizing the data and performing dedduplication based on cosine similarity.
|
| 136 |
+
|
| 137 |
+
Classification Labeling. We note that both mathematics and physics problems predominantly comprise two types of questions: the open-ended problems and the theorem proving problems. We also note that the dataset, enriched by both Olympiad and national examination questions, covers a broad spectrum of subfields, as illustrated in Figure 2. Therefore, we manually annotate each question with topic and problem type annotations.
|
| 138 |
+
|
| 139 |
+
# 3.3 Data Characteristics
|
| 140 |
+
|
| 141 |
+
In contrast to previous benchmarks, Olympiad-Bench unveils two unique characteristics within its dataset: the incorporation of Progressive Prob
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 2: Subfields Distribution of OlympiadBench
|
| 145 |
+
|
| 146 |
+
<table><tr><td>Answer type</td><td>Example</td></tr><tr><td>Numeric</td><td>1/4</td></tr><tr><td>Expression</td><td>x = (1/2)at2</td></tr><tr><td>Equation</td><td>x2 + y2 = 1</td></tr><tr><td>Tuple</td><td>(x, y, z) = (0, 0, 0)</td></tr><tr><td>Interval</td><td>(−∞, −1) ∪ (1, +∞)</td></tr></table>
|
| 147 |
+
|
| 148 |
+
Table 3: Examples of the five answer types
|
| 149 |
+
|
| 150 |
+
lems in Physics and the categorization of answers to most open-ended questions into a limited number of types.
|
| 151 |
+
|
| 152 |
+
Progressive Problems in Physics. In physics competitions such as the International Physics Olympiad (IPhO), problems are often structured around a common material or scenario, with subsequent questions potentially relying on the answers or information from previous questions. One example is given in Figure 10 and Figure 11. This design characteristic is commonly referred to as "progressive problems". By linking a series of questions together, progressive problems require participants to apply their knowledge and skills comprehensively to gradually solve more complex issues. This type of question design aims to test students' depth of understanding, application capabilities, and innovative thinking, rather than just basic knowledge. To better utilize this feature, we compile the material, questions, and their answers into the 'context' field for each set of progressive problems.
|
| 153 |
+
|
| 154 |
+
Answer Type Classification. Whether in mathematics or physics, the answers to problem requiring
|
| 155 |
+
|
| 156 |
+
definitive response can largely be categorized into the following types: numeric, expression, equation, interval, and tuple. Simple examples of these can be seen in Table 3.
|
| 157 |
+
|
| 158 |
+
# 3.4 Automatic Scoring Pipeline
|
| 159 |
+
|
| 160 |
+
We design an automated scoring pipeline (see Algorithm 1) to evaluate model-generated answers across complex fields like mathematics and physics, where answers vary from numbers to equations. This method simplifies answers into two categories: numeric values, handled through floating-point operations, and symbolic expressions, requiring symbolic computation.
|
| 161 |
+
|
| 162 |
+
For equations, we ensure all terms are on one side before dividing to check for mathematical equivalence. Intervals and tuples are compared by extracting and evaluating each element. Numeric answers are verified against a small tolerance of error, defaulting to 1e-8 but adjustable for physics problems to allow for a specific error margin. For expressions, we use the SymPy library to confirm if the subtraction of two expressions approaches zero, indicating correctness.
|
| 163 |
+
|
| 164 |
+
# 4 Experiments
|
| 165 |
+
|
| 166 |
+
# 4.1 Settings
|
| 167 |
+
|
| 168 |
+
We conduct evaluations of open-source and closed-sourced LMMs that have been selected with consideration of their comprehensive capabilities on OlympiadBench. At the same time, we have selected LLMs with strong mathematical and logical abilities for evaluation on text-only questions.
|
| 169 |
+
|
| 170 |
+
As no accurate automatic evaluation method for theorem proving exists, we run full experiment on the automatic-scoring-available open-ended problems with answer type included in the Table 3, which is discussed in this section. We do manual sampling check of GPT-4V for theorem proving problems with analysis reported at Section 5.1.
|
| 171 |
+
|
| 172 |
+
# 4.1.1 Prompts
|
| 173 |
+
|
| 174 |
+
We evaluate the models in a zero-shot setting. Due to the high difficulty of the OlympiadBench questions, there should be considerable randomness in the results when using small batch data as the validation set, so we directly use a specific prompt template for all models instead of conducting prompt-engineering for each model respectively. The
|
| 175 |
+
|
| 176 |
+
prompt template for English and Chinese open-ended questions is shown in the figure 3. To ensure the most complete extraction of the model's final results, we explicitly prescribe the types and formats of the answers in the prompt to promote the accuracy of the machine's automatic scoring. In order to test the native mathematical and physical abilities of the models, the prompts used in the test do not introduce knowledge points and other extra information contained in the dataset, but this information can be applied in subsequent research. Note that deepseek-math-7B-RL (Shao et al., 2024) requires the addition of a specific chain-of-thought prompt at the end of the input, which we adhered to during the evaluation.
|
| 177 |
+
|
| 178 |
+
# 4.1.2 Evaluation Workflow
|
| 179 |
+
|
| 180 |
+
We first apply each model to generate answers for questions in OlympiadBench using prompts formed by prompt template, with open-source models running on NVIDIA A800 GPUs. Then, we run the automatic scoring pipeline to judge the correctness of the answers as described in subsection 3.4. Finally, we calculate the micro-average accuracy as the comparing metric. The code of the whole workflow is provided in the supplementary material.
|
| 181 |
+
|
| 182 |
+
# 4.2 Baselines
|
| 183 |
+
|
| 184 |
+
In our study, we evaluate the performance of current leading bilingual large multimodal models (LMMs), as well as bilingual large language models (LLMs) that has strong mathematical and reasoning abilities. We take both open- and closed-source models into consideration, using either the largest and latest released checkpoints or the best-performing official APIs available.
|
| 185 |
+
|
| 186 |
+
For LMMs, we select GPT-4V(GPT-4-Vision) (OpenAI, 2023b), Gemini-ProVision (Team, 2023), Qwen-VL-Max (Bai et al., 2023) for closed-source models, while YiVL-34B (01-ai, 2024) and LLaVA-NeXT-34B (Liu et al., 2024) for open-source models. For models that demand compulsory image input, we take their LMM counterpart (corresponding text-model API or base LLM) for evaluation. Specifically, for LLaVA-NeXT-34B, we use its base LLM, Nous-Hermes-2-Yi-34B (NousResearch, 2023). The text model corresponding to Yi-VL-34B is Yi-34B-Chat (01-ai, 2023). Similarly, for the Gemini-Pro-Vision, we utilize the Gemini-Pro API interface. To examine the impact of replacing LMM with base LLM for processing text-only
|
| 187 |
+
|
| 188 |
+
The following is a question from an International <subject> competition.
|
| 189 |
+
|
| 190 |
+
The answer of the question should be <ans_type>.
|
| 191 |
+
|
| 192 |
+
The question has multiple answers, each of them should be <ans_type>.
|
| 193 |
+
|
| 194 |
+
The question has multiple answers, with the answers in order being <ans_type>,...<ans_type>.
|
| 195 |
+
|
| 196 |
+
Please calculate the answer according to the given requirements and the information provided. Please use LaTeX format to represent the variables and formulas used in the solution process and results. Please end your solution with
|
| 197 |
+
|
| 198 |
+
"So the final answer is \boxed{answer}."
|
| 199 |
+
|
| 200 |
+
"So the final answer is \boxed{multiple answers connected with commas}.
|
| 201 |
+
|
| 202 |
+
and give the result explicitly.
|
| 203 |
+
|
| 204 |
+
Single answer of the type "tuple"
|
| 205 |
+
|
| 206 |
+
Single answer
|
| 207 |
+
|
| 208 |
+
Multiple answers of single type
|
| 209 |
+
|
| 210 |
+
Multiple answers of the same type
|
| 211 |
+
|
| 212 |
+
Single answer
|
| 213 |
+
|
| 214 |
+
Multiple answers
|
| 215 |
+
|
| 216 |
+
以下是中国<subject>竞赛中的解答题。
|
| 217 |
+
|
| 218 |
+
答案类型为<ans_type>。
|
| 219 |
+
|
| 220 |
+
题目有多个答案,答案类型均为<ans_type>。
|
| 221 |
+
|
| 222 |
+
题目有多个答案,答案类型分别为<ans_type>、...<ans_type>。
|
| 223 |
+
|
| 224 |
+
请根据题目的要求和所提供的信息计算得出答案。解答过程和结果中使用的变量和公式请使用LaTeX格式表示。
|
| 225 |
+
请在最后以
|
| 226 |
+
|
| 227 |
+
“所以最终答案是\boxed{答案}。”
|
| 228 |
+
|
| 229 |
+
“所以最终答案是\boxed{用英文逗号连接的多个答案}。”
|
| 230 |
+
|
| 231 |
+
显式给出结果。
|
| 232 |
+
|
| 233 |
+
Figure 3: The template of the construction of the prompt for English(left) and Chinese(right) open-ended questions, among which <subject>, <ans_type>, and whether there are multiple answers can all be obtained from the data items in OlympiadBench dataset.
|
| 234 |
+
|
| 235 |
+
data, we subsequently compare the performance differences between GPT-4V and GPT-4 $^{6}$ on text-only questions in OlympiadBench.
|
| 236 |
+
|
| 237 |
+
For LLMs, we select DeepSeekMath-7BRL (Shao et al., 2024) as the primary baseline for text-only questions, and report the results of the selected LMMs (or their LLM counterparts) on the text-only questions for comparison, and additionally evaluate GPT-4 as described above.
|
| 238 |
+
|
| 239 |
+
# 4.3 Main Results
|
| 240 |
+
|
| 241 |
+
The overall experiment result is shown in table 4. Based on the results, our key findings can be summarized as the following:
|
| 242 |
+
|
| 243 |
+
OlympiadBench is more challenging than existing benchmarks, which provides new perspective to compare LMMs. As shown in table 7, the most advanced model only achieves an average accuracy of $17.97\%$ on OlympiadBench, which is much lower than that of existing benchmarks. Moreover, the gap between the models has been widened, thereby becoming more significant, which helps people to compare the differences in capabilities between different models more accurately.
|
| 244 |
+
|
| 245 |
+
There still exists a huge difference between the most powerful closed-source models and open-source models, but a large model size is needed. The average accuracy of GPT-4V is more than 5 times larger than the best-performing open-source model (Yi-VL-34B). But Gemini-ProVision, being closed-source models of the second-tier size, is much less compatible on complicated tasks such as OlympiadBench, for it achieves an average accuracy that is only slightly higher than open-source model.
|
| 246 |
+
|
| 247 |
+
The challenge lies more on question-with-images, Physics and none-English text. The model performance on text-only questions is significantly above average, showing the challenging spirit of multi-modal questions. Meanwhile, Physics questions, especially Physics questions with images, are more challenging than math questions, as they require knowledge of the laws of Physics as well as other world knowledge besides mathematical abilities such as calculation and reasoning. Moreover, LMMs with a focus on bilingual image-text training data, such as Qwen-VL-Max and Yi-VL-34B, perform better on Chinese questions then English questions.
|
| 248 |
+
|
| 249 |
+
Open source LLMs is catching at fast speed in the area of maths and physics. Although with a relatively small size, DeepSeekMath-7BRL outperforms or is on par with Gemini-ProVision and Qwen-VL-Max on the text-only part of OlympiadBench, especially in Math problems, showing promising future of open-source model of pre-training and fine-tuning on fine-grained mathematical and reasoning data.
|
| 250 |
+
|
| 251 |
+
Multi-modal training slightly hurts performance on text-only math and physics tasks, but may also bring some improvement. The text-only version GPT-4 performs slightly better on all datasets of OlympiadBench, except for the En_COMP dataset. We hypothesis that the improvement in the En_COMP dataset shows an enhancement of long-context text reasoning capabilities, which is discussed in Appendix B.2.
|
| 252 |
+
|
| 253 |
+
# 5 Analysis
|
| 254 |
+
|
| 255 |
+
In this section, we conduct analysis on the GPT-4V's answers of specific open-ended questions that have been sampled, as well as giving preliminary
|
| 256 |
+
|
| 257 |
+
<table><tr><td rowspan="2">Models</td><td colspan="4">Maths</td><td colspan="3">Physics</td><td rowspan="2">Avg.</td></tr><tr><td>En_COMP</td><td>Zh_COMP</td><td>ZhCEE</td><td>Avg.</td><td>En_COMP</td><td>ZhCEE</td><td>Avg.</td></tr><tr><td>LLaVA-NeXT-34B†</td><td>3.98</td><td>2.60</td><td>4.64</td><td>4.30</td><td>-</td><td>1.36</td><td>2.32</td><td>2.08</td></tr><tr><td>Yi-VL-34B†</td><td>4.22</td><td>3.68</td><td>4.31</td><td>4.23</td><td>-</td><td>0.91</td><td>1.64</td><td>1.46</td></tr><tr><td>Gemini-Pro-Vision</td><td>6.92</td><td>2.59</td><td>5.05*</td><td>5.14</td><td>-</td><td>3.19*</td><td>2.12</td><td>2.45</td></tr><tr><td>Qwen-VL-Max</td><td>10.68</td><td>13.21*</td><td>13.08</td><td>12.65</td><td>-</td><td>3.76*</td><td>5.64*</td><td>5.09</td></tr><tr><td>GPT-4V</td><td>27.18</td><td>14.87</td><td>21.27</td><td>21.70</td><td>-</td><td>11.42</td><td>10.45</td><td>10.74</td></tr><tr><td colspan="9">Experiment with text-only</td></tr><tr><td>LLaVA-NeXT-34B</td><td>4.15</td><td>2.94</td><td>8.55</td><td>6.29</td><td>-</td><td>2.12</td><td>5.22</td><td>3.13</td></tr><tr><td>Yi-VL-34B</td><td>4.45</td><td>3.68</td><td>8.06</td><td>6.24</td><td>-</td><td>0.85</td><td>5.22</td><td>2.28</td></tr><tr><td>DeepSeekMath-7B-RL</td><td>19.44</td><td>2.70</td><td>22.42</td><td>18.09</td><td>-</td><td>6.78</td><td>16.52</td><td>9.97</td></tr><tr><td>Gemini-Pro-Vision</td><td>7.57</td><td>2.94</td><td>9.20*</td><td>7.63</td><td>-</td><td>4.66</td><td>6.96</td><td>5.41</td></tr><tr><td>Qwen-VL-Max</td><td>11.57</td><td>14.29</td><td>25.89</td><td>19.70</td><td>-</td><td>4.24</td><td>18.26</td><td>8.83</td></tr><tr><td>GPT-4V</td><td>28.93</td><td>15.93</td><td>37.10</td><td>31.01</td><td>-</td><td>12.71</td><td>23.48</td><td>16.24</td></tr><tr><td>GPT-4</td><td>30.42</td><td>16.42</td><td>37.98</td><td>32.00</td><td>-</td><td>12.29</td><td>24.35</td><td>16.24</td></tr></table>
|
| 258 |
+
|
| 259 |
+
Table 4: Experimental results. En_COMP: COMP problems in English, Zh_COMP: COMP problems in Chinese, ZhCEE: CEE problems in Chinese. For closed-source models, the responses for some problems are not available, we mark the results with * (all of the proportion of missing answers are less than 1%, except for the result of Qwen-VL-Max in Physics-En_COMP, where 26 questions exceed maximum input length). The causes are further described in Appendix B.3. Moreover, LLaVA-NeXT-34B and Yi-VL-34B only accepts input with single image, we mark results from only one image input with †.
|
| 260 |
+
|
| 261 |
+
examination of theorem proving questions.
|
| 262 |
+
|
| 263 |
+
# 5.1 Examination of Theorem Proving Questions
|
| 264 |
+
|
| 265 |
+
For GPT-4V, we do manual sampling check to evaluate the mathematical theorem proving questions. In the questions drawn according to the knowledge point distribution, GPT-4V only answers 6 out of 81 questions correctly in Math-Zh_COMP, all of which are relatively simple and classic conclusions (e.g. AM-GM inequality), or involved only simple computational derivations, and was basically unable to complete the proof within the token limitation in Math-En_COMP, indicating that existing models still cannot effectively solve lengthy reasoning and proofs, which is consistent with the conclusions in existing papers (Trinh et al., 2024).
|
| 266 |
+
|
| 267 |
+
In solving proof problems, GPT-4V exposes several important issues, including: inability to fully utilize image information (figure 9 as an example); tending to make mistakes in simplifying and transforming algebraic expressions; proposing simple, basic incorrect conclusions; struggling with classification discussions, etc. Detailed examples can be found in the Appendix C.
|
| 268 |
+
|
| 269 |
+
# 5.2 Mistake Analysis of GPT-4V
|
| 270 |
+
|
| 271 |
+
We manually sample and check 97 maths (55 for English and 42 for Chinese) and 67 physics Olympiad-level open-ended problems that GPT-
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
Figure 4: Distribution of the error occurring in GPT-4V's solving process of 164 sampled Olympic-level open-ended problems.
|
| 275 |
+
|
| 276 |
+
4V fails, and analyze the type of mistakes, the overall results are shown in figure 4. In maths problems, the typical errors of GPT-4V include: insufficient classification discussion, especially in combinatorial problems; poor performance in problems requiring large calculations (e.g. conic curve problems), manifests as a lack of logic in the calculation process, resulting in the model being unable to provide a reasonable answer. However, we also found that GPT-4V has strong abilities in solving quadratic equations and derivative problems. In physics problems, GPT-4V tends to fall in conceptual confusion, or introduce unnecessary variables or concepts, but its capability to simplify and transform algebraic expressions is stronger than in purely mathematical situations, with nearly no numerical calculation errors.
|
| 277 |
+
|
| 278 |
+
# 6 Discussion and Future Work
|
| 279 |
+
|
| 280 |
+
Here, we discuss the automated evaluation of theorem problems and the future research directions in advanced disciplines.
|
| 281 |
+
|
| 282 |
+
Evaluation of Theorem's Proof Problems. The inability to automatically evaluate theorem's proof problems remains a significant challenge today. Currently, mainstream methods for the automatic evaluation of proofs require formalization, necessitating domain expertise and background knowledge. Exploring how to automatically evaluate natural language proofs represents an important research direction. Our dataset includes expert-level comprehensive annotations in a fusion of natural language and LaTeX formats, making it a high-quality resource for research in natural language proof problems and fostering further development.
|
| 283 |
+
|
| 284 |
+
Expansion of Disciplines. Mathematics, much like physics, serves as a litmus test for artificial intelligence, requiring a strong foundational knowledge, rigorous high-level computations, and precise logical reasoning. Currently, large models still face significant challenges in mathematics and physics, which are critical hurdles that must be overcome for the development of AGI. In our future work, we will integrate additional fields such as geography, biology, and chemistry to provide a more innovative and comprehensive evaluation of a model's reasoning capabilities.
|
| 285 |
+
|
| 286 |
+
# 7 Conclusion
|
| 287 |
+
|
| 288 |
+
We create OlympiadBench, an Olympiad-level bilingual multimodal scientific benchmark to assess the capabilities of large models in mathematics and physics reasoning. Each problem is detailed with expert-level annotations for step-by-step reasoning. In our benchmarking, we provide a detailed analysis of model performance, pinpointing prevalent error types and potential areas for enhancement. This significant and challenging effort fills a notable void, and we intend to open-source the benchmark to advance AGI and scientific reasoning research. Future efforts will focus on gathering more challenging questions and broadening the range of subjects to further develop rigorous scientific benchmarks.
|
| 289 |
+
|
| 290 |
+
# Acknowledgements
|
| 291 |
+
|
| 292 |
+
This work is supported by the National Key R&D Program of China (No.2022ZD0116312), National Natural Science Foundation of China (No.
|
| 293 |
+
|
| 294 |
+
62236004), Quan Cheng Laboratory (Grant No. QCLZD202301) and Institute Guo Qiang at Tsinghua University.
|
| 295 |
+
|
| 296 |
+
# Ethical Considerations
|
| 297 |
+
|
| 298 |
+
In this paper, we introduce OlympiadBench, a highly challenging bilingual, multimodal scientific benchmark aimed at evaluating the mathematical and physical reasoning of large models now and AGI in the future. The paper outlines the dataset construction, including data gathering, OCR processing, cleansing, deduplication, and detailed annotation. OlympiadBench's data, derived exclusively from official sources, substantially reduces the likelihood of pre-training data leakage. We offer precise annotations for each problem and have implemented an exhaustive evaluation script for more accurate model performance assessment. Additionally, being bilingual and providing expert-level reasoning annotations for every question, OlympiadBench serves as a crucial resource for propelling AGI's prowess in scientific reasoning. Committed to environmental sustainability, we intend to release the dataset and accompanying scripts publicly to cut down on unnecessary carbon footprint. In experiments, we comply with all licenses for models and data.
|
| 299 |
+
|
| 300 |
+
# Limitations
|
| 301 |
+
|
| 302 |
+
In pursuit of understanding the logical reasoning abilities of LLMs and LMMs within the multimodal domains of mathematics and physics, we develop OlympiadBench, a challenging bilingual multimodal scientific benchmark. Despite filling a notable void, this work acknowledges inherent limitations. First, in the OlympiadBench, some questions feature answers that require categorical discussions or textual descriptions, such as proofs, which currently cannot be assessed using regular expressions or tools like SymPy at the code level and necessitate manual review. However, this data holds significant research value. Secondly, the automated scoring system we propose cannot perform specific analysis based on the particulars of each question. It makes logical judgments solely based on the two symbols or numerical expressions inputted, without integrating any special constraints that may exist within the actual problem context. What's more, the development of datasets for multimodal scientific reasoning requires extensive manual effort in gathering and annotating data,
|
| 303 |
+
|
| 304 |
+
which constrains the diversity and difficulty of multimodal scientific challenges. As a result, this hampers AI's capacity to learn from and address more intricate scenarios.
|
| 305 |
+
|
| 306 |
+
# References
|
| 307 |
+
|
| 308 |
+
01-ai. 2023. Yi-34b-chat model card.
|
| 309 |
+
|
| 310 |
+
01-ai. 2024. Yi-vl-34b model card.
|
| 311 |
+
|
| 312 |
+
Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. 2019. MathQA: Towards interpretable math word problem solving with operation-based formalisms. 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 2357-2367, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 313 |
+
Daman Arora, Himanshu Gaurav Singh, and Mausam. 2023. Have llms advanced enough? a challenging problem solving benchmark for large language models.
|
| 314 |
+
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.
|
| 315 |
+
Daniel Bobrow et al. 1964. Natural language input for a computer problem solving system.
|
| 316 |
+
Sebastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, Harsha Nori, Hamid Palangi, Marco Tulio Ribeiro, and Yi Zhang. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4.
|
| 317 |
+
Jie Cao and Jing Xiao. 2022. An augmented benchmark dataset for geometric question answering through dual parallel text encoding. In Proceedings of the 29th International Conference on Computational Linguistics, pages 1511-1520, Gyeongju, Republic of Korea. International Committee on Computational Linguistics.
|
| 318 |
+
Jiaqi Chen, Tong Li, Jinghui Qin, Pan Lu, Liang Lin, Chongyu Chen, and Xiaodan Liang. 2022. UniGeo: Unifying geometry logical reasoning via reformulating mathematical expression. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3313-3323, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 319 |
+
Jiaqi Chen, Jianheng Tang, Jinghui Qin, Xiaodan Liang, Lingbo Liu, Eric Xing, and Liang Lin. 2021. GeoQA: A geometric question answering benchmark towards multimodal numerical reasoning. In Findings of
|
| 320 |
+
|
| 321 |
+
the Association for Computational Linguistics: ACLIJCNLP 2021, pages 513-523, Online. Association for Computational Linguistics.
|
| 322 |
+
Wenhu Chen, Ming Yin, Max Ku, Pan Lu, Yixin Wan, Xueguang Ma, Jianyu Xu, Xinyi Wang, and Tony Xia. 2023. TheoremQA: A theorem-driven question answering dataset. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7889-7901, Singapore. Association for Computational Linguistics.
|
| 323 |
+
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.
|
| 324 |
+
Katherine M Collins, Albert Q Jiang, Simon Frieder, Lionel Wong, Miri Zilka, Umang Bhatt, Thomas Lukasiewicz, Yuhuai Wu, Joshua B Tenenbaum, William Hart, et al. 2023. Evaluating language models for mathematics through interactions. arXiv preprint arXiv:2306.01694.
|
| 325 |
+
Simon Frieder, Luca Pinchetti, Alexis Chevalier, Ryan-Rhys Griffiths, Tommaso Salvatori, Thomas Lukasiewicz, Philipp Christian Petersen, and Julius Berner. 2023. Mathematical capabilities of chatgpt.
|
| 326 |
+
Zheqi He, Xinya Wu, Pengfei Zhou, Richeng Xuan, Guang Liu, Xi Yang, Qiannan Zhu, and Hua Huang. 2024. Cmmu: A benchmark for chinese multi-modal multi-type question understanding and reasoning.
|
| 327 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.
|
| 328 |
+
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874.
|
| 329 |
+
Jinchang Hou, Chang Ao, Haihong Wu, Xiangtao Kong, Zhigang Zheng, Daijia Tang, Chengming Li, Xiping Hu, Ruifeng Xu, Shiwen Ni, and Min Yang. 2024. E-eval: A comprehensive chinese k-12 education evaluation benchmark for large language models.
|
| 330 |
+
Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Jiayi Lei, Yao Fu, Maosong Sun, and Junxian He. 2023. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models.
|
| 331 |
+
Albert Q. Jiang, Sean Welleck, Jin Peng Zhou, Wenda Li, Jiacheng Liu, Mateja Jamnik, Timothee Lacroix, Yuhuai Wu, and Guillaume Lample. 2023. Draft, sketch, and prove: Guiding formal theorem provers with informal proofs.
|
| 332 |
+
|
| 333 |
+
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models.
|
| 334 |
+
Rik Koncel-Kedziorski, Subhro Roy, Aida Amini, Nate Kushman, and Hannaneh Hajishirzi. 2016. MAwPS: A math word problem repository. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1152-1157, San Diego, California. Association for Computational Linguistics.
|
| 335 |
+
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. 2022. Solving quantitative reasoning problems with language models.
|
| 336 |
+
Wang Ling, Dani Yogatama, Chris Dyer, and Phil Blun-. som. 2017. Program induction by rationale generation: Learning to solve and explain algebraic word problems. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 158-167, Vancouver, Canada. Association for Computational Linguistics.
|
| 337 |
+
Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, and Yong Jae Lee. 2024. Llavanext: Improved reasoning,OCR, and world knowledge.
|
| 338 |
+
Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual instruction tuning. arXiv preprint arXiv:2304.08485.
|
| 339 |
+
Pan Lu, Hritik Bansal, Tony Xia, Jiacheng Liu, Chunyuan Li, Hannaneh Hajishirzi, Hao Cheng, KaiWei Chang, Michel Galley, and Jianfeng Gao. 2024. Mathvista: Evaluating mathematical reasoning of foundation models in visual contexts. In International Conference on Learning Representations (ICLR).
|
| 340 |
+
Pan Lu, Ran Gong, Shibiao Jiang, Liang Qiu, Siyuan Huang, Xiaodan Liang, and Song-Chun Zhu. 2021. Inter-GPS: Interpretable geometry problem solving with formal language and symbolic reasoning. 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 6774-6786, Online. Association for Computational Linguistics.
|
| 341 |
+
Pan Lu, Swaroop Mishra, Tony Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. 2022. Learn to explain: Multimodal reasoning via thought chains for science question answering. In The 36th Conference on Neural Information Processing Systems (NeurIPS).
|
| 342 |
+
Pan Lu, Liang Qiu, Wenhao Yu, Sean Welleck, and Kai-Wei Chang. 2023. A survey of deep learning for mathematical reasoning.
|
| 343 |
+
|
| 344 |
+
Ha-Thanh Nguyen. 2023. A brief report on lawgpt 1.0: A virtual legal assistant based on gpt-3. arXiv preprint arXiv:2302.05729.
|
| 345 |
+
NousResearch. 2023. Nous-hermes-2-yi-34b model card.
|
| 346 |
+
OpenAI. 2023a. Gpt-4 technical report.
|
| 347 |
+
OpenAI. 2023b. Gpt-4v(ision) system card.
|
| 348 |
+
Jielin Qiu, William Han, Jiacheng Zhu, Mengdi Xu, Michael Rosenberg, Emerson Liu, Douglas Weber, and Ding Zhao. 2023. Transfer knowledge from natural language to electrocardiography: Can we detect cardiovascular disease through language models? arXiv preprint arXiv:2301.09017.
|
| 349 |
+
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models.
|
| 350 |
+
Liangtai Sun, Yang Han, Zihan Zhao, Da Ma, Zhennan Shen, Baocai Chen, Lu Chen, and Kai Yu. 2023. Sci-eval: A multi-level large language model evaluation benchmark for scientific research.
|
| 351 |
+
Gemini Team. 2023. Gemini: A family of highly capable multimodal models.
|
| 352 |
+
Trieu H Trinh, Yuhuai Wu, Quoc V Le, He He, and Thang Luong. 2024. Solving olympiad geometry without human demonstrations. Nature, 625(7995):476-482.
|
| 353 |
+
Xiaoxuan Wang, Ziniu Hu, Pan Lu, Yanqiao Zhu, Jieyu Zhang, Satyen Subramaniam, Arjun R. Loomba, Shichang Zhang, Yizhou Sun, and Wei Wang. 2024. Scibench: Evaluating college-level scientific problem-solving abilities of large language models.
|
| 354 |
+
Yan Wang, Xiaojiang Liu, and Shuming Shi. 2017. Deep neural solver for math word problems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 845-854, Copenhagen, Denmark. Association for Computational Linguistics.
|
| 355 |
+
Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, Ed H. Chi, Tatsunori Hashimoto, Oriol Vinyals, Percy Liang, Jeff Dean, and William Fedus. 2022. Emergent abilities of large language models.
|
| 356 |
+
Tianwen Wei, Jian Luan, Wei Liu, Shuang Dong, and Bin Wang. 2023. Cmath: Can your language model pass chinese elementary school math test?
|
| 357 |
+
Johannes Welbl, Nelson F. Liu, and Matt Gardner. 2017. Crowdsourcing multiple choice science questions. In Proceedings of the 3rd Workshop on Noisy User-generated Text, pages 94-106, Copenhagen, Denmark. Association for Computational Linguistics.
|
| 358 |
+
|
| 359 |
+
Sean Welleck, Jiacheng Liu, Ronan Le Bras, Hannaneh Hajishirzi, Yejin Choi, and Kyunghyun Cho. 2021. Naturalproofs: Mathematical theorem proving in natural language.
|
| 360 |
+
Xiang Yue, Yuansheng Ni, Kai Zhang, Tianyu Zheng, Ruoqi Liu, Ge Zhang, Samuel Stevens, Dongfu Jiang, Weiming Ren, Yuxuan Sun, Cong Wei, Botao Yu, Ruibin Yuan, Renliang Sun, Ming Yin, Boyuan Zheng, Zhenzhu Yang, Yibo Liu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. 2023. Mmmu: A massive multi-discipline multimodal understanding and reasoning benchmark for expert agi.
|
| 361 |
+
Daoguang Zan, Bei Chen, Fengji Zhang, Dianjie Lu, Bingchao Wu, Bei Guan, Wang Yongji, and JianGuang Lou. 2023. Large language models meet NL2Code: A survey. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7443- 7464, Toronto, Canada. Association for Computational Linguistics.
|
| 362 |
+
Cedegao E Zhang, Katherine M Collins, Adrian Weller, and Joshua B Tenenbaum. 2023. Ai for mathematics: A cognitive science perspective. arXiv preprint arXiv:2310.13021.
|
| 363 |
+
Duzhen Zhang, Yahan Yu, Chenxing Li, Jiahua Dong, Dan Su, Chenhui Chu, and Dong Yu. 2024a. Mllms: Recent advances in multimodal large language models.
|
| 364 |
+
Ge Zhang, Xinrun Du, Bei Chen, Yiming Liang, Tongxu Luo, Tianyu Zheng, Kang Zhu, Yuyang Cheng, Chunpu Xu, Shuyue Guo, Haoran Zhang, Xingwei Qu, Junjie Wang, Ruibin Yuan, Yizhi Li, Zekun Wang, Yudong Liu, Yu-Hsuan Tsai, Fengji Zhang, Chenghua Lin, Wenhao Huang, Wenhu Chen, and Jie Fu. 2024b. Cmmmu: A chinese massive multidiscipline multimodal understanding benchmark.
|
| 365 |
+
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen. 2023. A survey of large language models.
|
| 366 |
+
Kunhao Zheng, Jesse Michael Han, and Stanislas Polu. 2022. Minif2f: a cross-system benchmark for formal olympiad-level mathematics.
|
| 367 |
+
Aojun Zhou, Ke Wang, Zimu Lu, Weikang Shi, Sichun Luo, Zipeng Qin, Shaoqing Lu, Anya Jia, Linqi Song, Mingjie Zhan, and Hongsheng Li. 2023. Solving challenging math word problems using gpt-4 code interpreter with code-based self-verification.
|
| 368 |
+
|
| 369 |
+
# A Dataset Details
|
| 370 |
+
|
| 371 |
+
# A.1 Data Sources
|
| 372 |
+
|
| 373 |
+
Our data sources can be split into the following three parts:
|
| 374 |
+
|
| 375 |
+
1. Global Mathematics and Physics Olympiad Problems. The Mathematics and Physics Olympiad problems are globally recognized for their complexity and quality. These problems often require multiple methods of solution and the ability to integrate sub-disciplines from within the broader fields of mathematics and physics. The participants in these competitions represent some of the most proficient individuals worldwide in logical reasoning within mathematics and physics. This not only sets a high standard for problem-solving but also fosters a diverse set of analytical skills that are crucial for the advancement of large models.
|
| 376 |
+
2. Regional and National Chinese Mathematics Competitions. In addition to maintaining a high level of difficulty, regional competitions and the CMO introduce elements specific to the Chinese context. This inclusion is instrumental in furthering the development and research of Chinese-oriented and multilingual large models. By encompassing a wide array of mathematics and physics problems, these competitions provide a unique opportunity to develop models that are adaptable and proficient across different mathematical queries, enhancing their versatility and effectiveness.
|
| 377 |
+
3. Gaokao Mock Questions for Mathematics and Physics. Given that the resolution of Olympiad-level problems typically necessitates models with substantial parameter sizes, we also incorporate Gaokao simulation problems to evaluate smaller models' capabilities in answering free-form mathematics and physics questions.
|
| 378 |
+
|
| 379 |
+
The integration of data from Gaokao simulation problems, regional and national competitions, to the global Olympiads constructs a smooth difficulty transition curve. This methodology not only distinguishes the mathematical and physical problem-solving capabilities of different models but also provides guidance on the scaling laws for models specialized in these domains.
|
| 380 |
+
|
| 381 |
+
<table><tr><td>Subject</td><td>Source</td><td>Coverage Years</td><td>Number</td></tr><tr><td rowspan="5">Maths</td><td>IMO</td><td>2006-2022</td><td>509</td></tr><tr><td>RMM</td><td>2011, 2013, 2015-2019, 2021, 2023</td><td>53</td></tr><tr><td>ARML</td><td>2009-2014, 2019, 2023</td><td>505</td></tr><tr><td>EMC</td><td>1998-2023</td><td>364</td></tr><tr><td>EGMO</td><td>2013, 2015-2023</td><td>64</td></tr><tr><td rowspan="6">Physics</td><td>IPHo</td><td>1984, 1986-1990, 2008-2012, 2014-2016, 2018-2019, 2021</td><td>381</td></tr><tr><td>APHo</td><td>2013-2015</td><td>200</td></tr><tr><td>EPhO</td><td>2019-2022</td><td>17</td></tr><tr><td>USAPhO</td><td>2017-2021</td><td>113</td></tr><tr><td>PUPC</td><td>2020-2022</td><td>65</td></tr><tr><td>OPHo</td><td>2020-2023</td><td>132</td></tr></table>
|
| 382 |
+
|
| 383 |
+
Table 5: Summary of Problems in Math and Physics Competitions, with full acronyms listed in the Table 6
|
| 384 |
+
|
| 385 |
+
# A.2 Data Curation Process
|
| 386 |
+
|
| 387 |
+
Our initial step involves a comprehensive survey of well-known Olympiad competitions, and the list of which is accessible through the AoPS community platform<sup>7</sup>. We cataloged these competitions based on several criteria: difficulty level, volume of questions, availability of materials in public domains, language, discipline, and coverage years. Following the design principles outlined in Section 3.1, we meticulously select specific contests and years that not only adhere to our dataset design criteria but also try to span the widest possible range of years (Table 5).
|
| 388 |
+
|
| 389 |
+
In the format conversion phase, we also manually annotated the subfield of each question in maths or physics, with their distribution detailed in Table 9.
|
| 390 |
+
|
| 391 |
+
# A.3 Example of Progressive Problem in Physics
|
| 392 |
+
|
| 393 |
+
Figures 10 and 11 present a sequential challenge from the International Physics Olympiad (IPHo) 2021, illustrating the intricacies of progressive problem-solving in a competitive context. This particular problem set exemplifies a common trait in advanced physics competitions: the dependency of many questions on the solutions and materials of preceding ones. These dependencies are sometimes explicit, but most are implicit, weaving a complex web of interconnected knowledge and reasoning.
|
| 394 |
+
|
| 395 |
+
An explicit instance of this dependency can be observed in problem C.2, where the prompt directly requires the use of the symbol $\beta$ defined in B.1 for the calculation of an unknown quantity. This re
|
| 396 |
+
|
| 397 |
+
requirement not only tests the participants' ability to understand and apply physical concepts but also assesses their skill in navigating through and linking various parts of a problem set. Such explicit instructions are crucial for guiding participants through the logical progression of the problems, yet the majority of dependencies remain implicit, demanding a deeper level of comprehension and integration of the material.
|
| 398 |
+
|
| 399 |
+
This structure of problem-solving reflects a realistic scientific inquiry, where discoveries and solutions often rely on previously established knowledge. The explicit mention of $\beta$ in C.2 as derived from B.1 is emblematic of this educational approach, aiming to foster a holistic understanding and the ability to build upon existing information to solve complex problems. It underscores the importance of thorough comprehension of earlier sections for successful problem-solving in later sections, simulating real-world scientific challenges where new solutions are often predicated on a foundation of established knowledge.
|
| 400 |
+
|
| 401 |
+
# B Evaluation Details
|
| 402 |
+
|
| 403 |
+
# B.1 Details of the Evaluated Models
|
| 404 |
+
|
| 405 |
+
# B.1.1 LMMs
|
| 406 |
+
|
| 407 |
+
We have selected current mainstream LMMs that have performed the best on past scientific multimodal datasets for evaluation.
|
| 408 |
+
|
| 409 |
+
The closed-source models include: GPT-4V (OpenAI, 2023b), developed by OpenAI, which is currently the most powerful multimodal model. Gemini (Team, 2023) is the LMM series developed by Google Deepmind, with Gemini-UltraVision being purported to have surpassed GPT-4V
|
| 410 |
+
|
| 411 |
+
<table><tr><td>Subject</td><td>Acronym</td><td>Full name</td></tr><tr><td rowspan="5">Maths</td><td>IMO</td><td>International Mathematical Olympiad</td></tr><tr><td>RMM</td><td>Romanian Master of Mathematics</td></tr><tr><td>ARML</td><td>American Regions Mathematics League</td></tr><tr><td>EMC</td><td>Euclid Mathematics Competition</td></tr><tr><td>EGMO</td><td>European Girls’ Mathematical Olympiad</td></tr><tr><td rowspan="6">Physics</td><td>IPhO</td><td>International Physics Olympiad</td></tr><tr><td>APhO</td><td>Asian Physics Olympiad</td></tr><tr><td>EPhO</td><td>European Physics Olympiad</td></tr><tr><td>USAPhO</td><td>USA Physics Olympiad</td></tr><tr><td>PUPC</td><td>Princeton University Physics Competition</td></tr><tr><td>OPhO</td><td>Online Physics Olympiad</td></tr></table>
|
| 412 |
+
|
| 413 |
+
on datasets like MMMU. However the unavailability of Google's API for Gemini Ultra, we test the accessible Gemini-Pro-Vision as an alternative. Qwen-VL-Max (Bai et al., 2023), developed by Alibaba, is the largest LMM, and stands on par with GPT-4V and Gemini-Ultra in multi-modal tasks. Due to the large proportion of Chinese data used in its training, Qwen-VL-Max has a certain advantage in Chinese language ability.
|
| 414 |
+
|
| 415 |
+
The open-source models include: Yi-VL-34B (01-ai, 2024) is the first open-source 34B multi-modal model that has demonstrated satisfying performance on several latest datasets. With Chinese text-image pairs included in the training process, Yi-VL-34B offers adequate multilingual support. LLaVA-NeXT-34B (Liu et al., 2024) claims to be the strongest open-source LMM, with enhancements in reasoning, OCR, and world knowledge. Despite being trained exclusively with English multi-modal data, it demonstrates an emergent zero-shot Chinese multi-modal capability on Chinese benchmarks.
|
| 416 |
+
|
| 417 |
+
It should be noted that an image must be passed for Gemini-Pro-Vision, LLaVA-NeXT, and Yi-VL during inference. Therefore, for the text-only questions in OlympiadBench dataset, we use the corresponding text-model api (for closed-source models), or their base LLM (for open-source models). To examine the impact of replacing LMM with base LLM for processing text-only data, we subsequently compare the performance differences between GPT-4V and GPT-4 on text-only questions in OlympiadBench.
|
| 418 |
+
|
| 419 |
+
# B.1.2 LLMs
|
| 420 |
+
|
| 421 |
+
The field of LLM starts early in scientific areas such as mathematics and physics, with models specifically trained occurring. We select DeepSeekMath-7B-RL (Shao et al., 2024) as the primary baseline for text-only questions. DeepSeekMath-7B-RL is pre-trained on 120B math-related data and enhanced chain-of-thought (CoT) reasoning capabilities using reinforcement learning, in the result scoring close to GPT-4 and Gemini-Ultra on the MATH (Hendrycks et al., 2021) dataset. We report the results of the selected LMMs (or their LLM counterparts) on the text-only questions for comparison, and additionally evaluate GPT-4 in order to compare with GPT-4V $^{8}$ .
|
| 422 |
+
|
| 423 |
+
# B.2 Detailed Experiment Result
|
| 424 |
+
|
| 425 |
+
The comparison of the performance of mainstream closed-ended models on different datasets are shown in Table 7.
|
| 426 |
+
|
| 427 |
+
Table 6: Full names of all competitions'acronyms used in this paper
|
| 428 |
+
|
| 429 |
+
<table><tr><td>Benchmark</td><td>GPT-4(V)</td><td>Qwen VL-Max</td><td>Gemini Pro</td></tr><tr><td>MATH</td><td>52.9</td><td>-</td><td>32.6</td></tr><tr><td>MathVista(testmini)</td><td>49.9</td><td>50.0</td><td>45.2</td></tr><tr><td>OlympiadBench</td><td>17.97</td><td>10.09</td><td>4.22</td></tr></table>
|
| 430 |
+
|
| 431 |
+
Table 7: Comparison of Performance on Different Benchmarks. The values for MATH and MathVista are obtained from Gemini and Qwen's report.
|
| 432 |
+
|
| 433 |
+
To further discuss the performance difference between GPT-4 and GPT-4V on the PhysicsEn_COMP, we split the En_COMP dataset into two sub-datasets, with normal-PhO being normal
|
| 434 |
+
|
| 435 |
+
PhO questions, and long-PhO being PhO questions that show in a relational series, therefore having long context. As shown in table 8, GPT-4 keeps performing slightly better on normal-PhO, but lags much behind on long-PhO, which may indicate improvement of long-context text reasoning capabilities after multimodal training.
|
| 436 |
+
|
| 437 |
+
<table><tr><td></td><td>long-PhO (157)</td><td>normal-PhO (74)</td></tr><tr><td>GPT-4V</td><td>18.47</td><td>1.35</td></tr><tr><td>GPT-4</td><td>14.92</td><td>4.05</td></tr></table>
|
| 438 |
+
|
| 439 |
+
Table 8: Average accuracy of GPT-4V and GPT-4 for the En_COMP dataset
|
| 440 |
+
|
| 441 |
+
# B.3 Unavailable Responses for Closed-Source Models
|
| 442 |
+
|
| 443 |
+
As described in table 4, the response for some problems are not available, the main causes are as follows:
|
| 444 |
+
|
| 445 |
+
1. Exceeding input limit: Some of the context of the problems are too long, which exceed the input token limitation for the API. This case mainly occurs in Physics-En_COMP that contains long-context problems of over 6,000 tokens.
|
| 446 |
+
2. Inappropriate response: Some problems trigger inappropriate response, which are banned by the API to return.
|
| 447 |
+
3. No response: Some problems continuously get no or empty response from the API.
|
| 448 |
+
4. Request timed out: Some problems continuously fail to get a response.
|
| 449 |
+
|
| 450 |
+
We removed the problems with unavailable response when calculating the accuracy.
|
| 451 |
+
|
| 452 |
+
# C Additional Analysis and Examples
|
| 453 |
+
|
| 454 |
+
# C.1 Performance analysis of GPT-4V
|
| 455 |
+
|
| 456 |
+
We analyzed GPT-4V's performance (accuracy on open-ended problems) on different knowledge points based on the knowledge point labels in OlympiadBench, the results can be found at Figure 5.
|
| 457 |
+
|
| 458 |
+
For Math problems, GPT-4V has poor performance in geometry, with the lowest scoring knowledge points being almost exclusively geometry-related. This may show the need of improving the
|
| 459 |
+
|
| 460 |
+
ability of understanding and imaging plane or 3d situations. GPT-4V also performs poorly on knowledge points that are more computationally intensive such as conic curves; and struggles to give a complete and comprehensive classification discussion, therefore prone to making mistakes on combinatorial problems. However, GPT-4V is stronger in knowledge related to derivatives and complex numbers.
|
| 461 |
+
|
| 462 |
+
As for Physics problems, none of the knowledge points surpass an accuracy of $16\%$ , and GPT-4V struggles more in thermodynamics and mechanics.
|
| 463 |
+
|
| 464 |
+
# C.2 Detailed Description of the Error Types in GPT-4V's solving or proving process
|
| 465 |
+
|
| 466 |
+
The error types are as follows:
|
| 467 |
+
|
| 468 |
+
1. Question Misunderstanding: GPT-4V sometimes misunderstands the intention or settings of the question.
|
| 469 |
+
2. Value Calculation Error: GPT-4V make simple calculation mistakes sometimes, such as outputting $\frac{b}{2} + 7 = \frac{b + 7}{2}$ , these mistakes appear more in Chinese and Math contents.
|
| 470 |
+
3. Expression Calculation Error: Similar to value calculation error, but happens when transforming between two expressions.
|
| 471 |
+
4. Logical Reasoning / Induction Error / Conceptual Confusion: GPT-4V sometimes makes false reasoning or induction, as well as encounters conceptual confusion (see Figure 7 for example).
|
| 472 |
+
5. Introducing Unnecessary variables or concepts: GPT-4V sometimes suddenly introduce variables or try to use concepts that have no contribution to solving the problem, which not only makes the output longer, but also may confuse GPT-4V itself and leads to incorrect output.
|
| 473 |
+
6. Conclusion Hallucination: GPT-4V sometimes hallucinates for a conclusion that is not reached in former output, or hallucinates a theorem that does not really exist (for example, when solving geometric proving problem, GPT-4V always mention "The Power Theorem", which does not exist, and all the proof thereafter will lost their logic).
|
| 474 |
+
7. Unfinished Answering: GPT-4V sometimes says the question have confliction in settings
|
| 475 |
+
|
| 476 |
+

|
| 477 |
+
Figure 5: An analysis of GPT-4V's accuracy on different knowledge points, blue for Math and red for Physics.
|
| 478 |
+
|
| 479 |
+

|
| 480 |
+
|
| 481 |
+
(which is not true), or degenerates after some tokens.
|
| 482 |
+
|
| 483 |
+
8. Insufficient Classification Discussions: When doing classification discussion, GPT-4V may miss some possible situation, or have overlapped discussion (see Figure 6 for example).
|
| 484 |
+
9. Incorrect Judging: Sometimes GPT-4V gives the right answer, but is judged as incorrect due to the limitation of the automated scoring system: One important problem is that many problems, especially Physics problems, accept answers that fall in a specific range due to rounding up, rather than a fixed numerical answer, so a precision is needed for automatically calculating the range, which was not given in many cases. Using relative precision (such as a percentage of $1\%$ ), may leads to accepting answers with unacceptable error when the origin answer is big, so we manually decide the precision for Olympiad-Bench problems if there is no official precision given, which may leads to incorrect judging. For example, in a Physics question (Physics-En_COMP#995), the precision is manually set as $1e1$ , with the official answer being $\sqrt{2} \times 3970 \approx 5614.43$ . GPT
|
| 485 |
+
|
| 486 |
+
4V calculates the answer as $\sqrt{2} \times 3970 \approx 1.414 \times 3970 \approx 5615.88$ , which falls out of the acceptable range, but is actually correct. Another problem is the current automated scoring system can't judge the equality between expressions such as $a\sqrt{b}$ and $\sqrt{a^2b}$ with $a \geq 0$ . These flaws call for future work such as automatically deciding required precision of the answer, and automatically judging equality between expressions.
|
| 487 |
+
|
| 488 |
+
# C.3 Other Observation for Open-Ended Problems
|
| 489 |
+
|
| 490 |
+
1. Given a simple solution, GPT-4V may choose a more complex method to solve the problem (see Figure 8).
|
| 491 |
+
2. Models may give correct answers with a false process. Mainly observed for problems with a simple answer, such as the variables takes 0 as the answer.
|
| 492 |
+
3. GPT-4V may success in giving correct overall idea, but fail in calculation (such as solving quadratic equations with extra negative signs), which leads to a wrong answer.
|
| 493 |
+
|
| 494 |
+
<table><tr><td>Question</td><td>GPT-4V's Solution</td></tr><tr><td>A die, with the numbers 1,2,3,4,6, and 8 on its six faces, is rolled. After this roll, if an odd number appears on the top face, all odd numbers on the die are doubled. If an even number appears on the top face, all the even numbers are halved. If the given die changes in this way, what is the probability that a 2 will appear on the second roll of the die?</td><td>Let's first determine the possible outcomes after the first roll and the corresponding changes to the die.
|
| 495 |
+
If an odd number appears on the top face after the first roll (which can be either 1, 3, or 6), all odd numbers are doubled. So the new faces of the die will be:
|
| 496 |
+
- If 1 appears, it becomes 2. (3 should also be doubled.)
|
| 497 |
+
- If 3 appears, it becomes 6. (1 should also be doubled.)
|
| 498 |
+
- The number 6 is even, so it remains unchanged. (Incorrectly classifying 6 into odd numbers, which leads to failure in thorough discussion of even numbers below.)
|
| 499 |
+
If an even number appears on the top face after the first roll (which can be either 2, 4, or 8), all even numbers are halved. So the new faces of the die will be:
|
| 500 |
+
- If 2 appears, it becomes 1. (Same problem.)
|
| 501 |
+
- If 4 appears, it becomes 2.
|
| 502 |
+
- If 8 appears, it becomes 4.
|
| 503 |
+
Now, let's calculate the probability of getting a 2 on the second roll based on the first roll:
|
| 504 |
+
- If the first roll is 1, the die will have faces 2, 2, 6, 4, 6, 8. The probability of rolling a 2 is 2/6.
|
| 505 |
+
......
|
| 506 |
+
- If the first roll is 8, the die will have faces 1, 2, 3, 2, 3, 4. The probability of rolling a 2 is 2/6.
|
| 507 |
+
Now, we need to calculate the total probability of rolling a 2 on the second roll. Since each face has an equal probability of appearing on the first roll, we can average the probabilities:
|
| 508 |
+
Total probability 1/6 × (2/6 + ... + 2/6) = ... = 1/4.
|
| 509 |
+
So the final answer is \boxed{1/4}.</td></tr></table>
|
| 510 |
+
|
| 511 |
+
Figure 6: An example of GPT-4V making insufficient classification discussions in a combinatorial problem. The red text is the wrong part of GPT-4V's answer, and the purple text is our further illustration.
|
| 512 |
+
|
| 513 |
+
4. GPT-4V may not fully utilize the information from the image (see Figure 9).
|
| 514 |
+
|
| 515 |
+
# D Automatic Scoring Pipeline
|
| 516 |
+
|
| 517 |
+
The pipeline workflow is shown in Algorithm 1.
|
| 518 |
+
|
| 519 |
+
Algorithm 1: Auto Scoring Judge
|
| 520 |
+
```txt
|
| 521 |
+
Input: GroundTruth, ModelOutput;
|
| 522 |
+
Output: Boolean value indicating match;
|
| 523 |
+
Preprocess GroundTruth and ModelOutput;
|
| 524 |
+
if GroundTruth equals ModelOutput then
|
| 525 |
+
return True;
|
| 526 |
+
else
|
| 527 |
+
if GroundTruth and ModelOutput are intervals or tuples then
|
| 528 |
+
if GroundTruth equals ModelOutput as intervals or tuples then
|
| 529 |
+
return True;
|
| 530 |
+
else
|
| 531 |
+
return False;
|
| 532 |
+
end
|
| 533 |
+
else
|
| 534 |
+
if GroundTruth equals ModelOutput numerically then
|
| 535 |
+
return True;
|
| 536 |
+
else
|
| 537 |
+
if Both GroundTruth and ModelOutput contain "=" then
|
| 538 |
+
return EquationEqual(GroundTruth, ModelOutput);
|
| 539 |
+
else
|
| 540 |
+
return ExpressionEqual(GroundTruth, ModelOutput);
|
| 541 |
+
end
|
| 542 |
+
end
|
| 543 |
+
```
|
| 544 |
+
|
| 545 |
+
<table><tr><td>Context</td><td>GPT-4V's Solution</td></tr><tr><td>3. Block on an Incline Plane Consider a block of mass, M, and charge, Q > 0, sliding down an incline plane at an angle α with the horizontal with initial position (x0, y0). The system is exposed to an upward electric field given by E(y) = β(y0 - y) with β > 0. Figure 2: An incline plane submerged in a medium.</td><td>To find the position ye where the block experiences net zero vertical force, we need to consider the forces acting on the block in the vertical direction. There are two forces to consider: the gravitational force and the electric force. The gravitational force acting on the block in the vertical direction can be found by considering the component of the weight of the block that acts perpendicular to the incline. The weight of the block is Mg, where g is the acceleration due to gravity. The component of this force in the vertical direction is Mg sin α. (The vertical gravity force should be Mg itself, and the component that is vertical to the plane should be Mg cos α, so GPT-4V gets wrong in any way.)</td></tr><tr><td>Question</td><td rowspan="2">The electric force acting on the block is due to the electric field E(y) = β(y0 - y). Since the charge of the block is Q, the electric force is Fe = QE(y) = QB(y0 - y).</td></tr><tr><td>(a) Find an expression for the ye, the position where the block experiences net zero vertical force.</td></tr><tr><td>Answer</td><td rowspan="2">At the position ye where the net vertical force is zero, these two forces must balance each other: Mg sin α = QB(y0 - y). Now we can solve for ye: ......</td></tr><tr><td>ye = y0 - gM/βQ (Full solution omitted, see Physics-En_COMP#958 if needed.)</td></tr></table>
|
| 546 |
+
|
| 547 |
+
Figure 7: An example of GPT-4V getting confused between the concept of "vertical to the plane" and "vertical(to the ground)".
|
| 548 |
+
|
| 549 |
+
<table><tr><td>Question</td><td>GPT-4V's Solution</td></tr><tr><td>已知正数x,y满足:x+y=1.求1/x+4/y的最小值.</td><td rowspan="2">由已知条件x+y=1,我们可以将1/x+4/y表达为x和y的函数。首先,我们将y用x表示出来,即y=1-x。然后将y代入1/x+4/y中,得到:1/x+4/y=1/x+4/1-x</td></tr><tr><td>Standard Solution</td></tr><tr><td>由a+b-2√ab=(√a-√b)2≥0,故a+b≥2√ab.所求1/x+4/y=(1/x+4/y)(x+y)=1+4+y/x+4x/2y≥5+2√y/x·4x/2y=9,等号在x=1/3,y=2/3处取到,故最小值为9.</td><td>为了找到这个表达式的最小值,我们可以使用微分法。首先,我们对上述表达式求导: d/dx(1/x+4/1-x)=1/x2+4/(1-x)2.为了找到极值点,我们令导数等于零:···解这个方程,···我们得到:3x2+2x-1=0.这是一个二次方程,我们可以使用求根公式来解它:x=-b±√b2-4ac/2a,其中a=3,b=2,c=-1,代入求根公式得到:x=2a,我们得到两个解,分别是:x=1/3或x=-1.由于x是正数,我们排除x=-1的解,所以x=1/3.将x的值代入y=1-x,得到···。现在我们可以计算1/x+4/y的值:1/x+4/y=1/1+4/2=···=9.所以最终答案是9。</td></tr></table>
|
| 550 |
+
|
| 551 |
+
Figure 8: An example of GPT-4V giving a solution that is much complex than that of the standard solution, although reaching the correct answer eventually.
|
| 552 |
+
|
| 553 |
+

|
| 554 |
+
Figure 9: An example of GPT-4V's failure in utilizing image information from Math-Zh_COMP. GPT-4V starts proving with "we have $\angle DEF = \angle FBC = 59^\circ$ ", which is an error that can evidently be identified from the image, showing insufficient comprehension of the given plane geometry figure.
|
| 555 |
+
|
| 556 |
+
<table><tr><td>Subset</td><td>Subfield</td><td>Number</td></tr><tr><td rowspan="13">CEE Math</td><td>Derivative</td><td>334</td></tr><tr><td>Conic Sections</td><td>350</td></tr><tr><td>Sequence</td><td>258</td></tr><tr><td>Trigonometric Functions</td><td>236</td></tr><tr><td>Set Theory</td><td>22</td></tr><tr><td>Logic</td><td>3</td></tr><tr><td>Elementary Functions</td><td>158</td></tr><tr><td>Inequality</td><td>138</td></tr><tr><td>PC&PE</td><td>80</td></tr><tr><td>Probability and Statistics</td><td>758</td></tr><tr><td>Plane Geometry</td><td>790</td></tr><tr><td>Solid Geometry</td><td>1322</td></tr><tr><td>Complex Numbers</td><td>8</td></tr><tr><td rowspan="4">COMP Math</td><td>Combinatorics</td><td>369</td></tr><tr><td>Algebra</td><td>525</td></tr><tr><td>Number Theory</td><td>256</td></tr><tr><td>Geometry</td><td>535</td></tr><tr><td rowspan="5">CEE&COMP Physics</td><td>Mechanics</td><td>1010</td></tr><tr><td>Electromagnetism</td><td>714</td></tr><tr><td>Thermodynamics</td><td>248</td></tr><tr><td>Optics</td><td>153</td></tr><tr><td>Modern Physics</td><td>209</td></tr></table>
|
| 557 |
+
|
| 558 |
+
Table 9: Statistics of subfield in Mathematics and Physics. PC&PE stands for Polar Coordinates and Parametric Equations.
|
| 559 |
+
|
| 560 |
+
# Electrostatic lens (10 points)
|
| 561 |
+
|
| 562 |
+
Consider a uniformly charged metallic ring of radius $R$ and total charge $q$ . The ring is a hollow toroid of thickness $2a \ll R$ . This thickness can be neglected in parts A, B, C, and E. The $xy$ plane coincides with the plane of the ring, while the $z$ -axis is perpendicular to it, as shown in Figure 1. In parts A and B you might need to use the formula (Taylor expansion)
|
| 563 |
+
|
| 564 |
+
$$
|
| 565 |
+
(1 + x) ^ {\varepsilon} \approx 1 + \varepsilon x + \frac {1}{2} \varepsilon (\varepsilon - 1) x ^ {2}, \mathrm {w h e n} | x | \ll 1.
|
| 566 |
+
$$
|
| 567 |
+
|
| 568 |
+

|
| 569 |
+
Figure 1. A charged ring of radius $R$ .
|
| 570 |
+
|
| 571 |
+
# Part A. Electrostatic potential on the axis of the ring (1 point)
|
| 572 |
+
|
| 573 |
+
A.1 Calculate the electrostatic potential $\Phi (z)$ along the axis of the ring at a $z$ distance 0.3pt from its center (point A in Figure 1).
|
| 574 |
+
A.2 Calculate the electrostatic potential $\Phi(z)$ to the lowest non-zero power of $z$ , as- 0.4pt suming $z \ll R$ .
|
| 575 |
+
A.3 An electron (mass $m$ and charge $-e$ ) is placed at point A (Figure 1, $z \ll R$ ). What is the force acting on the electron? Looking at the expression of the force, determine the sign of $q$ so that the resulting motion would correspond to oscillations. The moving electron does not influence the charge distribution on the ring.
|
| 576 |
+
A.4 What is the angular frequency $\omega$ of such harmonic oscillations? 0.1pt
|
| 577 |
+
|
| 578 |
+
# Part B. Electrostatic potential in the plane of the ring (1.7 points)
|
| 579 |
+
|
| 580 |
+
In this part of the problem you will have to analyze the potential $\Phi (r)$ in the plane of the ring $(z = 0)$ for $r\ll R$ (point B in Figure 1). To the lowest non-zero power of $r$ the electrostatic potential is given by $\Phi (r)\approx q(\alpha +\beta r^2)$
|
| 581 |
+
|
| 582 |
+
B.1 Find the expression for $\beta$ . You might need to use the Taylor expansion formula 1.5pt given above.
|
| 583 |
+
|
| 584 |
+
Figure 10: An example illustrating the first section of Problem 2 in IPho 2021.
|
| 585 |
+
|
| 586 |
+
B.2 An electron is placed at point B (Figure 1, $r \ll R$ ). What is the force acting on the 0.2pt electron? Looking at the expression of the force, determine the sign of $q$ so that the resulting motion would correspond to harmonic oscillations. The moving electron does not influence the charge distribution on the ring.
|
| 587 |
+
|
| 588 |
+
# Part C. The focal length of the idealized electrostatic lens: instantaneous charging (2.3 points)
|
| 589 |
+
|
| 590 |
+
One wants to build a device to focus electrons—an electrostatic lens. Let us consider the following construction. The ring is situated perpendicularly to the $z$ -axis, as shown in Figure 2. We have a source that produces on-demand packets of non-relativistic electrons. Kinetic energy of these electrons is $E = m v^2 / 2$ ( $v$ is velocity) and they leave the source at precisely controlled moments. The system is programmed so that the ring is charge-neutral most of the time, but its charge becomes $q$ when electrons are closer than a distance $d / 2$ ( $d \ll R$ ) from the plane of the ring (shaded region in Figure 2, called "active region"). In part C assume that charging and de-charging processes are instantaneous and the electric field "fills the space" instantaneously as well. One can neglect magnetic fields and assume that the velocity of electrons in the $z$ -direction is constant. Moving electrons do not perturb the charge distribution on the ring.
|
| 591 |
+
|
| 592 |
+

|
| 593 |
+
Figure 2. A model of an electrostatic lens.
|
| 594 |
+
|
| 595 |
+
C.1 Determine the focal length $f$ of this lens. Assume that $f \gg d$ . Express your answer in terms of the constant $\beta$ from question B.1 and other known quantities. Assume that before reaching the "active region" the electron packet is parallel to the $z$ -axis and $r \ll R$ . The sign of $q$ is such so that the lens is focusing.
|
| 596 |
+
|
| 597 |
+
In reality the electron source is placed on the $z$ -axis at a distance $b > f$ from the center of the ring. Consider that electrons are no longer parallel to the $z$ -axis before reaching the "active region", but are emitted from a point source at a range of different angles $\gamma \ll 1$ rad to the $z$ -axis. Electrons are focused in a point situated at a distance $c$ from the center of the ring.
|
| 598 |
+
|
| 599 |
+
C.2 Find $c$ . Express your answer in terms of the constant $\beta$ from question B.1 and 0.8pt other known quantities.
|
| 600 |
+
|
| 601 |
+
Figure 11: An example illustrating the second section of Problem 2 in IPhO 2021.
|
olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8010e8a8181a89e6a002a8a159587edb92885605e541d30b883ffde620d20860
|
| 3 |
+
size 1026040
|
olympiadbenchachallengingbenchmarkforpromotingagiwitholympiadlevelbilingualmultimodalscientificproblems/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:088a4c52c2afac866e29864cb713b18655e8f7993fabcf1f97efde8ab237d00d
|
| 3 |
+
size 627116
|
oncontextutilizationinsummarizationwithlargelanguagemodels/def7ded9-225e-4c99-a8ca-70b67179723d_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f996b10c3e681addc95b214ca75f33772e8c240fb1ac8c1af15a8658004d5f3e
|
| 3 |
+
size 149594
|
oncontextutilizationinsummarizationwithlargelanguagemodels/def7ded9-225e-4c99-a8ca-70b67179723d_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db3ccfb7ec1c84aaeabc889c1c60f7f6662c38984a5ee27ea9fc81fe5fff9823
|
| 3 |
+
size 175072
|
oncontextutilizationinsummarizationwithlargelanguagemodels/def7ded9-225e-4c99-a8ca-70b67179723d_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:408a8bdcb0b81a57f2f4e6e800892466eb8a86cf830016639304a4e39dca4b39
|
| 3 |
+
size 5770391
|
oncontextutilizationinsummarizationwithlargelanguagemodels/full.md
ADDED
|
@@ -0,0 +1,547 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# On Context Utilization in Summarization with Large Language Models
|
| 2 |
+
|
| 3 |
+
Mathieu Ravaut $^{1,2}$ , Aixin Sun $^{1}$ , Nancy F. Chen $^{1,2,4,5}$ , Shafiq Joty $^{1,3}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>Nanyang Technological University, Singapore
|
| 6 |
+
|
| 7 |
+
$^{2}$ Institute of Infocomm Research (I²R), A*STAR, Singapore
|
| 8 |
+
|
| 9 |
+
3 Salesforce Research
|
| 10 |
+
|
| 11 |
+
CNRS@CREATE, Singapore
|
| 12 |
+
|
| 13 |
+
<sup>5</sup> Centre for Frontier AI Research (CFAR), A*STAR, Singapore
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Large language models (LLMs) excel in abstractive summarization tasks, delivering fluent and pertinent summaries. Recent advancements have extended their capabilities to handle long-input contexts, exceeding 100k tokens. However, in question answering, language models exhibit uneven utilization of their input context. They tend to favor the initial and final segments, resulting in a U-shaped performance pattern concerning where the answer is located within the input. This bias raises concerns, particularly in summarization where crucial content may be dispersed throughout the source document(s). Besides, in summarization, mapping facts from the source to the summary is not trivial as salient content is usually re-phrased. In this paper, we conduct the first comprehensive study on context utilization and position bias in summarization. Our analysis encompasses 6 LLMs, 10 datasets, and 5 evaluation metrics. We introduce a new evaluation benchmark called MiddleSum on the which we benchmark two alternative inference methods to alleviate position bias: hierarchical summarization and incremental summarization<sup>1</sup>.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
Large language models (LLMs) have drastically transformed the landscape of NLP recently (Brown et al., 2020). With instruction tuning (Ouyang et al., 2022; Chung et al., 2022), LLMs made a major leap forward in conditional (prompted) content generation, and can generate satisfying outputs without the need to fine-tune on a specific task. In abstractive summarization specifically, this approach has arguably opened a new paradigm: summaries generated by LLMs are highly fluent, grammatical and relevant (Goyal et al., 2022). Despite noticeably lower scores on automatic metrics such as ROUGE (Lin, 2004) or BERTScore (Zhang
|
| 22 |
+
|
| 23 |
+
et al., 2019), summaries generated by LLMs are largely preferred by humans over summaries from state-of-the-art fine-tuned models like BRIO (Liu et al., 2022b, 2023c). In fact, on XSum, GPT-3.5 summaries are even on par with re-annotated human-written summaries, and much better than the dataset's original ground-truth, according to human evaluators (Zhang et al., 2023b). LLMs also show promising capability in evaluating summaries generated by other systems, including LLMs (Fu et al., 2023; Luo et al., 2023; Shen et al., 2023a).
|
| 24 |
+
|
| 25 |
+
Despite this success, a few major technological bottlenecks remain with LLMs, including the maximum length of their context window. The standard context window length for open-source LLMs is 2k tokens (Brown et al., 2020; Scao et al., 2022; Penedo et al., 2023; Touvron et al., 2023a), which drastically limits their usefulness for long-input summarization (Shaham et al., 2022). Several techniques were proposed to extend the context window, including ALiBi (Press et al., 2021), LeX (Sun et al., 2022), position interpolation (Chen et al., 2023) and YaRN (Peng et al., 2023). While some of them claim up to $100\mathrm{k}+$ tokens processing capacity (Peng et al., 2023), it remains unclear how much such methods help on long-context summarization.
|
| 26 |
+
|
| 27 |
+
Scaling up context length would only succeed if a key question gets addressed first: do LLMs make proper use of their entire context? Recent work (Liu et al., 2023a) suggested that, surprisingly, such a simple assumption may not hold: through experiments on multi-document question answering and key-value retrieval, the authors find that LLMs mostly focus on the beginning and end of the (long) context window. Plotting performance with regards to the position of the important information exhibits a $U$ -shape, with performance high at first (beginning of the source), then dropping, and rising again at the end. Worryingly, in the middle of the context window, LLMs' performance can drop to even below random chance, calling for greater
|
| 28 |
+
|
| 29 |
+
examination of LLMs' behaviors with regard to the position of information within the source.
|
| 30 |
+
|
| 31 |
+
In this work, we investigate in depth how LLMs use their context window in abstractive summarization. Unlike in question-answering, mapping facts in the output to a specific snippet in the source is not straightforward in abstractive summarization, due to the high-level of re-phrasing and compression. We conduct a large-scale study with 6 LLMs, 10 datasets covering many aspects of summarization, and 5 highly diverse automatic metrics. Our contributions are threefold:
|
| 32 |
+
|
| 33 |
+
- We conduct the first large-scale analysis on context utilization in abstractive summarization, and the impact of the position of salient information on performance. We show that the U-shape or middle-curve exhibited by (Liu et al., 2023a) also holds in abstractive summarization.
|
| 34 |
+
- We craft an evaluation dataset (MiddleSum) where important information is concentrated in the middle of the context, enabling us to automatically quantify how much LLMs are affected by the middle-curse.
|
| 35 |
+
- We benchmark two alternative methods for inference on MiddleSum: hierarchical summarization and incremental summarization, showing their promise at alleviating the middle curse (especially in the scientific paper domain).
|
| 36 |
+
|
| 37 |
+
# 2 Experimental Setup
|
| 38 |
+
|
| 39 |
+
Datasets We cover a broad set of diverse abstractive summarization tasks, varying length and domain. We include 5 datasets of standard length (source is below 2k tokens, which always fits in the context window): (i) CNN/DailyMail (Hermann et al., 2015), (ii) XSum (Narayan et al., 2018), (iii) Reddit-TIFU (Kim et al., 2019), (iv) SAMSum (Gliwa et al., 2019), and (v) Multi-XScience (Lu et al., 2020). We also include another 5 long-input summarization datasets: (i) Arxiv and (ii) PubMed (Cohan et al., 2018), (iii) GovReport (Huang et al., 2021), (iv) SummScreenFD (Chen et al., 2022), and (v) Multi-News (Fabbri et al., 2019). A high-level view of each dataset is shown in Table 1, and detailed statistics are presented in Appendix A. For all datasets, we run experiments on the test set, subsampling 1,000 data points if its size is greater than 1,000, or using the entire test set otherwise.
|
| 40 |
+
|
| 41 |
+
Models We experiment with 6 popular and high-performing LLMs:
|
| 42 |
+
|
| 43 |
+
<table><tr><td rowspan="2">Dataset</td><td>Input length</td><td colspan="2"># Documents</td><td>In Flan?</td><td></td></tr><tr><td>Standard Long</td><td>Single</td><td>Multi</td><td>Yes No</td><td></td></tr><tr><td>CNN/DM (Hermann et al., 2015)</td><td>✓</td><td>✓</td><td></td><td>✓</td><td></td></tr><tr><td>XSum (Narayan et al., 2018)</td><td>✓</td><td>✓</td><td></td><td>✓</td><td></td></tr><tr><td>Reddit-TIFU (Kim et al., 2019)</td><td>✓</td><td>✓</td><td></td><td>✓</td><td></td></tr><tr><td>SAMSum (Gliwa et al., 2019)</td><td>✓</td><td>✓</td><td></td><td>✓</td><td></td></tr><tr><td>Multi-XScience (Lu et al., 2020)</td><td>✓</td><td></td><td>✓</td><td>✓</td><td></td></tr><tr><td>Arxiv (Cohan et al., 2018)</td><td></td><td>✓</td><td></td><td>✓</td><td></td></tr><tr><td>PubMed (Cohan et al., 2018)</td><td></td><td>✓</td><td>✓</td><td></td><td>✓</td></tr><tr><td>GovReport (Huang et al., 2021)</td><td></td><td>✓</td><td>✓</td><td></td><td>✓</td></tr><tr><td>SummScreenFD (Chen et al., 2022)</td><td></td><td>✓</td><td>✓</td><td></td><td>✓</td></tr><tr><td>Multi-News (Fabbri et al., 2019)</td><td></td><td>✓</td><td></td><td>✓</td><td></td></tr></table>
|
| 44 |
+
|
| 45 |
+
Table 1: Summarization datasets under study. In standard length datasets, the context and summary fit within a 2k tokens LLM context window.
|
| 46 |
+
|
| 47 |
+
- Flan-UL2 is a 20B parameters encoder-decoder model pre-trained on 1T tokens. It is based on the UL2 20B model (Tay et al., 2022), with the addition of Flan-T5 (Chung et al., 2022) instruction fine-tuning. The context window is $2\mathrm{k}$ tokens.
|
| 48 |
+
- Llama-2 (Touvron et al., 2023b) is a recently introduced powerful decoder-only model pretrained on 2T tokens, ranging from 7B to 70B parameters, and with a 4k tokens context window. We use the 7B and 13B models.
|
| 49 |
+
- Xgen-7B (Nijkamp et al., 2023) is a 7B decoder-only model pre-trained on up to 1.5T tokens. It supports an 8k tokens context window.
|
| 50 |
+
- Mistral-7B (Jiang et al., 2023a) is also an 8k-context 7B decoder-only model, with performance slightly better than Llama-2-13B.
|
| 51 |
+
- GPT-3.5 (gpt-3.5-turbo-0125), which is known to be good at generating summaries and has a 16k tokens context window. $^2$
|
| 52 |
+
|
| 53 |
+
We analyze the open-source models through HuggingFace transformers library (Wolf et al., 2020), and use the OpenAI API for GPT-3.5. We use the instruction-tuned (or chat) checkpoints for Llama-2, Xgen-7B and Mistral-7B. Note that popular instruction-tuning datasets such as Flan (Wei et al., 2021) include some of the datasets we study: CNN/DM, XSum, SAMSum and Multi-News. To run inference, we use the following prompt: Read the following text and summarize it: [text]. Summarize the above text in [n] sentences. Summary: where n is set to an average number of target sentences per dataset (see Appendix A). We infer all models in bfloat16 and sample summaries with top-k sampling (Fan et al., 2018) using $k = 50$ and temperature $T = 0.3$ .
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+

|
| 60 |
+
|
| 61 |
+

|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
Figure 1: Distribution of the relative location of summary bigrams within the source. We split each source document into 20 bins of the same number of words, and plot the distribution of summary bigrams over source bins.
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
|
| 76 |
+
Evaluation Measures Summarization evaluation is especially challenging in the LLM era, as most automatic metrics poorly correlate with human preferences (Goyal et al., 2022; Liu et al., 2023b). To get a broad picture of performance, we evaluate with metrics as diverse as possible. First, we consider reference-based metrics: ROUGE-2 (Lin, 2004), which measures bigram overlap, BERTScore (Zhang et al., 2019), which measures semantic similarity with BERT (Devlin et al., 2019) embeddings, and A3CU (Liu et al., 2023c), which extracts facts in the form of Atomic Content Units (ACUs) (Liu et al., 2023b), and checks the presence of ACUs between prediction and reference. As reference-free metrics, we include SummaC (Laban et al., 2022), a leading factual consistency evaluation metric relying on entailment scores between pairs of source and summary sentences. We also leverage GPT-3.5 again (still gpt-3.5-turbo-0125), this time as a summarization evaluator, which is proven to be a strong natural language generation evaluator (Wang et al., 2023a; Shen et al., 2023a; Jain et al., 2023). We prompt the model with the source and generated summary (which fits in GPT-3.5's 16k context window) and ask to output a score on a likert scale from 1 to 5. We refer to Appendix B for the full prompt template. $^{3}$
|
| 77 |
+
|
| 78 |
+
We report the performance of LLMs on all 10 datasets, alongside a comparison to SOTA, in Appendix C. FLan-UL2 dominates on standard-length
|
| 79 |
+
|
| 80 |
+
datasets, but GPT-3.5 has the upper hand on the long-input ones. Performance itself is not our focus in this paper, but rather which position-related factors influence it. We discard Flan-UL2 on long-input datasets due to very poor performance.
|
| 81 |
+
|
| 82 |
+
# 3 Experiments
|
| 83 |
+
|
| 84 |
+
In this section, we describe a series of experiments aimed at understanding how LLMs treat information in their input depending on the position.
|
| 85 |
+
|
| 86 |
+
# 3.1 RQ1: Where in the source do LLMs take their information from?
|
| 87 |
+
|
| 88 |
+
We first investigate summaries generated by LLMs, and map them to specific parts of the input. Unlike in question-answering or extractive summarization, mapping salient information from a summary to the source is not trivial in abstractive summarization.
|
| 89 |
+
|
| 90 |
+
We follow the approach used in (Kim et al., 2019; Zhao et al., 2022a) and compute the relative position of bigams from generated summaries within the source documents, as a proxy for the position of salient information. We only use unique bigrams from summaries, and for each bigram, find all its occurrences within the source, if there are any. We then split the source into 20 bins of the same number of words, and compute the fraction of matched bigrams found in each bin. On top of the LLMs described above, we include the position of bigrams from reference summaries, and a uniform baseline.
|
| 91 |
+
|
| 92 |
+
As seen in Fig. 1, all summarization datasets except XSum, and Reddit-TIFU show some lead bias: salient bigrams from the reference (orange
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 2: Distribution of relative location of input context sentences aligned with sentences from summaries. X-axis corresponds to the source sentence bin, y-axis to the fraction of aligned sentences in each bin.
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
|
| 105 |
+
curves) are more likely to be found at the beginning of the source. However, LLMs show a significantly stronger lead bias on all datasets: bigrams from LLMs summaries are much more likely to be found in the first $20\%$ words of the source. It is especially striking on XSum (except for Flan-UL2), Reddit-TIFU, Arxiv, PubMed and GovReport. On XSum, Flan-UL2 closely matches the reference distribution, which we attribute to its better instruction tuning. Results in Appendix D confirm that bigram distribution for LLMs and references are statistically different (p-value of Kolmogorov-Smirnov test (Massey Jr, 1951) inferior to 0.001) in all but 4 out of the 55 (dataset, LLM) setups: Flan-UL2 on XSum and SAMSum, Llama-2-7B on SAMSum and GPT-3.5 on SAMSum. We conclude that LLMs focus on contents at the beginning of the source document(s).
|
| 106 |
+
|
| 107 |
+
# 3.2 RQ2: Where do LLMs look at within their context window?
|
| 108 |
+
|
| 109 |
+
In the previous experiment's design, LLMs may not see the entire source in long-input summarization datasets, due to their limited context window, which is shorter than the source on the long-input datasets. We now focus on input information accessible to LLMs, and only consider salient information if it falls within the context window. Besides, since the same bigram may occur multiple times throughout the source, we adjust the methodology for saliency estimation. We align sentences in generated summaries to sentences in the context, following the procedure described in (Zhou et al., 2018) and also used in (Adams et al., 2023). Specifically, we greedily select source sentences (among the ones fitting in context window) until the ROUGE-1 F1 score between the set of selected source sentences and the summary stops increasing. The resulting set of source sentences forms a proxy of the visible salient input information being
|
| 110 |
+
|
| 111 |
+
rephrased by the model when summarizing. We split each truncated source document into 10 bins of the same number of sentences, and map each aligned source sentence to its bin. Note that bins are not directly comparable across models, as context length varies across models.
|
| 112 |
+
|
| 113 |
+
As we can see in Fig. 2, sentences from the first $10\%$ or last $10\%$ of the input context are much more represented than others. A clear U-shape emerges on PubMed and SummScreenFD for all LLMs. This is intriguing knowing that the LLMs have different context window lengths, and the last $10\%$ of each context window may contain content of varying saliency. In other words, LLMs seem to be mostly re-phrasing information from the beginning or the end of their context window.
|
| 114 |
+
|
| 115 |
+
Results in Appendix E confirm an even stronger position bias with base models.
|
| 116 |
+
|
| 117 |
+
# 3.3 RQ3: Does LLMs performance depend on the position of salient information?
|
| 118 |
+
|
| 119 |
+
Results from the last experiment raise the question of whether LLMs' summarization performance changes depending on where salient information is located within the input. As an approximation for salient information, we consider the alignment between summary sentences and source sentences like in Fig. 2, but this time using the reference summaries. Each reference summary is mapped to the source sentences it maximizes ROUGE-1 F1 against, which may be scattered across the whole source. We convert each source sentence to its cumulative word count from the beginning of the source, and take the average as an approximation of the mean position of salient information within the source. We keep data points with mean salient position fitting within the LLM context window.
|
| 120 |
+
|
| 121 |
+
We examine performance changes with regard to this salient position. To do so, we compute the Spearman correlation coefficient between salient
|
| 122 |
+
|
| 123 |
+
<table><tr><td>Metric</td><td>Model</td><td>CNN/DM</td><td>XSum</td><td>Reddit</td><td>SAMSum</td><td>Multi-X</td><td>AVG</td><td>Arxiv</td><td>PubMed</td><td>GovReport</td><td>SummScreenFD</td><td>Multi-N</td><td>AVG</td></tr><tr><td rowspan="6">ROUGE-2</td><td>Flan-UL2</td><td>-0.296</td><td>-0.124</td><td>0.048</td><td>-0.069</td><td>-0.201</td><td>-0.128</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Llama-2-7B</td><td>-0.160</td><td>-0.023</td><td>0.063</td><td>-0.059</td><td>-0.100</td><td>-0.056</td><td>0.022</td><td>-0.113</td><td>-0.109</td><td>-0.079</td><td>-0.210</td><td>-0.098</td></tr><tr><td>Llama-2-13B</td><td>-0.166</td><td>-0.086</td><td>0.031</td><td>-0.078</td><td>-0.039</td><td>-0.068</td><td>-0.017</td><td>-0.081</td><td>-0.166</td><td>-0.139</td><td>-0.213</td><td>-0.123</td></tr><tr><td>Xgen-7B</td><td>-0.228</td><td>-0.042</td><td>0.066</td><td>-0.039</td><td>-0.041</td><td>-0.056</td><td>0.028</td><td>-0.091</td><td>-0.405</td><td>0.063</td><td>-0.283</td><td>-0.138</td></tr><tr><td>Mistral-7B</td><td>-0.289</td><td>-0.031</td><td>0.006</td><td>-0.024</td><td>-0.052</td><td>-0.078</td><td>-0.270</td><td>-0.279</td><td>-0.585</td><td>-0.132</td><td>-0.324</td><td>-0.318</td></tr><tr><td>GPT-3.5</td><td>-0.323</td><td>-0.027</td><td>-0.031</td><td>-0.097</td><td>0.088</td><td>-0.078</td><td>0.026</td><td>-0.093</td><td>-0.123</td><td>-0.061</td><td>-0.233</td><td>-0.097</td></tr><tr><td rowspan="6">BERTScore</td><td>Flan-UL2</td><td>-0.331</td><td>-0.185</td><td>0.062</td><td>-0.144</td><td>-0.399</td><td>-0.187</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Llama-2-7B</td><td>-0.173</td><td>-0.012</td><td>0.062</td><td>-0.130</td><td>-0.385</td><td>-0.128</td><td>-0.031</td><td>-0.203</td><td>-0.104</td><td>-0.067</td><td>-0.256</td><td>-0.132</td></tr><tr><td>Llama-2-13B</td><td>-0.193</td><td>-0.102</td><td>0.038</td><td>-0.089</td><td>-0.352</td><td>-0.140</td><td>-0.082</td><td>-0.209</td><td>-0.063</td><td>-0.152</td><td>-0.279</td><td>-0.157</td></tr><tr><td>Xgen-7B</td><td>-0.252</td><td>-0.106</td><td>0.046</td><td>-0.075</td><td>-0.343</td><td>-0.146</td><td>-0.017</td><td>-0.125</td><td>-0.353</td><td>-0.093</td><td>-0.345</td><td>-0.187</td></tr><tr><td>Mistral-7B</td><td>-0.278</td><td>-0.052</td><td>0.014</td><td>-0.108</td><td>-0.416</td><td>-0.168</td><td>-0.348</td><td>-0.367</td><td>-0.567</td><td>-0.356</td><td>-0.403</td><td>-0.408</td></tr><tr><td>GPT-3.5</td><td>-0.280</td><td>-0.021</td><td>-0.025</td><td>-0.174</td><td>-0.247</td><td>-0.149</td><td>-0.087</td><td>-0.210</td><td>-0.175</td><td>-0.142</td><td>-0.262</td><td>-0.175</td></tr><tr><td rowspan="6">A3CU</td><td>Flan-UL2</td><td>-0.258</td><td>-0.090</td><td>0.050</td><td>-0.123</td><td>-0.069</td><td>-0.098</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Llama-2-7B</td><td>-0.182</td><td>-0.076</td><td>0.028</td><td>-0.121</td><td>-0.090</td><td>-0.088</td><td>-0.038</td><td>-0.209</td><td>-0.154</td><td>-0.129</td><td>-0.217</td><td>-0.149</td></tr><tr><td>Llama-2-13B</td><td>-0.190</td><td>-0.098</td><td>0.009</td><td>-0.166</td><td>0.016</td><td>-0.086</td><td>-0.104</td><td>-0.232</td><td>-0.111</td><td>-0.198</td><td>-0.228</td><td>-0.175</td></tr><tr><td>Xgen-7B</td><td>-0.212</td><td>-0.130</td><td>0.023</td><td>-0.126</td><td>-0.025</td><td>-0.094</td><td>-0.036</td><td>-0.255</td><td>-0.211</td><td>-0.076</td><td>-0.287</td><td>-0.173</td></tr><tr><td>Mistral-7B</td><td>-0.291</td><td>-0.110</td><td>0.004</td><td>-0.105</td><td>-0.119</td><td>-0.126</td><td>-0.160</td><td>-0.283</td><td>-0.305</td><td>-0.010</td><td>-0.283</td><td>-0.208</td></tr><tr><td>GPT-3.5</td><td>-0.256</td><td>-0.022</td><td>-0.039</td><td>-0.216</td><td>0.141</td><td>-0.078</td><td>-0.064</td><td>-0.293</td><td>-0.201</td><td>-0.059</td><td>-0.264</td><td>-0.176</td></tr><tr><td rowspan="6">SummaC</td><td>Flan-UL2</td><td>-0.012</td><td>0.548</td><td>0.270</td><td>0.186</td><td>-0.035</td><td>0.191</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Llama-2-7B</td><td>0.088</td><td>0.552</td><td>0.375</td><td>0.227</td><td>0.224</td><td>0.293</td><td>0.090</td><td>0.108</td><td>0.126</td><td>-0.020</td><td>0.205</td><td>0.102</td></tr><tr><td>Llama-2-13B</td><td>0.162</td><td>0.556</td><td>0.394</td><td>0.173</td><td>0.096</td><td>0.276</td><td>0.090</td><td>0.265</td><td>0.192</td><td>-0.144</td><td>0.232</td><td>0.127</td></tr><tr><td>Xgen-7B</td><td>0.001</td><td>0.161</td><td>0.220</td><td>0.117</td><td>0.004</td><td>0.101</td><td>-0.208</td><td>-0.087</td><td>-0.313</td><td>-0.141</td><td>0.046</td><td>-0.141</td></tr><tr><td>Mistral-7B</td><td>-0.045</td><td>0.515</td><td>0.149</td><td>0.069</td><td>0.154</td><td>0.128</td><td>-0.250</td><td>-0.103</td><td>-0.387</td><td>0.124</td><td>-0.010</td><td>-0.125</td></tr><tr><td>GPT-3.5</td><td>0.156</td><td>0.590</td><td>0.444</td><td>0.180</td><td>0.008</td><td>0.276</td><td>0.058</td><td>0.237</td><td>0.061</td><td>-0.055</td><td>0.089</td><td>0.078</td></tr><tr><td rowspan="6">GPT-3.5</td><td>Flan-UL2</td><td>-0.020</td><td>0.196</td><td>0.027</td><td>-0.009</td><td>-0.193</td><td>0.000</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Llama-2-7B</td><td>0.036</td><td>0.036</td><td>-0.152</td><td>0.077</td><td>-0.153</td><td>-0.031</td><td>0.008</td><td>-0.116</td><td>-0.013</td><td>-0.068</td><td>-0.120</td><td>-0.062</td></tr><tr><td>Llama-2-13B</td><td>0.039</td><td>0.072</td><td>-0.038</td><td>0.066</td><td>-0.052</td><td>0.017</td><td>-0.010</td><td>-0.084</td><td>-0.084</td><td>-0.060</td><td>-0.051</td><td>-0.058</td></tr><tr><td>Xgen-7B</td><td>0.056</td><td>-0.007</td><td>-0.101</td><td>0.006</td><td>-0.174</td><td>-0.044</td><td>-0.058</td><td>-0.096</td><td>-0.317</td><td>-0.063</td><td>-0.055</td><td>-0.118</td></tr><tr><td>Mistral-7B</td><td>-0.115</td><td>0.124</td><td>-0.133</td><td>0.036</td><td>-0.204</td><td>-0.058</td><td>-0.446</td><td>-0.322</td><td>-0.580</td><td>-0.188</td><td>-0.163</td><td>-0.342</td></tr><tr><td>GPT-3.5</td><td>0.024</td><td>0.014</td><td>-0.108</td><td>0.131</td><td>-0.054</td><td>0.001</td><td>0.156</td><td>-0.008</td><td>-0.172</td><td>0.068</td><td>0.024</td><td>0.014</td></tr></table>
|
| 124 |
+
|
| 125 |
+
Table 2: Spearman correlation coefficient between each LLM's metric, and the mean position of salient information within the context window. Flan-UL2 is not applied to long-context summarization datasets due to its too short context window. Multi-X is short for Multi-XScience, Multi-N is Multi-News dataset, AVG columns represent the average over standard-length and long-input datasets, respectively. Numbers in gray correspond to non-significant Spearman scores (p-value greater than 0.05).
|
| 126 |
+
|
| 127 |
+
position and each evaluation metric in Table 2. A high absolute Spearman value means that summary quality (as measured by this metric) can change (and deteriorate) with the position of important information within the context.
|
| 128 |
+
|
| 129 |
+
There are several takeaway findings from this Table. First, we notice that on standard-length datasets, reference-based evaluation metrics are negatively correlated to position of salient information. The correlation is only moderate, yet remarkably consistent across datasets (except Reddit-TIFU) and models. This is surprising, since such datasets fit entirely in context and are not affected by truncation. In contrast, reference-free metrics show either no significant or positive correlation to information position. For long-input datasets, the negative trend for reference-based metrics is confirmed. On these lengthy datasets, SummaC and GPT-3.5 tend to switch from positive to negative correlation, especially for Xgen-7B and Mistral-7B. We highlight that since GPT-3.5 itself is affected by the middle-curse from Liu et al. (2023a), it may not accurately evaluate summarization when salient content lays in the middle of the context. In light of these results, we conservatively conclude that LLMs' summarization performance is sensitive to the position of salient information in the context window.
|
| 130 |
+
|
| 131 |
+
# 4 Analysis
|
| 132 |
+
|
| 133 |
+
# 4.1 How is information in the middle treated?
|
| 134 |
+
|
| 135 |
+
Previous experiments show that LLMs place more emphasis on the beginning and the end of their context. We now narrow down on how LLMs treat the middle. To remove the effect of spread of salient information, we perform two controlled experiments in multi-document summarization. This setup enables us to shuffle the order of the input, which is not realistic for the single-document setup as it would break coherence. We only consider data points with the same number $k$ of documents: $k = 7$ documents for Multi-XScience ( $n = 329$ ), and $k = 5$ documents for Multi-News ( $n = 219$ ).
|
| 136 |
+
|
| 137 |
+
In the first experiment, we vary the position of salient information throughout the input. We keep a single document (the abstract of the query paper on Multi-XScience, and the document with the highest BERTScore with the reference on Multi-News), and place it at position $j$ for $j \in \{1, \dots, k\}$ , using $k - 1$ documents from a random data point for the other slots. The single relevant document is accompanied by a [RELEVANT] header, while the other documents have an [IRRELEVANT] header, and we prompt the LLM to only summarize the relevant document. For reference-free evaluation
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 3: Multi-document summarization performance on Multi-XScience (top row) and Multi-News (bottom row) when a unique relevant document is used, and its position is varied (x-axis). Dashed horizontal lines correspond to the random baseline.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 4: Fine-grained evaluation of multi-document summarization on Multi-News with GPT-3.5 when varying the position of a unique relevant input document.
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
|
| 173 |
+
metrics, we use the single relevant document as source. We also include a random baseline of shuffled inputs and model predictions. In Fig. 3, we see a noticeable drop in performance for all metrics when the salient document is not in the first or final position. Flan-UL2 seems to focus on the end of the context, Xgen-7B and Mistral-7B on the beginning, and Llama-2 models and GPT-3.5 on both. Performance can fall quite below random range, especially for reference-free metrics, confirming the worrying trend from Liu et al. (2023a).
|
| 174 |
+
|
| 175 |
+
A more fine-grained analysis with GPT-3.5 in Fig. 4 evaluating specific attributes (following the
|
| 176 |
+
|
| 177 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Input documents</td><td>R-2</td><td>BS</td><td>A3CU</td><td>SummaC</td><td>GPT-3.5</td><td>%</td></tr><tr><td rowspan="15">Multi-X</td><td rowspan="3">Llama-2-7B</td><td>All 7</td><td>4.64</td><td>82.83</td><td>5.88</td><td>54.56</td><td>4.17</td><td>100.00</td></tr><tr><td>First + last</td><td>4.62</td><td>82.82</td><td>5.78</td><td>47.00</td><td>4.50</td><td>98.36</td></tr><tr><td>First + 5 random + last</td><td>4.43</td><td>82.64</td><td>5.37</td><td>43.25</td><td>4.01</td><td>92.40</td></tr><tr><td rowspan="3">Llama-2-13B</td><td>All 7</td><td>4.78</td><td>83.00</td><td>6.64</td><td>42.62</td><td>4.35</td><td>100.00</td></tr><tr><td>First + last</td><td>4.73</td><td>82.86</td><td>5.76</td><td>43.74</td><td>4.53</td><td>98.46</td></tr><tr><td>First + 5 random + last</td><td>4.61</td><td>82.80</td><td>5.72</td><td>46.42</td><td>4.31</td><td>98.07</td></tr><tr><td rowspan="3">Xgen-7B</td><td>All 7</td><td>5.37</td><td>82.68*</td><td>6.59</td><td>44.34*</td><td>4.19*</td><td>100.00</td></tr><tr><td>First + last</td><td>5.01</td><td>82.73</td><td>5.86</td><td>49.08</td><td>4.45</td><td>99.83</td></tr><tr><td>First + 5 random + last</td><td>3.89</td><td>82.16</td><td>5.03</td><td>55.29</td><td>3.01</td><td>88.93</td></tr><tr><td rowspan="3">Mistral-7B</td><td>All 7</td><td>5.40</td><td>82.60</td><td>6.35</td><td>63.78</td><td>4.26</td><td>100.00</td></tr><tr><td>First + last</td><td>5.12</td><td>82.67</td><td>6.15</td><td>60.91</td><td>4.76</td><td>99.80</td></tr><tr><td>First + 5 random + last</td><td>4.45</td><td>82.40</td><td>5.35</td><td>58.19</td><td>4.06</td><td>90.59</td></tr><tr><td rowspan="3">GPT-3.5</td><td>All 7</td><td>5.26*</td><td>83.45*</td><td>7.71</td><td>35.66*</td><td>4.59*</td><td>100.00</td></tr><tr><td>First + last</td><td>4.75</td><td>83.04</td><td>6.05</td><td>39.81</td><td>4.69</td><td>96.42</td></tr><tr><td>First + 5 random + last</td><td>4.37</td><td>82.90</td><td>5.67</td><td>43.26</td><td>4.63</td><td>95.63</td></tr><tr><td rowspan="15">Multi-N</td><td rowspan="3">Llama-2-7B</td><td>All 5</td><td>10.76</td><td>85.04</td><td>19.06</td><td>60.09</td><td>4.00</td><td>100.00</td></tr><tr><td>First + last</td><td>9.50</td><td>84.43</td><td>15.88</td><td>54.52</td><td>3.80</td><td>91.32</td></tr><tr><td>First + 3 random + last</td><td>7.57</td><td>83.36</td><td>12.39</td><td>50.35</td><td>2.94</td><td>78.13</td></tr><tr><td rowspan="3">Llama-2-13B</td><td>All 5*</td><td>10.42*</td><td>84.60*</td><td>18.15</td><td>57.26*</td><td>3.83*</td><td>100.00</td></tr><tr><td>First + last</td><td>9.55</td><td>84.58</td><td>16.99</td><td>49.84</td><td>3.73</td><td>93.93</td></tr><tr><td>First + 3 random + last</td><td>8.27</td><td>83.79</td><td>14.84</td><td>50.09</td><td>3.18</td><td>86.14</td></tr><tr><td rowspan="3">Xgen-7B</td><td>All 5</td><td>9.04*</td><td>83.18*</td><td>17.05</td><td>60.55*</td><td>3.32*</td><td>100.00</td></tr><tr><td>First + last</td><td>7.82</td><td>83.27</td><td>14.18</td><td>51.59</td><td>3.60</td><td>92.68</td></tr><tr><td>First + 3 random + last</td><td>6.30</td><td>81.85</td><td>11.66</td><td>49.02</td><td>2.66</td><td>79.51</td></tr><tr><td rowspan="3">Mistral-7B</td><td>All 5*</td><td>9.52*</td><td>83.55*</td><td>17.03</td><td>63.02*</td><td>3.15*</td><td>100.00</td></tr><tr><td>First + last</td><td>9.11</td><td>83.69</td><td>14.99</td><td>67.14</td><td>3.51</td><td>100.37</td></tr><tr><td>First + 3 random + last</td><td>6.59</td><td>81.66</td><td>12.50</td><td>52.14</td><td>2.45</td><td>80.17</td></tr><tr><td rowspan="3">GPT-3.5</td><td>All 5*</td><td>10.26*</td><td>85.06*</td><td>18.45*</td><td>49.21*</td><td>4.09*</td><td>100.00</td></tr><tr><td>First + last</td><td>8.94</td><td>84.52</td><td>15.85</td><td>45.94</td><td>4.01</td><td>92.76</td></tr><tr><td>First + 3 random + last</td><td>8.53</td><td>84.31</td><td>15.33</td><td>44.67</td><td>3.80</td><td>89.81</td></tr></table>
|
| 178 |
+
|
| 179 |
+
Table 3: Performance in multi-document summarization on Multi-XScience (7 documents) and Multi-News (5 documents) when infilling the middle of the context window with random documents. R-2 is ROUGE-2, BS refers to BERTScore. % is the mean relative performance across all metrics compared to the baseline with all documents.
|
| 180 |
+
|
| 181 |
+
method in Adams et al. (2023), see Appendix B) reveals more details. Coherence and quality remain high and stable. In other words, the text outputs from the LLMs are always of good quality. But for informativeness and attributability, the U-shape appears again: it shows that the LLMs (even the powerful GPT-3.5) are struggling to generate content specifically sticking to the document inserted in the middle.
|
| 182 |
+
|
| 183 |
+
In the second experiment, we take the opposite approach, and put salient information at the beginning and the end, while the middle of the prompt
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
Figure 5: Reference-based evaluation on the MiddleSum dataset. We also report (gray bars) performance achieved by uniformly sampling subsets of the same size as MiddleSum from the original datasets, alongside bootstrapping variance (black lines).
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
|
| 192 |
+
is filled with noise. We keep the first and last documents, and fill the $k - 2$ middle ones with random documents. We also run a baseline just using the first and last documents as input, expected to be close to the result with random documents in between. As displayed in Table 3, filling with random noise between the first and last document (which amounts to a prompt mostly irrelevant to the reference) leads to a moderate drop in performance. For instance, on Multi-XScience, with 5 random documents between the first and last, Llama-2-13B maintains $98\%$ of its performance, and reaches a GPT-3.5 score of 4.31 as compared to 4.35 when using all 7 documents.
|
| 193 |
+
|
| 194 |
+
We conclude from these two experiments that LLMs can focus on the beginning and/or the end of their input, but largely ignore the middle. The U-shape or middle curse from Liu et al. (2023a) also applies to abstractive summarization.
|
| 195 |
+
|
| 196 |
+
# 4.2 Can we alleviate the middle curse?
|
| 197 |
+
|
| 198 |
+
To evaluate the loss of performance due to the middle curse in a natural setup, we subsample data points from each of the 5 long-input summarization datasets. We obtain sentences from the (untruncated) source aligned with the reference summary, following the procedure from §3.2. Only data points where the start index of the earliest aligned source sentence is at least 1,200 words, are kept, ensuring no salient information at the start. We randomly sample 50 data points from each of Arxiv, PubMed, GovReport and Multi-News, and 25 from SummScreenFD, forming an evaluation dataset of 225 samples which we name MiddleSum.
|
| 199 |
+
|
| 200 |
+
We evaluate LLMs on MiddleSum, keeping only reference-based evaluation as the dataset is built using saliency with regard to the reference. As expected, in Fig. 5 we see that LLMs perform noticeably worse on MiddleSum (green bars) as compared to the full set (gray bars), confirming that MiddleSum is a more challenging task.
|
| 201 |
+
|
| 202 |
+
We benchmark alternative inference methods on MiddleSum: hierarchical summarization and incremental summarization, both of which are explored in the concurrent work of Chang et al. (2023). Namely, let us divide an input $\pmb{x}$ of length $n$ into $k$ consecutive blocks of size at most $m$ (yielding $k = \left\lceil \frac{n}{m} \right\rceil$ ): $\pmb{x} = (\pmb{x}_1, \dots, \pmb{x}_k)$ .
|
| 203 |
+
|
| 204 |
+
Hierarchical summarization consists in summarizing each block and then summarizing the concatenation of summaries:
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
\boldsymbol {y} _ {i} = \operatorname {L L M} \left(\boldsymbol {x} _ {i}\right) \quad \forall i \in \{1, \dots , k \} \tag {1}
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+
$$
|
| 211 |
+
\boldsymbol {y} = \operatorname {L L M} \left(\boldsymbol {y} _ {1}, \dots , \boldsymbol {y} _ {k}\right) \tag {2}
|
| 212 |
+
$$
|
| 213 |
+
|
| 214 |
+
Incremental summarization consists in updating a summary of the text so far with content from the current text block (we have $\mathbf{y}_0 = \emptyset$ ):
|
| 215 |
+
|
| 216 |
+
$$
|
| 217 |
+
\boldsymbol {y} _ {i} = \operatorname {L L M} \left(\boldsymbol {y} _ {i - 1}, \boldsymbol {x} _ {i}\right) \forall i \in \{1, \dots , k \} \tag {3}
|
| 218 |
+
$$
|
| 219 |
+
|
| 220 |
+
$$
|
| 221 |
+
\boldsymbol {y} = \boldsymbol {y} _ {k} \tag {4}
|
| 222 |
+
$$
|
| 223 |
+
|
| 224 |
+
In both methods, the final output is $\pmb{y}$ . Noting $l$ the output length, standard inference has complexity in $\mathcal{O}(l.n^2)$ , while both alternative methods have complexity in $\mathcal{O}(k.l.m^2) = \mathcal{O}(l.n.m)$ , which is lower. For both methods and all models, we use a block size $m$ of 1,500 words (roughly 2,000 tokens), and preserve coherence by ending blocks at the earliest end of sentence reaching the length.
|
| 225 |
+
|
| 226 |
+
Results are shown in Fig. 5 (blue and purple bars), with detailed numbers in Appendix F. We also compare to a baseline consisting in adding the prompt Please also pay attention to the middle section of the input when constructing the summary, which we refer to as the Focus prompt (brown bars). Both alternative methods show promising results on open-source LLMs, notably on Mistral-7B for which they improve performance significantly. However, they are not successful and lag behind
|
| 227 |
+
|
| 228 |
+

|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
|
| 232 |
+

|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
|
| 238 |
+
Figure 6: Long-input summarization performance on Arxiv (top) and GovReport (bottom) with 5 LLMs and all 5 metrics. X-axis represents the truncated maximum source length. Xgen-7B and Mistral-7B cannot infer beyond 8k tokens.
|
| 239 |
+

|
| 240 |
+
Xgen-7B (8k) $\rightarrow$ Mistral-7B (8k) $\rightarrow$ Vicuna-1.5-7B-16k $\rightarrow$ Llama-2-7B-32k $\rightarrow$ GPT-3.5 (16k)
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
|
| 250 |
+
Focus Prompt with GPT-3.5. Across domains (see Table 8), hierarchical and incremental inference are very effective on scientific publications, which we hypothesize is due to the natural division in structured sections of such inputs. Yet, they seem to harm summaries on the other domains.
|
| 251 |
+
|
| 252 |
+
# 4.3 Is scaling context length really useful?
|
| 253 |
+
|
| 254 |
+
Experiments from §4.1 confirm that LLMs struggle to summarize information contained in the middle of their context window. This poses issues for long-input summarization: after the initial part with (usually) high saliency, important information becomes sparser, and at the same time LLMs processing capability weakens. To investigate this issue, we infer long-document summarization with length truncated at $m * 2k$ tokens, varying $m$ from 1 to 6. We use our longest context LLMs {Xgen-7B, Mistral-7B, GPT-3.5}; as well as two open-source LLMs extending Llama-2-7B context window with position interpolation (Chen et al., 2023), a method gaining traction as an efficient way to scale LLMs' context window. We use Vicuna-7B-1.5-16k $^6$ , and Llama-2-7B-32k $^7$ , with context of 16k tokens and 32k tokens, respectively.
|
| 255 |
+
|
| 256 |
+
Results on Arxiv and GovReport in Fig. 6 confirm our intuition: all metrics plateau or even decrease (see Mistral-7B) from 4k context window upwards. Two conflicting forces are at play when increasing length: giving more information to the model helps it retrieve key elements further to make
|
| 257 |
+
|
| 258 |
+
a richer summary, while at the same time reasoning over a longer context is more challenging. Yet, such a drop for Xgen-7B and Mistral-7B at 8k inference length is concerning. Both position interpolated models show more robustness ; while GPT-3.5 seems to plateau at 8k tokens. Our results suggest that in the current LLMs inference and evaluation framework, there is no need to exceed 4k tokens in the context window for open-source model.
|
| 259 |
+
|
| 260 |
+
# 4.4 Does the decoding method impact the middle curse?
|
| 261 |
+
|
| 262 |
+
We now turn our attention to the process controlling summary generation. While we had sampled all summaries with top-k sampling with $k = 50$ and temperature $T = 0.3$ so far; we now also experiment with greedy decoding, and top-p sampling (where we use $p = 0.95$ and temperature $T = 1.0$ ).
|
| 263 |
+
|
| 264 |
+
In Fig. 7, we reproduce the salient bigrams and sentences alignment experiments from §3.1 and §3.2, respectively, with the aforementioned decoding methods. As seen, the decoding method does not affect position bias: for all setups, the LLMs show similar patterns as with our previous default decoding method. We conclude that the middle curse is independent from the decoding method.
|
| 265 |
+
|
| 266 |
+
# 5 Related Work
|
| 267 |
+
|
| 268 |
+
Summarization with LLMs It is widely acknowledged that LLMs have propelled forward abstractive summarization research (Pu et al., 2023), with their summaries being highly rated by human annotators (Goyal et al., 2022; Zhang et al.,
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
|
| 272 |
+

|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
|
| 278 |
+

|
| 279 |
+
Figure 7: Summary bigrams (top) and aligned source sentences (bottom) distribution on Arxiv and GovReport for Llama-2-7B and XGen-7B, for several decoding strategies.
|
| 280 |
+
|
| 281 |
+
2023b). Liu et al. (2023d) proposes to train smaller models like BART (Lewis et al., 2020) or BRIO (Liu et al., 2022b) with contrastive learning using LLMs like ChatGPT as evaluator providing signal on which generated summary candidate is better. Summary chain-of-thought designs a custom chain-of-thought method which first prompts the LLM to list important facts, then integrates these facts into a coherent summary (Wang et al., 2023c). SummIt utilizes ChatGPT to iteratively write then refine summaries given feedback from an evaluator LLM (Zhang et al., 2023a). Chain-of-density gradually makes GPT-4 generated summaries contain more and more entities while keeping length budget constant, creating more informative albeit a bit less readable summaries (Adams et al., 2023). Ravaut et al. (2022) noticed that data points with higher compression are generally harder to summarize with pre-trained models.
|
| 282 |
+
|
| 283 |
+
Position bias in LLMs Sun et al. (2021) showed that for Transformer-based models, most recent tokens play a greater role compared to older tokens for next-token prediction. It was later found that for in-context learning, the order of examples within the prompt impacts GPT-3's performance (Liu et al., 2022a; Lu et al., 2021). Reliance on positional information affects LLMs capabilities in arithmetic (Shen et al., 2023b), in multiple
|
| 284 |
+
|
| 285 |
+
choice question-answering (Zheng et al., 2023; Pezeshkpour and Hruschka, 2023), and as text generation evaluators (Wang et al., 2023b); making it hard to rank LLMs (Alzahrani et al., 2024). Liu et al. (2023a) were the first to show that LLMs' performance weakens in the middle of the prompt (the middle curse), yet, how LLMs make use of their full context window remains poorly understood. The passkey retrieval evaluation, which consists in prompting the LLM to recall a complex string or long number inserted in its prompt, is becoming popular recently as a way of verifying LLM's processing capability at each position (Liu et al., 2023a; Jiang et al., 2024). However, this task does not measure position bias on complex, abstract reasoning tasks like summarization. A line of work attempts to solve the middle curse through compressing the prompt (Jiang et al., 2023b,c), with very promising results albeit at the cost of prompt fluency. Another approach marginalizes results over different permutations of the input to suppress dependency on input order (Tang et al., 2023). Concurrent work to ours also finds that in zero-shot summarization, LLMs tend to prefer lead content (Chhabra et al., 2024).
|
| 286 |
+
|
| 287 |
+
# 6 Conclusion
|
| 288 |
+
|
| 289 |
+
Behind the recent hype around LLMs and their amazing instruction following and content generation capabilities, our study showcases a major weakness in abstractive summarization: LLMs suffer from the middle curse and struggle to use information in the middle of their context window. LLMs do not make a consistent use of their context window as they mostly look at the beginning and (to a lesser extent) the end, which at first glance may be hidden by the prevalent lead bias in summarization datasets. Extending context window beyond 4k tokens, which has been an intense area of focus lately, is not justified in the current inference and evaluation setup in abstractive summarization. We benchmarked two alternative inference methods (hierarchical inference and incremental inference) on MiddleSum, an evaluation subset designed to showcase the middle curse. Despite encouraging results on scientific paper datasets, these methods are far from a silver bullet to the middle curse. We call for a better evaluation of LLMs, which accounts for the salient spans of the source which are effectively being processed.
|
| 290 |
+
|
| 291 |
+
# Limitations
|
| 292 |
+
|
| 293 |
+
Our work only considers open-source LLMs for summary generation and ignores closed-source LLMs such as the popular OpenAI's GPT-3.5 and GPT-4, or Anthropic's Claude. We made this decision to advocate for openness in LLM research; yet we acknowledge that it would be interesting to also investigate properties of summaries generated by these paying API LLMs.
|
| 294 |
+
|
| 295 |
+
Another limitation lays in the saliency estimation. We approximate salient content in the source through maximizing ROUGE-1 overlap with summary sentences. Other methods are also well-suited for this task, albeit at greater computational cost; for instance semantic similarity through BERTScore or BARTScore; or saliency estimation through a LLM in zero-shot.
|
| 296 |
+
|
| 297 |
+
Lastly, we can only evaluate a finite number of LLMs, and we settled for the evaluation of 5 recent and popular open-source LLMs. Findings may change as LLMs undergo changes and improvements in their training process.
|
| 298 |
+
|
| 299 |
+
# Acknowledgements
|
| 300 |
+
|
| 301 |
+
This research was supported by the SINGA scholarship and partially supported by the National Research Foundation, Prime Minister's Office, Singapore under its Campus for Research Excellence and Technological Enterprise (CREATE) programme. Any opinions, findings, conclusions, or recommendations expressed in this material are those of the author(s) and do not reflect the views of the National Research Foundation, Singapore.
|
| 302 |
+
|
| 303 |
+
We thank anonymous ARR Reviewers 1 and 3 for their great review, which have led us to include plenty more important results enriching our analysis. We also thank the AC for their constructive meta-review. We thank Florian Le Bronnec and Ruochen Zhao for their helpful proof-reading of the draft.
|
| 304 |
+
|
| 305 |
+
# References
|
| 306 |
+
|
| 307 |
+
Griffin Adams, Alexander Fabbri, Faisal Ladhak, Eric Lehman, and Noémie Elhadad. 2023. From sparse to dense: Gpt-4 summarization with chain of density prompting. arXiv preprint arXiv:2309.04269.
|
| 308 |
+
Norah Alzahrani, Hisham Abdullah Alyahya, Yazeed Alnumay, Sultan Alrashed, Shaykhah Alsubaie, Yusef Almushaykeh, Faisal Mirza, Nouf Alotaibi, Nora Altwairesh, Areeb Alowisheq, et al. 2024.
|
| 309 |
+
|
| 310 |
+
When benchmarks are targets: Revealing the sensitivity of large language model leaderboards. arXiv preprint arXiv:2402.01781.
|
| 311 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.
|
| 312 |
+
Yapei Chang, Kyle Lo, Tanya Goyal, and Mohit Iyyer. 2023. Boookscore: A systematic exploration of book-length summarization in the era of llms. arXiv preprint arXiv:2310.00785.
|
| 313 |
+
Mingda Chen, Zewei Chu, Sam Wiseman, and Kevin Gimpel. 2022. SummScreen: A dataset for abstractive screenplay summarization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8602-8615, Dublin, Ireland. Association for Computational Linguistics.
|
| 314 |
+
Shouyuan Chen, Sherman Wong, Liangjian Chen, and Yuandong Tian. 2023. Extending context window of large language models via positional interpolation. arXiv preprint arXiv:2306.15595.
|
| 315 |
+
Anshuman Chhabra, Hadi Askari, and Prasant Mohapatra. 2024. Revisiting zero-shot abstractive summarization in the era of large language models from the perspective of position bias. arXiv preprint arXiv:2401.01989.
|
| 316 |
+
Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2022. Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416.
|
| 317 |
+
Arman Cohan, Franck Dernoncourt, Doo Soon Kim, Trung Bui, Seokhwan Kim, Walter Chang, and Nazli Goharian. 2018. A discourse-aware attention model for abstractive summarization of long documents. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 615-621, New Orleans, Louisiana. Association for Computational Linguistics.
|
| 318 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171-4186, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 319 |
+
Alexander Fabbri, Irene Li, Tianwei She, Suyi Li, and Dragomir Radev. 2019. Multi-news: A large-scale multi-document summarization dataset and abstractive hierarchical model. In Proceedings of the 57th
|
| 320 |
+
|
| 321 |
+
Annual Meeting of the Association for Computational Linguistics, pages 1074-1084, Florence, Italy. Association for Computational Linguistics.
|
| 322 |
+
Angela Fan, Mike Lewis, and Yann Dauphin. 2018. Hierarchical neural story generation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 889-898, Melbourne, Australia. Association for Computational Linguistics.
|
| 323 |
+
Jinlan Fu, See-Kiong Ng, Zhengbao Jiang, and Pengfei Liu. 2023. Gptscore: Evaluate as you desire. arXiv preprint arXiv:2302.04166.
|
| 324 |
+
Bogdan Gliwa, Iwona Mochol, Maciej Biesek, and Aleksander Wawer. 2019. SAMSum corpus: A human-annotated dialogue dataset for abstractive summarization. In Proceedings of the 2nd Workshop on New Frontiers in Summarization, pages 70-79, Hong Kong, China. Association for Computational Linguistics.
|
| 325 |
+
Tanya Goyal, Junyi Jessy Li, and Greg Durrett. 2022. News summarization and evaluation in the era of gpt-3. arXiv preprint arXiv:2209.12356.
|
| 326 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. 2015. Teaching machines to read and comprehend. Advances in neural information processing systems, 28.
|
| 327 |
+
Luyang Huang, Shuyang Cao, Nikolaus Parulian, Heng Ji, and Lu Wang. 2021. Efficient attentions for long document summarization. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1419-1436, Online. Association for Computational Linguistics.
|
| 328 |
+
Sameer Jain, Vaishakh Keshava, Swarnashree Mysore Sathyendra, Patrick Fernandes, Pengfei Liu, Graham Neubig, and Chunting Zhou. 2023. Multi-dimensional evaluation of text summarization with in-context learning. In Findings of the Association for Computational Linguistics: ACL 2023, pages 8487-8495, Toronto, Canada. Association for Computational Linguistics.
|
| 329 |
+
Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023a. Mistral 7b. arXiv preprint arXiv:2310.06825.
|
| 330 |
+
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, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088.
|
| 331 |
+
Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2023b. Llm lingua: Compressing prompts for accelerated inference of large language models. arXiv preprint arXiv:2310.05736.
|
| 332 |
+
|
| 333 |
+
Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2023c. Longlmlingua: Accelerating and enhancing llms in long context scenarios via prompt compression. arXiv preprint arXiv:2310.06839.
|
| 334 |
+
Byeongchang Kim, Hyunwoo Kim, and Gunhee Kim. 2019. Abstractive summarization of Reddit posts with multi-level memory networks. 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 2519-2531, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 335 |
+
Philippe Laban, Tobias Schnabel, Paul N. Bennett, and Marti A. Hearst. 2022. Summac: Re-visiting nlibased models for inconsistency detection in summarization. Transactions of the Association for Computational Linguistics, 10:163-177.
|
| 336 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871-7880, Online. Association for Computational Linguistics.
|
| 337 |
+
Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain. Association for Computational Linguistics.
|
| 338 |
+
Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. 2022a. What makes good in-context examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pages 100–114, Dublin, Ireland and Online. Association for Computational Linguistics.
|
| 339 |
+
Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. 2023a. Lost in the middle: How language models use long contexts. arXiv preprint arXiv:2307.03172.
|
| 340 |
+
Yixin Liu, Alex Fabbri, Pengfei Liu, Yilun Zhao, Linyong Nan, Ruilin Han, Simeng Han, Shafiq Joty, Chien-Sheng Wu, Caiming Xiong, and Dragomir Radev. 2023b. Revisiting the gold standard: Grounding summarization evaluation with robust human evaluation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4140-4170, Toronto, Canada. Association for Computational Linguistics.
|
| 341 |
+
Yixin Liu, Alexander Fabbri, Yilun Zhao, Pengfei Liu, Shafiq Joty, Chien-Sheng Wu, Caiming Xiong, and Dragomir Radev. 2023c. Towards interpretable and efficient automatic reference-based summarization
|
| 342 |
+
|
| 343 |
+
evaluation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 16360-16368, Singapore. Association for Computational Linguistics.
|
| 344 |
+
Yixin Liu, Alexander R Fabbri, Pengfei Liu, Dragomir Radev, and Arman Cohan. 2023d. On learning to summarize with large language models as references. arXiv preprint arXiv:2305.14239.
|
| 345 |
+
Yixin Liu, Pengfei Liu, Dragomir Radev, and Graham Neubig. 2022b. BRIO: Bringing order to abstractive summarization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2890-2903, Dublin, Ireland. Association for Computational Linguistics.
|
| 346 |
+
Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, and Pontus Stenetorp. 2021. Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity. arXiv preprint arXiv:2104.08786.
|
| 347 |
+
Yao Lu, Yue Dong, and Laurent Charlin. 2020. Multi-XScience: A large-scale dataset for extreme multi-document summarization of scientific articles. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 8068-8074, Online. Association for Computational Linguistics.
|
| 348 |
+
Zheheng Luo, Qianqian Xie, and Sophia Ananiadou. 2023. Chatgpt as a factual inconsistency evaluator for text summarization.
|
| 349 |
+
Frank J Massey Jr. 1951. The kolmogorov-smirnov test for goodness of fit. Journal of the American statistical Association, 46(253):68-78.
|
| 350 |
+
Shashi Narayan, Shay B. Cohen, and Mirella Lapata. 2018. Don't give me the details, just the summary! topic-aware convolutional neural networks for extreme summarization. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1797-1807, Brussels, Belgium. Association for Computational Linguistics.
|
| 351 |
+
Erik Nijkamp, Tian Xie, Hiroaki Hayashi, Bo Pang, Congying Xia, Chen Xing, Jesse Vig, Semih Yavuz, Philippe Laban, Ben Krause, et al. 2023. Xgen-7b technical report. arXiv preprint arXiv:2309.03450.
|
| 352 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730-27744.
|
| 353 |
+
Bo Pang, Erik Nijkamp, Wojciech Krysciński, Silvio Savarese, Yingbo Zhou, and Caiming Xiong. 2022. Long document summarization with top-down and bottom-up inference. arXiv preprint arXiv:2203.07586.
|
| 354 |
+
|
| 355 |
+
Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. 2023. The refinedweb dataset for falcon llm: outperforming curated corpora with web data, and web data only. arXiv preprint arXiv:2306.01116.
|
| 356 |
+
Bowen Peng, Jeffrey Quesnelle, Honglu Fan, and Enrico Shippole. 2023. Yarn: Efficient context window extension of large language models. arXiv preprint arXiv:2309.00071.
|
| 357 |
+
Pouya Pezeshkpour and Estevam Hruschka. 2023. Large language models sensitivity to the order of options in multiple-choice questions. arXiv preprint arXiv:2308.11483.
|
| 358 |
+
Ofir Press, Noah A Smith, and Mike Lewis. 2021. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409.
|
| 359 |
+
Xiao Pu, Mingqi Gao, and Xiaojun Wan. 2023. Summarization is (almost) dead. arXiv preprint arXiv:2309.09558.
|
| 360 |
+
Mathieu Ravaut, Shafiq Joty, and Nancy Chen. 2022. Towards summary candidates fusion. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8488-8504, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 361 |
+
Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilic, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Galle, et al. 2022. Bloom: A 176b-parameter open-access multilingual language model. arXiv preprint arXiv:2211.05100.
|
| 362 |
+
Abigail See, Peter J. Liu, and Christopher D. Manning, 2017. Get to the point: Summarization with pointer-generator networks. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1073-1083, Vancouver, Canada. Association for Computational Linguistics.
|
| 363 |
+
Uri Shaham, Maor Ivgi, Avia Efrat, Jonathan Berant, and Omer Levy. 2023. Zeroscrolls: A zero-shot benchmark for long text understanding. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 7977-7989, Singapore. Association for Computational Linguistics.
|
| 364 |
+
Uri Shaham, Elad Segal, Maor Ivgi, Avia Efrat, Ori Yoran, Adi Haviv, Ankit Gupta, Wenhan Xiong, Mor Geva, Jonathan Berant, and Omer Levy. 2022. SCROLLS: Standardized CompaRison over long language sequences. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 12007-12021, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 365 |
+
|
| 366 |
+
Chenhui Shen, Liying Cheng, Yang You, and Lidong Bing. 2023a. Are large language models good evaluators for abstractive summarization? arXiv preprint arXiv:2305.13091.
|
| 367 |
+
Ruoqi Shen, Sébastien Bubeck, Ronen Eldan, Yin Tat Lee, Yuanzhi Li, and Yi Zhang. 2023b. Positional description matters for transformers arithmetic. arXiv preprint arXiv:2311.14737.
|
| 368 |
+
Simeng Sun, Kalpesh Krishna, Andrew Mattarella-Micke, and Mohit Iyyer. 2021. Do long-range language models actually use long-range context? In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 807-822, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 369 |
+
Yutao Sun, Li Dong, Barun Patra, Shuming Ma, Shaohan Huang, Alon Benhaim, Vishrav Chaudhary, Xia Song, and Furu Wei. 2022. A length-extrapolatable transformer. arXiv preprint arXiv:2212.10554.
|
| 370 |
+
Raphael Tang, Xinyu Zhang, Xueguang Ma, Jimmy Lin, and Ferhan Ture. 2023. Found in the middle: Permutation self-consistency improves listwise ranking in large language models. arXiv preprint arXiv:2310.07712.
|
| 371 |
+
Yi Tay, Mostafa Dehghani, Vinh Q Tran, Xavier Garcia, Jason Wei, Xuezhi Wang, Hyung Won Chung, Dara Bahri, Tal Schuster, Steven Zheng, et al. 2022. UI2: Unifying language learning paradigms. In The Eleventh International Conference on Learning Representations.
|
| 372 |
+
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.
|
| 373 |
+
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.
|
| 374 |
+
Jiaan Wang, Yunlong Liang, Fandong Meng, Haoxiang Shi, Zhixu Li, Jinan Xu, Jianfeng Qu, and Jie Zhou. 2023a. Is chatgpt a good nlg evaluator? a preliminary study. arXiv preprint arXiv:2303.04048.
|
| 375 |
+
Peiyi Wang, Lei Li, Liang Chen, Dawei Zhu, Binghuai Lin, Yunbo Cao, Qi Liu, Tianyu Liu, and Zhifang Sui. 2023b. Large language models are not fair evaluators. arXiv preprint arXiv:2305.17926.
|
| 376 |
+
Yiming Wang, Zhuosheng Zhang, and Rui Wang. 2023c. Element-aware summarization with large language models: Expert-aligned evaluation and chain-of-thought method. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8640-8665,
|
| 377 |
+
|
| 378 |
+
Toronto, Canada. Association for Computational Linguistics.
|
| 379 |
+
Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. 2021. Finetuned language models are zero-shot learners. arXiv preprint arXiv:2109.01652.
|
| 380 |
+
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.
|
| 381 |
+
Wen Xiao, Iz Beltagy, Giuseppe Carenini, and Arman Cohan. 2022. PRIMERA: Pyramid-based masked sentence pre-training for multi-document summarization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5245-5263, Dublin, Ireland. Association for Computational Linguistics.
|
| 382 |
+
Jiawen Xie, Qi Su, Shaoting Zhang, and Xiaofan Zhang. 2023. Alleviating exposure bias via multi-level contrastive learning and deviation simulation in abstractive summarization. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 9732-9747, Toronto, Canada. Association for Computational Linguistics.
|
| 383 |
+
Wenhan Xiong, Anchit Gupta, Shubham Toshniwal, Yashar Mehdad, and Scott Yih. 2023. Adapting pretrained text-to-text models for long text sequences. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5566-5578, Singapore. Association for Computational Linguistics.
|
| 384 |
+
Haopeng Zhang, Xiao Liu, and Jiawei Zhang. 2023a. Summit: Iterative text summarization via chatgpt. arXiv preprint arXiv:2305.14835.
|
| 385 |
+
Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q Weinberger, and Yoav Artzi. 2019. Bertscore: Evaluating text generation with bert. arXiv preprint arXiv:1904.09675.
|
| 386 |
+
Tianyi Zhang, Faisal Ladhak, Esin Durmus, Percy Liang, Kathleen McKeown, and Tatsunori B Hashimoto. 2023b. Benchmarking large language models for news summarization. arXiv preprint arXiv:2301.13848.
|
| 387 |
+
Chao Zhao, Faeze Brahman, Kaiqiang Song, Wenlin Yao, Dian Yu, and Snigdha Chaturvedi. 2022a. NarraSum: A large-scale dataset for abstractive narrative summarization. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages
|
| 388 |
+
|
| 389 |
+
182-197, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 390 |
+
|
| 391 |
+
Yao Zhao, Misha Khalman, Rishabh Joshi, Shashi Narayan, Mohammad Saleh, and Peter J Liu. 2022b. Calibrating sequence likelihood improves conditional language generation. arXiv preprint arXiv:2210.00045.
|
| 392 |
+
Chujie Zheng, Hao Zhou, Fandong Meng, Jie Zhou, and Minlie Huang. 2023. Large language models are not robust multiple choice selectors. arXiv e-prints, pages arXiv-2309.
|
| 393 |
+
Qingyu Zhou, Nan Yang, Furu Wei, Shaohan Huang, Ming Zhou, and Tiejun Zhao. 2018. Neural document summarization by jointly learning to score and select sentences. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 654-663, Melbourne, Australia. Association for Computational Linguistics.
|
| 394 |
+
|
| 395 |
+
# A Statistics
|
| 396 |
+
|
| 397 |
+
In Table 4, we include statistics on each of the abstractive summarization datasets under consideration. We use the non-anonymized version for CNN/DM (See et al., 2017). For Reddit-TIFU, we use the Long subset, and SummScreenFD, is the ForeverDreaming (FD) subset of SummScreen. GovReport and SummScreenFD are part of the long-input benchmarks Scrolls (Shaham et al., 2022) and ZeroScrolls (Shaham et al., 2023).
|
| 398 |
+
|
| 399 |
+
In Fig. 8, we illustrate how much of the source document(s) is visible with a 4k context window (Llama-2).
|
| 400 |
+
|
| 401 |
+
# B GPT-3.5 Evaluation
|
| 402 |
+
|
| 403 |
+
To evaluate LLM-generated summaries with GPT-3.5, we use the following prompt template:
|
| 404 |
+
|
| 405 |
+
Score the following summary generated by another system given the source on a scale from 1 to 5 with regards to overall general summary quality. 1-point indicates a low quality summary, and 5 points a very high quality summary. A high quality summary is grammatical, fluent, informative, relevant, coherent and factually consistent with the source. Let's think step-by-step and just output the score.
|
| 406 |
+
|
| 407 |
+
Source:
|
| 408 |
+
|
| 409 |
+
[source]
|
| 410 |
+
|
| 411 |
+
Instruction:
|
| 412 |
+
|
| 413 |
+
Summarize the above text in [n] sentences.
|
| 414 |
+
|
| 415 |
+
Summary:
|
| 416 |
+
|
| 417 |
+
[summary generated by the LLM to evaluate]
|
| 418 |
+
|
| 419 |
+
Your score:
|
| 420 |
+
|
| 421 |
+
When evaluating for the specific aspect of informativeness, the first paragraph becomes:
|
| 422 |
+
|
| 423 |
+
Score the following summary generated by another system given the source on a scale from 1 to 5 with regards to how informative the summary is. 1 point indicates a not informative summary, and 5 points a very informative summary. An informative summary captures the important information in the article and presents it accurately and concisely. Let's think step-by-step and just output the score.
|
| 424 |
+
|
| 425 |
+
When evaluating for the specific aspect of overall quality, the first paragraph becomes:
|
| 426 |
+
|
| 427 |
+
Score the following summary generated by another system given the source on a scale from 1 to 5 with regards to its quality. 1 point indicates a low quality summary, and 5 points a very high quality summary. A high quality summary is comprehensible and understandable. Let's think step-by-step and just output the score.
|
| 428 |
+
|
| 429 |
+
When evaluating for the specific aspect of coherence, the first paragraph becomes:
|
| 430 |
+
|
| 431 |
+
Score the following summary generated by another system given the source on a scale from 1 to 5 with regards to its coherence. 1 point indicates an incoherent summary, and 5 points a very coherent summary. A coherent summary is well-structured and well-organized. Let's think step-by-step and just output the score.
|
| 432 |
+
|
| 433 |
+
When evaluating for the specific aspect of attributability, the first paragraph becomes:
|
| 434 |
+
|
| 435 |
+
Score the following summary generated by another system given the source on a scale from 1 to 5 with regards to how attributable it is. 1 point indicates a not very attributable summary, with many hallucinations, and 5 points a summary very attributable to the source, consistent with the source. In a very attributable summary, all the informa
|
| 436 |
+
|
| 437 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Domain</td><td rowspan="2">#Docs</td><td colspan="3"># Data points</td><td colspan="3"># Sentences</td><td colspan="2"># Words</td><td colspan="3"># Tokens</td></tr><tr><td>Train</td><td>Val</td><td>Test</td><td>Doc.</td><td>Summ.</td><td>Inf.</td><td>Doc.</td><td>Summ.</td><td>Doc.</td><td>Summ.</td><td>Max gen.</td></tr><tr><td>CNN/DM (Hermann et al., 2015)</td><td>News</td><td>1.00</td><td>287,113</td><td>13,334</td><td>11,490</td><td>33.37</td><td>3.79</td><td>3</td><td>773.23</td><td>57.75</td><td>994.56</td><td>84.47</td><td>192</td></tr><tr><td>XSum (Narayan et al., 2018)</td><td>News</td><td>1.00</td><td>204,045</td><td>11,332</td><td>11,334</td><td>19.11</td><td>1.00</td><td>1</td><td>433.05</td><td>23.19</td><td>566.79</td><td>31.63</td><td>64</td></tr><tr><td>Reddit-TIFU (Long) (Kim et al., 2019)</td><td>Social Media</td><td>1.00</td><td>33,701</td><td>4,214</td><td>4,221</td><td>22.21</td><td>1.45</td><td>2</td><td>444.20</td><td>23.37</td><td>532.18</td><td>29.82</td><td>128</td></tr><tr><td>SAMSum (Gliwa et al., 2019)</td><td>Dialogue</td><td>1.00</td><td>14,732</td><td>818</td><td>819</td><td>8.96</td><td>2.01</td><td>2</td><td>126.93</td><td>23.12</td><td>175.54</td><td>29.69</td><td>128</td></tr><tr><td>Multi-XScience (Lu et al., 2020)</td><td>Science</td><td>5.06</td><td>30,369</td><td>5,066</td><td>5,093</td><td>30.55</td><td>4.86</td><td>5</td><td>773.36</td><td>120.65</td><td>965.99</td><td>157.77</td><td>384</td></tr><tr><td>Arxiv (Cohan et al., 2018)</td><td>Science</td><td>1.00</td><td>203,037</td><td>6,436</td><td>6,440</td><td>250.37</td><td>6.23</td><td>6</td><td>6,446.11</td><td>166.72</td><td>8,940.00</td><td>225.58</td><td>512</td></tr><tr><td>PubMed (Cohan et al., 2018)</td><td>Science (medical)</td><td>1.00</td><td>119,924</td><td>6,633</td><td>6,658</td><td>101.61</td><td>7.59</td><td>7</td><td>3,142.92</td><td>208.03</td><td>4,602.62</td><td>324.97</td><td>512</td></tr><tr><td>GovReport (Huang et al., 2021)</td><td>Legal</td><td>1.00</td><td>17,517</td><td>973</td><td>973</td><td>282.86</td><td>23.14</td><td>22</td><td>8,363.22</td><td>649.01</td><td>11,025.02</td><td>879.10</td><td>768</td></tr><tr><td>SummScreenFD (Chen et al., 2022)</td><td>TV Transcripts</td><td>1.00</td><td>3,673</td><td>338</td><td>337</td><td>727.06</td><td>5.26</td><td>5</td><td>7,618.20</td><td>123.34</td><td>10,067.39</td><td>157.44</td><td>512</td></tr><tr><td>Multi-News (Fabbri et al., 2019)</td><td>News</td><td>2.73</td><td>44,972</td><td>5,622</td><td>5,622</td><td>79.02</td><td>9.88</td><td>10</td><td>2,101.49</td><td>256.55</td><td>2,998.52</td><td>324.29</td><td>512</td></tr></table>
|
| 438 |
+
|
| 439 |
+
Table 4: Statistics on the 10 datasets used for experiments. Doc. is the source document, Summ. the ground-truth summary, Inf. refers to the number of desired sentences to be in the summary prompted to each LLM during inference. Statistics are computed on the entire test set. # Tokens is calculated with Llama-2's tokenizer. Max gen. is the maximum tokens size that we set when decoding summaries. Underlined test sizes correspond to datasets where we subsample randomly 1,000 test data points for evaluation.
|
| 440 |
+
|
| 441 |
+
<table><tr><td>Model</td><td>Metric</td><td>CNN/DM</td><td>XSum</td><td>Reddit-TIFU</td><td>SAMSum</td><td>Multi-X</td><td>AVG</td><td>Arxiv</td><td>PubMed</td><td>GovReport</td><td>SummScreenFD</td><td>Multi-N</td><td>AVG</td></tr><tr><td rowspan="2">SOTA</td><td>ROUGE-2</td><td>24.17</td><td>27.09</td><td>11.13</td><td>29.88</td><td>4.60</td><td>19.37</td><td>21.93</td><td>23.26</td><td>30.90</td><td>10.70</td><td>13.60</td><td>20.07</td></tr><tr><td># sents</td><td>2.89</td><td>1.00</td><td>1.34</td><td>2.08</td><td>2.28</td><td>1.19</td><td>1.78</td><td>1.27</td><td>1.80</td><td>5.49</td><td>2.79</td><td>2.63</td></tr><tr><td rowspan="5">Flan-UL2</td><td>ROUGE-2</td><td>20.28</td><td>22.74</td><td>8.61</td><td>28.21</td><td>3.04</td><td>16.58</td><td>9.37</td><td>7.42</td><td>4.76</td><td>4.33</td><td>7.79</td><td>6.73</td></tr><tr><td>BERTScore</td><td>88.05</td><td>91.94</td><td>87.42</td><td>92.29</td><td>81.87</td><td>88.31</td><td>83.82</td><td>83.07</td><td>83.53</td><td>84.85</td><td>84.97</td><td>84.05</td></tr><tr><td>A3CU</td><td>32.69</td><td>32.11</td><td>16.89</td><td>49.48</td><td>5.98</td><td>27.43</td><td>14.79</td><td>13.83</td><td>12.00</td><td>8.37</td><td>16.99</td><td>13.20</td></tr><tr><td>SummaC</td><td>69.96</td><td>24.27</td><td>35.76</td><td>30.19</td><td>57.98</td><td>43.63</td><td>67.56</td><td>60.96</td><td>73.80</td><td>56.00</td><td>76.80</td><td>67.02</td></tr><tr><td>GPT-3.5</td><td>3.16</td><td>3.52</td><td>1.61</td><td>2.92</td><td>3.23</td><td>2.89</td><td>3.11</td><td>3.16</td><td>2.46</td><td>2.11</td><td>3.36</td><td>2.84</td></tr><tr><td rowspan="6">Llama-2-7B</td><td># sents</td><td>3.00</td><td>1.27</td><td>2.00</td><td>1.83</td><td>7.77</td><td>3.17</td><td>5.80</td><td>6.61</td><td>12.88</td><td>5.77</td><td>18.69</td><td>9.95</td></tr><tr><td>ROUGE-2</td><td>14.16</td><td>7.27</td><td>4.17</td><td>15.53</td><td>4.87</td><td>9.20</td><td>13.84</td><td>12.89</td><td>16.22</td><td>5.36</td><td>12.37</td><td>12.14</td></tr><tr><td>BERTScore</td><td>87.32</td><td>87.47</td><td>85.87</td><td>89.95</td><td>83.32</td><td>86.79</td><td>83.84</td><td>82.82</td><td>85.28</td><td>85.41</td><td>85.63</td><td>84.60</td></tr><tr><td>A3CU</td><td>29.04</td><td>14.18</td><td>12.15</td><td>35.64</td><td>6.39</td><td>19.48</td><td>16.78</td><td>16.60</td><td>17.23</td><td>9.66</td><td>22.23</td><td>16.50</td></tr><tr><td>SummaC</td><td>35.58</td><td>25.24</td><td>26.38</td><td>24.56</td><td>49.39</td><td>32.23</td><td>53.22</td><td>51.82</td><td>70.47</td><td>39.01</td><td>57.49</td><td>54.40</td></tr><tr><td>GPT-3.5</td><td>4.10</td><td>4.24</td><td>2.83</td><td>3.61</td><td>4.42</td><td>3.84</td><td>4.21</td><td>4.19</td><td>3.43</td><td>2.71</td><td>3.91</td><td>3.69</td></tr><tr><td rowspan="6">Llama-2-13B</td><td># sents</td><td>3.01</td><td>1.16</td><td>2.00</td><td>1.98</td><td>5.22</td><td>2.67</td><td>5.92</td><td>7.22</td><td>27.75</td><td>5.16</td><td>12.79</td><td>11.77</td></tr><tr><td>ROUGE-2</td><td>14.10</td><td>8.61</td><td>4.22</td><td>14.16</td><td>5.29</td><td>9.28</td><td>13.52</td><td>15.24</td><td>17.28</td><td>5.62</td><td>12.58</td><td>12.85</td></tr><tr><td>BERTScore</td><td>87.40</td><td>87.94</td><td>85.85</td><td>89.45</td><td>83.58</td><td>86.84</td><td>83.88</td><td>84.24</td><td>85.29</td><td>85.42</td><td>85.84</td><td>84.93</td></tr><tr><td>A3CU</td><td>29.57</td><td>16.30</td><td>12.94</td><td>34.19</td><td>7.29</td><td>20.06</td><td>16.44</td><td>19.21</td><td>17.01</td><td>10.30</td><td>23.09</td><td>17.21</td></tr><tr><td>SummaC</td><td>33.83</td><td>24.07</td><td>25.76</td><td>24.81</td><td>41.70</td><td>30.03</td><td>55.09</td><td>56.00</td><td>76.44</td><td>38.74</td><td>53.12</td><td>55.88</td></tr><tr><td>GPT-3.5</td><td>4.12</td><td>4.34</td><td>2.91</td><td>3.45</td><td>4.45</td><td>3.85</td><td>4.06</td><td>4.13</td><td>3.66</td><td>2.69</td><td>3.89</td><td>3.69</td></tr><tr><td rowspan="6">Xgen-7B</td><td># sents</td><td>3.93</td><td>2.24</td><td>2.62</td><td>2.34</td><td>5.94</td><td>3.41</td><td>8.07</td><td>13.50</td><td>22.46</td><td>10.60</td><td>9.05</td><td>12.74</td></tr><tr><td>ROUGE-2</td><td>14.55</td><td>6.00</td><td>3.98</td><td>14.51</td><td>5.54</td><td>8.92</td><td>12.31</td><td>13.99</td><td>14.68</td><td>4.24</td><td>11.07</td><td>11.26</td></tr><tr><td>BERTScore</td><td>87.07</td><td>87.12</td><td>85.84</td><td>89.53</td><td>83.42</td><td>86.60</td><td>83.07</td><td>82.87</td><td>83.94</td><td>83.91</td><td>84.95</td><td>83.75</td></tr><tr><td>A3CU</td><td>27.88</td><td>12.75</td><td>12.56</td><td>33.18</td><td>7.45</td><td>18.76</td><td>15.28</td><td>18.79</td><td>15.65</td><td>8.44</td><td>21.33</td><td>18.90</td></tr><tr><td>SummaC</td><td>52.25</td><td>37.95</td><td>28.40</td><td>25.63</td><td>44.36</td><td>37.72</td><td>53.28</td><td>60.56</td><td>65.22</td><td>42.03</td><td>56.45</td><td>55.51</td></tr><tr><td>GPT-3.5</td><td>3.82</td><td>3.97</td><td>2.78</td><td>3.52</td><td>4.37</td><td>3.69</td><td>3.96</td><td>3.99</td><td>2.78</td><td>2.42</td><td>3.58</td><td>3.35</td></tr><tr><td rowspan="6">Mistral-7B</td><td># sents</td><td>3.10</td><td>1.12</td><td>2.64</td><td>2.25</td><td>7.73</td><td>3.37</td><td>12.00</td><td>11.88</td><td>25.83</td><td>27.13</td><td>16.43</td><td>18.65</td></tr><tr><td>ROUGE-2</td><td>16.37</td><td>7.05</td><td>4.34</td><td>14.66</td><td>5.57</td><td>9.60</td><td>9.77</td><td>14.32</td><td>11.36</td><td>3.11</td><td>12.61</td><td>10.23</td></tr><tr><td>BERTScore</td><td>87.50</td><td>87.45</td><td>85.71</td><td>89.78</td><td>83.16</td><td>86.72</td><td>81.44</td><td>82.85</td><td>82.43</td><td>81.46</td><td>85.07</td><td>82.65</td></tr><tr><td>A3CU</td><td>30.60</td><td>13.14</td><td>13.08</td><td>32.21</td><td>6.96</td><td>19.20</td><td>12.66</td><td>16.31</td><td>14.92</td><td>8.40</td><td>22.22</td><td>14.90</td></tr><tr><td>SummaC</td><td>53.67</td><td>24.79</td><td>30.51</td><td>26.82</td><td>62.49</td><td>39.66</td><td>57.81</td><td>69.03</td><td>67.07</td><td>35.76</td><td>68.50</td><td>59.63</td></tr><tr><td>GPT-3.5</td><td>3.92</td><td>4.30</td><td>2.73</td><td>3.63</td><td>4.47</td><td>3.81</td><td>2.83</td><td>3.63</td><td>2.01</td><td>1.88</td><td>3.60</td><td>2.79</td></tr><tr><td rowspan="6">GPT-3.5</td><td># sents</td><td>3.00</td><td>1.00</td><td>2.00</td><td>1.98</td><td>4.99</td><td>2.59</td><td>5.60</td><td>6.46</td><td>15.82</td><td>5.01</td><td>9.27</td><td>8.43</td></tr><tr><td>ROUGE-2</td><td>13.17</td><td>8.19</td><td>5.17</td><td>14.47</td><td>5.37</td><td>9.27</td><td>13.78</td><td>13.90</td><td>17.94</td><td>6.55</td><td>12.28</td><td>12.89</td></tr><tr><td>BERTScore</td><td>87.26</td><td>87.90</td><td>86.38</td><td>89.79</td><td>83.82</td><td>87.03</td><td>84.14</td><td>84.29</td><td>85.99</td><td>86.13</td><td>86.02</td><td>85.31</td></tr><tr><td>A3CU</td><td>26.72</td><td>15.21</td><td>13.37</td><td>35.85</td><td>7.90</td><td>19.81</td><td>17.98</td><td>18.76</td><td>19.32</td><td>12.69</td><td>22.95</td><td>18.34</td></tr><tr><td>SummaC</td><td>35.14</td><td>23.22</td><td>26.00</td><td>24.92</td><td>37.56</td><td>29.37</td><td>50.11</td><td>47.36</td><td>73.23</td><td>40.58</td><td>48.91</td><td>52.04</td></tr><tr><td>GPT-3.5</td><td>4.12</td><td>4.58</td><td>3.08</td><td>3.81</td><td>4.61</td><td>4.04</td><td>4.41</td><td>4.36</td><td>4.03</td><td>3.39</td><td>4.14</td><td>4.07</td></tr></table>
|
| 442 |
+
|
| 443 |
+
Table 5: Performance achieved by the LLMs on each dataset for all 5 metrics. # sents is the average number of sentences in generated summaries. Multi-X is short for Multi-XScience, Multi-N is Multi-News dataset, AVG columns represent the average over standard-length and long-input datasets, respectively. SOTA numbers are taken from (Xie et al., 2023) on CNN/DM, from (Zhao et al., 2022b) XSum, Reddit-TIFU and SAMSum, from (Pang et al., 2022) for Arxiv and PubMed, from (Xiong et al., 2023) for GovReport and SummScreenFD, from (Xiao et al., 2022) for Multi-News and Multi-XScience. Due to a lack of reported results for other metrics, we only include ROUGE-2 scores for SOTA models. Best scores (outside of SOTA) are in bold.
|
| 444 |
+
|
| 445 |
+

|
| 446 |
+
|
| 447 |
+

|
| 448 |
+
|
| 449 |
+

|
| 450 |
+
|
| 451 |
+

|
| 452 |
+
|
| 453 |
+

|
| 454 |
+
|
| 455 |
+

|
| 456 |
+
Figure 8: Fraction of the source which fits into the context window, for several context window lengths with Llama-2 tokenization. The black dashed lines correspond to Llama-2 context window length of 4k tokens. On standard-length datasets, 4k is enough to access $100\%$ of all source documents; but on the long-input datasets such as GovReport or SummScreenFD, such a context window may not even fit $50\%$ of the source.
|
| 457 |
+
|
| 458 |
+

|
| 459 |
+
|
| 460 |
+

|
| 461 |
+
|
| 462 |
+

|
| 463 |
+
|
| 464 |
+

|
| 465 |
+
|
| 466 |
+
<table><tr><td>Model</td><td>CNN/DM</td><td>XSum</td><td>Reddit-TIFU</td><td>SAMSum</td><td>Multi-XScience</td><td>Arxiv</td><td>PubMed</td><td>GovReport</td><td>SummScreenFD</td><td>Multi-News</td></tr><tr><td>Flan-UL2</td><td>0.000</td><td>0.012</td><td>0.000</td><td>0.057</td><td>0.000</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Llama-2-7B</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.490</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td></tr><tr><td>Llama-2-13B</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td></tr><tr><td>Xgen-7B</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td></tr><tr><td>Mistral-7B</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td></tr><tr><td>GPT-3.5</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.135</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td></tr></table>
|
| 467 |
+
|
| 468 |
+
Table 6: P-value of a 2-sample Kolmogorov-Smirnov test between the position distribution of bigrams in LLM-generated summaries and bigrams in reference summaries. We round numbers to 3 decimals. Numbers in gray correspond to non-significant differences (p-value above 0.01).
|
| 469 |
+
|
| 470 |
+

|
| 471 |
+
Figure 9: Relative location of summary bigrams within the source on MiddleSum for Llama-2-13B with different inference methods.
|
| 472 |
+
|
| 473 |
+
tion is fully attributable to the source. Let's think step-by-step and just output the score.
|
| 474 |
+
|
| 475 |
+
# C Baseline Performance
|
| 476 |
+
|
| 477 |
+
In Table 5, we report zero-shot performance with the 6 LLMs described in §2. We note that for standard-length datasets, Flan-UL2 is dominating, perhaps due to its better instruction-tuning; while for long-context ones, GPT-3.5 takes the lead. GPT-3.5 is always consistently ahead on the GPT-3.5
|
| 478 |
+
|
| 479 |
+
metric, showing the preference of the LLM for its own generation when used as an evaluator.
|
| 480 |
+
|
| 481 |
+
# D Statistical Significance on RQ1
|
| 482 |
+
|
| 483 |
+
In Table 6, we run a 2-sample Kolmogorov-Smirnov statistical significance test to compare the bigrams position distribution of LLMs with the reference summaries.
|
| 484 |
+
|
| 485 |
+
# E Results with base Models
|
| 486 |
+
|
| 487 |
+
In Fig. 10, we repeat the analysis from §3.1 (bigrams alignment) and §3.2 (sentences alignment) but this time using the base model versions (not instruction-tuned) of Llama-2-7B and Llama-2-13B. As we can see, the position bias is even stronger for base models than for chatbot models, suggesting that this bias is acquired during pre-training.
|
| 488 |
+
|
| 489 |
+
# F More Results on MiddleSum
|
| 490 |
+
|
| 491 |
+
In Table 7, we show statistics on the MiddleSum evaluation dataset.
|
| 492 |
+
|
| 493 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Domain</td><td rowspan="2"># Docs</td><td rowspan="2"># Data points</td><td colspan="2"># Sentences</td><td colspan="2"># Words</td><td colspan="2"># Tokens</td></tr><tr><td>Doc.</td><td>Summ.</td><td>Doc.</td><td>Summ.</td><td>Doc.</td><td>Summ.</td></tr><tr><td>Arxiv</td><td>Science</td><td>1.00</td><td>50</td><td>299.36</td><td>5.84</td><td>7,605.52</td><td>165.80</td><td>10,846.00</td><td>226.22</td></tr><tr><td>PubMed</td><td>Science (medical)</td><td>1.00</td><td>50</td><td>157.60</td><td>6.96</td><td>5,090.84</td><td>203.04</td><td>7,783.02</td><td>329.12</td></tr><tr><td>GovReport</td><td>Legal</td><td>1.00</td><td>50</td><td>445.64</td><td>22.80</td><td>13,308.70</td><td>656.10</td><td>17,462.90</td><td>883.10</td></tr><tr><td>SummScreen</td><td>TV transcripts</td><td>1.00</td><td>25</td><td>762.24</td><td>3.56</td><td>9,732.44</td><td>88.60</td><td>12,878.08</td><td>115.00</td></tr><tr><td>MultiNews</td><td>News</td><td>3.18</td><td>50</td><td>211.34</td><td>9.86</td><td>5,939.32</td><td>269.84</td><td>8,130.78</td><td>336.16</td></tr><tr><td>Overall</td><td>Mixed</td><td>1.48</td><td>225</td><td>332.24</td><td>10.50</td><td>8,180.13</td><td>297.57</td><td>11,258.16</td><td>407.15</td></tr></table>
|
| 494 |
+
|
| 495 |
+
Table 7: Statistics on the MiddleSum evaluation dataset, breaking down on each domain. Doc. is the source document, Summ. the ground-truth summary. # Tokens is calculated with Llama-2's tokenizer.
|
| 496 |
+
|
| 497 |
+

|
| 498 |
+
|
| 499 |
+

|
| 500 |
+
|
| 501 |
+

|
| 502 |
+
|
| 503 |
+

|
| 504 |
+
|
| 505 |
+

|
| 506 |
+
|
| 507 |
+

|
| 508 |
+
Figure 10: Summary bigrams (top) and aligned source sentences (bottom) distribution for Llama-2-7B and Llama-2-13B on the long-input datasets, both with base (dashed lines) and chat (full lines) models.
|
| 509 |
+
|
| 510 |
+

|
| 511 |
+
|
| 512 |
+

|
| 513 |
+
|
| 514 |
+

|
| 515 |
+
|
| 516 |
+

|
| 517 |
+
|
| 518 |
+
In Fig. 9, we repeat the salient bigrams analysis from Fig. 1 for Llama-2-13B on MiddleSum. We note that both hierarchical and incremental inference notably decrease reliance on lead bigrams compared to standard inference, while the simple Focus Prompt does not.
|
| 519 |
+
|
| 520 |
+
In Table 8, we show reference-based evaluation on each of the 5 subsets of MiddleSum.
|
| 521 |
+
|
| 522 |
+
# G Software
|
| 523 |
+
|
| 524 |
+
We use the following Python libraries, all open source:
|
| 525 |
+
|
| 526 |
+
- numpy, version 1.24.3
|
| 527 |
+
- torch, version 2.0.1
|
| 528 |
+
scikit-learn, version 1.0.2
|
| 529 |
+
- sentencepiece, version 0.1.97
|
| 530 |
+
- ntlk, version 3.8.1
|
| 531 |
+
- spacy, version 3.6.0
|
| 532 |
+
scipy, version 1.10.1
|
| 533 |
+
|
| 534 |
+
- rouge-score, version 0.1.2
|
| 535 |
+
- bert-score, version 0.3.13
|
| 536 |
+
summac, version 0.0.03
|
| 537 |
+
- tiktoken, version 0.4.0
|
| 538 |
+
openai, version 0.28.0
|
| 539 |
+
- huggingface-hub, version 0.17.2
|
| 540 |
+
- datasets, version 2.14.5
|
| 541 |
+
accelerate, version 0.21.0
|
| 542 |
+
- tokenizers, version 0.14.1
|
| 543 |
+
- transformers, version 4.34.0
|
| 544 |
+
|
| 545 |
+
<table><tr><td>Model</td><td>Metric</td><td>Inference</td><td>MiddleSum (MS)</td><td>MS/Arxiv</td><td>MS/PubMed</td><td>MS/GovReport</td><td>MS/SummScreen</td><td>MS/Multi-News</td></tr><tr><td rowspan="12">Llama-2-7B</td><td rowspan="4">ROUGE-2</td><td>Standard</td><td>10.96</td><td>12.62</td><td>10.97</td><td>13.26</td><td>4.07</td><td>10.43</td></tr><tr><td>Focus prompt</td><td>10.70</td><td>12.10</td><td>11.51</td><td>13.28</td><td>3.57</td><td>9.48</td></tr><tr><td>Hierarchical</td><td>11.33</td><td>14.63</td><td>13.36</td><td>13.51</td><td>4.85</td><td>7.06</td></tr><tr><td>Incremental</td><td>12.56</td><td>14.43</td><td>13.54</td><td>17.26</td><td>5.19</td><td>8.68</td></tr><tr><td rowspan="4">BERTScore</td><td>Standard</td><td>84.19</td><td>83.43</td><td>83.13</td><td>84.63</td><td>85.33</td><td>85.01</td></tr><tr><td>Focus prompt</td><td>84.07</td><td>83.33</td><td>83.00</td><td>84.77</td><td>85.27</td><td>84.59</td></tr><tr><td>Hierarchical</td><td>84.13</td><td>83.86</td><td>83.74</td><td>84.26</td><td>85.23</td><td>84.10</td></tr><tr><td>Incremental</td><td>84.26</td><td>83.73</td><td>83.80</td><td>84.67</td><td>85.70</td><td>84.14</td></tr><tr><td rowspan="4">A3CU</td><td>Standard</td><td>12.81</td><td>13.55</td><td>12.12</td><td>11.71</td><td>7.31</td><td>16.61</td></tr><tr><td>Focus prompt</td><td>12.41</td><td>13.54</td><td>13.39</td><td>10.84</td><td>7.15</td><td>14.52</td></tr><tr><td>Hierarchical</td><td>13.21</td><td>15.64</td><td>15.14</td><td>12.26</td><td>9.71</td><td>11.57</td></tr><tr><td>Incremental</td><td>12.88</td><td>15.34</td><td>14.45</td><td>10.51</td><td>10.24</td><td>12.55</td></tr><tr><td rowspan="12">Llama-2-13B</td><td rowspan="4">ROUGE-2</td><td>Standard</td><td>11.07</td><td>11.68</td><td>11.63</td><td>13.56</td><td>5.09</td><td>10.38</td></tr><tr><td>Focus prompt</td><td>10.82</td><td>11.51</td><td>11.30</td><td>12.42</td><td>4.83</td><td>11.03</td></tr><tr><td>Hierarchical</td><td>10.24</td><td>13.45</td><td>13.26</td><td>10.21</td><td>4.93</td><td>6.71</td></tr><tr><td>Incremental</td><td>11.90</td><td>12.53</td><td>13.84</td><td>17.34</td><td>5.06</td><td>7.33</td></tr><tr><td rowspan="4">BERTScore</td><td>Standard</td><td>84.04</td><td>83.29</td><td>83.15</td><td>84.43</td><td>85.24</td><td>84.70</td></tr><tr><td>Focus prompt</td><td>84.12</td><td>83.26</td><td>83.06</td><td>84.49</td><td>85.08</td><td>85.19</td></tr><tr><td>Hierarchical</td><td>83.17</td><td>83.74</td><td>83.75</td><td>80.07</td><td>85.03</td><td>84.20</td></tr><tr><td>Incremental</td><td>83.43</td><td>82.45</td><td>83.45</td><td>84.96</td><td>83.24</td><td>82.95</td></tr><tr><td rowspan="4">A3CU</td><td>Standard</td><td>12.94</td><td>13.01</td><td>13.42</td><td>10.92</td><td>8.47</td><td>16.65</td></tr><tr><td>Focus prompt</td><td>13.10</td><td>13.17</td><td>11.76</td><td>11.91</td><td>7.06</td><td>18.58</td></tr><tr><td>Hierarchical</td><td>12.85</td><td>16.28</td><td>14.11</td><td>10.40</td><td>8.36</td><td>12.86</td></tr><tr><td>Incremental</td><td>12.47</td><td>14.64</td><td>14.80</td><td>11.75</td><td>10.76</td><td>9.54</td></tr><tr><td rowspan="12">Xgen-7B</td><td rowspan="4">ROUGE-2</td><td>Standard</td><td>8.92</td><td>11.94</td><td>9.34</td><td>10.02</td><td>4.53</td><td>6.57</td></tr><tr><td>Focus prompt</td><td>9.79</td><td>12.87</td><td>10.79</td><td>11.46</td><td>4.15</td><td>6.85</td></tr><tr><td>Hierarchical</td><td>9.87</td><td>13.06</td><td>11.37</td><td>11.77</td><td>2.79</td><td>6.83</td></tr><tr><td>Incremental</td><td>9.11</td><td>10.97</td><td>10.55</td><td>13.16</td><td>3.71</td><td>4.44</td></tr><tr><td rowspan="4">BERTScore</td><td>Standard</td><td>82.51</td><td>82.45</td><td>81.96</td><td>82.65</td><td>83.28</td><td>82.60</td></tr><tr><td>Focus prompt</td><td>82.75</td><td>82.45</td><td>82.14</td><td>83.08</td><td>83.81</td><td>82.80</td></tr><tr><td>Hierarchical</td><td>82.86</td><td>82.73</td><td>82.56</td><td>82.67</td><td>83.79</td><td>83.03</td></tr><tr><td>Incremental</td><td>82.49</td><td>81.94</td><td>81.82</td><td>83.11</td><td>83.39</td><td>80.83</td></tr><tr><td rowspan="4">A3CU</td><td>Standard</td><td>12.50</td><td>15.14</td><td>12.85</td><td>11.99</td><td>8.48</td><td>12.05</td></tr><tr><td>Focus prompt</td><td>12.23</td><td>15.82</td><td>12.04</td><td>11.57</td><td>8.20</td><td>11.50</td></tr><tr><td>Hierarchical</td><td>11.74</td><td>14.55</td><td>12.61</td><td>10.76</td><td>7.33</td><td>11.25</td></tr><tr><td>Incremental</td><td>11.51</td><td>12.73</td><td>13.15</td><td>9.13</td><td>8.97</td><td>9.69</td></tr><tr><td rowspan="12">Mistral-7B</td><td rowspan="4">ROUGE-2</td><td>Standard</td><td>7.16</td><td>9.28</td><td>9.56</td><td>5.86</td><td>2.19</td><td>6.41</td></tr><tr><td>Focus prompt</td><td>6.20</td><td>7.62</td><td>8.44</td><td>4.85</td><td>1.42</td><td>6.29</td></tr><tr><td>Hierarchical</td><td>10.78</td><td>11.67</td><td>13.71</td><td>13.36</td><td>4.76</td><td>7.39</td></tr><tr><td>Incremental</td><td>10.15</td><td>11.36</td><td>12.66</td><td>12.89</td><td>3.46</td><td>7.02</td></tr><tr><td rowspan="4">BERTScore</td><td>Standard</td><td>81.07</td><td>80.98</td><td>81.19</td><td>80.41</td><td>80.10</td><td>82.20</td></tr><tr><td>Focus prompt</td><td>80.72</td><td>80.31</td><td>80.81</td><td>79.91</td><td>80.12</td><td>82.13</td></tr><tr><td>Hierarchical</td><td>83.10</td><td>82.56</td><td>83.00</td><td>83.81</td><td>83.90</td><td>82.62</td></tr><tr><td>Incremental</td><td>82.25</td><td>81.92</td><td>82.39</td><td>83.67</td><td>83.14</td><td>80.56</td></tr><tr><td rowspan="4">A3CU</td><td>Standard</td><td>10.35</td><td>11.55</td><td>11.46</td><td>7.94</td><td>8.53</td><td>11.34</td></tr><tr><td>Focus prompt</td><td>9.96</td><td>10.13</td><td>10.65</td><td>7.81</td><td>7.59</td><td>12.44</td></tr><tr><td>Hierarchical</td><td>11.15</td><td>12.15</td><td>14.21</td><td>10.62</td><td>7.48</td><td>9.47</td></tr><tr><td>Incremental</td><td>10.43</td><td>14.25</td><td>11.00</td><td>8.90</td><td>7.44</td><td>9.05</td></tr><tr><td rowspan="12">GPT-3.5</td><td rowspan="4">ROUGE-2</td><td>Standard</td><td>12.33</td><td>12.99</td><td>12.78</td><td>16.16</td><td>6.05</td><td>10.53</td></tr><tr><td>Focus prompt</td><td>12.17</td><td>12.61</td><td>12.56</td><td>15.95</td><td>6.35</td><td>10.46</td></tr><tr><td>Hierarchical</td><td>8.59</td><td>9.58</td><td>10.27</td><td>10.30</td><td>4.33</td><td>6.36</td></tr><tr><td>Incremental</td><td>12.04</td><td>11.85</td><td>12.17</td><td>18.46</td><td>5.38</td><td>9.03</td></tr><tr><td rowspan="4">BERTScore</td><td>Standard</td><td>84.77</td><td>83.81</td><td>83.70</td><td>85.41</td><td>86.32</td><td>85.39</td></tr><tr><td>Focus prompt</td><td>84.80</td><td>83.76</td><td>83.81</td><td>85.50</td><td>86.28</td><td>85.39</td></tr><tr><td>Hierarchical</td><td>84.27</td><td>83.34</td><td>83.62</td><td>85.30</td><td>85.37</td><td>84.28</td></tr><tr><td>Incremental</td><td>84.43</td><td>83.48</td><td>83.74</td><td>85.41</td><td>85.76</td><td>84.44</td></tr><tr><td rowspan="4">A3CU</td><td>Standard</td><td>15.40</td><td>15.22</td><td>15.58</td><td>12.72</td><td>13.15</td><td>19.21</td></tr><tr><td>Focus prompt</td><td>15.07</td><td>14.51</td><td>15.59</td><td>12.34</td><td>13.63</td><td>18.54</td></tr><tr><td>Hierarchical</td><td>12.24</td><td>12.54</td><td>13.01</td><td>13.29</td><td>9.03</td><td>11.74</td></tr><tr><td>Incremental</td><td>12.08</td><td>13.59</td><td>13.24</td><td>10.90</td><td>9.05</td><td>12.08</td></tr></table>
|
| 546 |
+
|
| 547 |
+
Table 8: Reference-based results for all models and inference methods on MiddleSum, breaking down by subset. The best number across inference methods is in bold.
|
oncontextutilizationinsummarizationwithlargelanguagemodels/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19f75ff1a2ca104185121614c34be3957dac2309f4cc3b51b47ae2cfe52bd60e
|
| 3 |
+
size 1656598
|
oncontextutilizationinsummarizationwithlargelanguagemodels/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a7aca51e3f08adc59a640f3d1b360de491e977602bb5663f783dee8688d3e90
|
| 3 |
+
size 621433
|
onefficientandstatisticalqualityestimationfordataannotation/4b91449c-2c14-4b69-b444-cc418b378d29_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19abfb616f6af8b9a39d3fa95bcff98ccd7f4a1ecf7d472fdc1b7be2baca71a1
|
| 3 |
+
size 101138
|
onefficientandstatisticalqualityestimationfordataannotation/4b91449c-2c14-4b69-b444-cc418b378d29_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eea01c1aa5fa33a08fea5bd7befd4f0969281e33dc52b173c002c716a736f66
|
| 3 |
+
size 118659
|