MBZUAI/Bactrian-X

Dataset

Dataset Card for "Bactrian-X"

125

14 commits

4 linked in READMEs

updated May 27, 2023

See the code

README

Dataset Card for "Bactrian-X"

Table of Contents

A. Dataset Description

Dataset Summary

The Bactrain-X dataset is a collection of 3.4M instruction-response pairs in 52 languages, that are obtained by translating 67K English instructions (alpaca-52k + dolly-15k) into 51 languages using Google Translate API. The translated instructions are then fed to ChatGPT (gpt-3.5-turbo) to obtain its natural responses, resulting in 3.4M instruction-response pairs in 52 languages (52 languages x 67k instances = 3.4M instances).

Languages

We follow 52 languages of mBART-50, with details can be found below.

B. Dataset Structure

Data Fields

The data fields are as follows:

  • instruction: describes the task the model should perform. Each of the 67K instructions is unique.
  • input: optional context or input for the task. For example, when the instruction is "Summarize the following article", the input is the article. Around 40% of the examples have an input.
  • output: the answer to the instruction as generated by gpt-3.5-turbo.
  • id: the unique index for each data piece in a specific language. The same id across splits corresponds to the same original English data.

Data Instances

An example in en looks as follows.

{
"instruction": "What is the main idea of this text?", 
"input": "The robotics industry has become one of the fastest growing sectors in today’s economy. Robotics technology is being applied in various industries and applications, such as manufacturing, healthcare, and defense.", 
"output": "The main idea of the text is that the robotics industry is rapidly growing and its technology is being used in many different industries and applications.", 
"id": "alpaca-107"
}

An example in ar looks as follows.

{
"instruction": "قم بالوصول إلى إعدادات المتصفح الافتراضية على جهاز الكمبيوتر.", 
"input": "",  
"output": "لا يمكن لي كمساعد افتراضي القيام بهذه المهمة كونها تحتاج إلى الوصول إلى الجهاز المادي. يرجى الرجوع إلى دليل المستخدم للكمبيوتر الخاص بك أو البحث على الإنترنت لمعرفة كيفية الوصول إلى إعدادات المتصفح الافتراضية على جهاز الكمبيوتر الخاص بك.",
"id": "alpaca-41997"
}

An example in id looks as follows.

{
"instruction": "Berapa banyak angka penting yang harus digunakan untuk nilai 0,000187?", 
"input": "",  
"output": "Ada tiga angka penting dalam nilai 0,000187.",
"id": "alpaca-40382"
}

An example in de looks as follows.

{
"instruction": "Komponieren Sie ein Musikstück mit einem Titel, der Trauer bezeichnet.", 
"input": "", 
"output": ""Schmerzendes Herz"\n\nDas Stück beginnt mit einer langsamen, traurigen Melodie, gespielt von einem Solo-Violoncello. Die Harmonien, die von einem Klavier begleitet werden, sind durcheinander und dissonant, um ein Gefühl von Schmerz und Trauer zu vermitteln.\n\nIm Laufe des Stücks treten andere Instrumente ein, wie Streicher, Flöte und Oboe, um die Melodie zu unterstützen und zu intensivieren. Der Rhythmus bleibt langsam und schwerfällig, um die Schwere des Schmerzes darzustellen.\n\nIn der Mitte des Stücks gibt es einen Höhepunkt, wo die Melodie und Harmonien sich verdichten und ein Gefühl von Überwältigung erzeugen. Der Solo-Violoncello spielt eine traurige und schnelle Phrase, die die Verzweiflung und Isolation des Protagonisten ausdrückt.\n\nDas Stück endet mit einer Wiederholung der ersten Melodie, gespielt von einem Solo-Klavier, während die anderen Instrumente auslaufen. Die Harmonien werden jedoch weicher und sanfter, um einen Hauch von Hoffnung zu vermitteln, dass der Schmerz langsam vergeht.",
"id": "alpaca-33619"
}

An example in fr looks as follows.

{
"instruction": "Les Ceanothus ont-ils des racines peu profondes ?", 
"input": "",
"output": "En tant qu'IA, je ne peux pas répondre avec une certitude absolue, mais voici des informations générales sur les racines de Ceanothus : \n\nLes Ceanothus ont tendance à avoir un système racinaire étendu et peu profond. Les racines peuvent s'étaler jusqu'à 4 à 6 fois la taille de la plante et s'étendre à environ 60 à 90 cm de profondeur. Cependant, cela peut varier en fonction du type de sol et de la variété de Ceanothus. Certaines variétés de Ceanothus pourraient avoir des racines plus profondes si les conditions s'y prêtent.",
"id": "dolly-10940"
}

Data in 52 Languages

NoLanguagesCodeTrain
1Afrikaansaf_ZA67017
2Arabicar_AR67017
3Azerbaijaniaz_AZ67017
4Bengalibn_IN67017
5Czechcs_CZ67017
6Germande_DE67017
7Englishen_XX67017
8Spanishes_XX67017
9Estonianet_EE67017
10Persianfa_IR67017
11Finnishfi_FI67017
12Frenchfr_XX67017
13Galiciangl_ES67017
14Gujaratigu_IN67017
15Hebrewhe_IL67017
16Hindihi_IN67017
17Croatianhr_HR67017
18Indonesianid_ID67017
19Italianit_IT67017
20Japaneseja_XX67017
21Georgianka_GE67017
22Kazakhkk_KZ67017
23Khmerkm_KH67017
24Koreanko_KR67017
25Lithuanianlt_LT67017
26Latvianlv_LV67017
27Macedonianmk_MK67017
28Malayalamml_IN67017
29Mongolianmn_MN67017
30Marathimr_IN67017
31Burmesemy_MM67017
32Nepaline_NP67017
33Dutchnl_XX67017
34Polishpl_PL67017
35Pashtops_AF67017
36Portuguesept_XX67017
37Romanianro_RO67017
38Russianru_RU67017
39Sinhalasi_LK67017
40Slovenesl_SI67017
41Swedishsv_SE67017
42Swahilisw_KE67017
43Tamilta_IN67017
44Telugute_IN67017
45Thaith_TH67017
46Tagalogtl_XX67017
47Turkishtr_TR67017
48Ukrainianuk_UA67017
49Urduur_PK67017
50Vietnamesevi_VN67017
51Xhosaxh_ZA67017
52Chinesezh_CN67017

C. Dataset Creation

  1. English Instructions: The English instuctions are obtained from alpaca-53k, and dolly-15k.
  2. Instruction Translation: The instructions (and inputs) are translated into 51 languages using Google Translation API (conducted on April 2023).
  3. Output Generation: We generate output from gpt-3.5-turbo for each language (conducted on April 2023).

D. Considerations for Using the Data

Social Impact of Dataset

NLP for everyone: this dataset helps to democratize the cutting-edge instruction-following models in 52 languages. This dataset also allows the first experiment on the multilingual LoRA-based LLaMA model.

Discussion of Biases

(1) Translation bias; (2) Potential English-culture bias in the translated dataset.

Other Known Limitations

The Bactrian-X data is generated by a language model (gpt-3.5-turbo) and inevitably contains some errors or biases. We encourage users to use this data with caution and propose new methods to filter or improve the imperfections.

E. Additional Information

Dataset Curators

Haonan Li and Fajri Koto

Licensing Information

The dataset is available under the Creative Commons NonCommercial (CC BY-NC 4.0).

Citation Information

@misc{li2023bactrianx,
      title={Bactrian-X : A Multilingual Replicable Instruction-Following Model with Low-Rank Adaptation}, 
      author={Haonan Li and Fajri Koto and Minghao Wu and Alham Fikri Aji and Timothy Baldwin},
      year={2023},
      eprint={2305.15011},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributions

Thanks to @haonan-li, @fajri91 for adding this dataset.

instruction-finetuning
multilingual

Contributors

fajrikoto

7 commits

lmlmcat

5 commits

HL
Haonan Li

2 commits

MBZUAI/Bactrian-X

Dataset

Dataset Card for "Bactrian-X"

125

14 commits

4 linked in READMEs

updated May 27, 2023

See the code

README

Dataset Card for "Bactrian-X"

Table of Contents

A. Dataset Description

Dataset Summary

The Bactrain-X dataset is a collection of 3.4M instruction-response pairs in 52 languages, that are obtained by translating 67K English instructions (alpaca-52k + dolly-15k) into 51 languages using Google Translate API. The translated instructions are then fed to ChatGPT (gpt-3.5-turbo) to obtain its natural responses, resulting in 3.4M instruction-response pairs in 52 languages (52 languages x 67k instances = 3.4M instances).

Languages

We follow 52 languages of mBART-50, with details can be found below.

B. Dataset Structure

Data Fields

The data fields are as follows:

  • instruction: describes the task the model should perform. Each of the 67K instructions is unique.
  • input: optional context or input for the task. For example, when the instruction is "Summarize the following article", the input is the article. Around 40% of the examples have an input.
  • output: the answer to the instruction as generated by gpt-3.5-turbo.
  • id: the unique index for each data piece in a specific language. The same id across splits corresponds to the same original English data.

Data Instances

An example in en looks as follows.

{
"instruction": "What is the main idea of this text?", 
"input": "The robotics industry has become one of the fastest growing sectors in today’s economy. Robotics technology is being applied in various industries and applications, such as manufacturing, healthcare, and defense.", 
"output": "The main idea of the text is that the robotics industry is rapidly growing and its technology is being used in many different industries and applications.", 
"id": "alpaca-107"
}

An example in ar looks as follows.

{
"instruction": "قم بالوصول إلى إعدادات المتصفح الافتراضية على جهاز الكمبيوتر.", 
"input": "",  
"output": "لا يمكن لي كمساعد افتراضي القيام بهذه المهمة كونها تحتاج إلى الوصول إلى الجهاز المادي. يرجى الرجوع إلى دليل المستخدم للكمبيوتر الخاص بك أو البحث على الإنترنت لمعرفة كيفية الوصول إلى إعدادات المتصفح الافتراضية على جهاز الكمبيوتر الخاص بك.",
"id": "alpaca-41997"
}

An example in id looks as follows.

{
"instruction": "Berapa banyak angka penting yang harus digunakan untuk nilai 0,000187?", 
"input": "",  
"output": "Ada tiga angka penting dalam nilai 0,000187.",
"id": "alpaca-40382"
}

An example in de looks as follows.

{
"instruction": "Komponieren Sie ein Musikstück mit einem Titel, der Trauer bezeichnet.", 
"input": "", 
"output": ""Schmerzendes Herz"\n\nDas Stück beginnt mit einer langsamen, traurigen Melodie, gespielt von einem Solo-Violoncello. Die Harmonien, die von einem Klavier begleitet werden, sind durcheinander und dissonant, um ein Gefühl von Schmerz und Trauer zu vermitteln.\n\nIm Laufe des Stücks treten andere Instrumente ein, wie Streicher, Flöte und Oboe, um die Melodie zu unterstützen und zu intensivieren. Der Rhythmus bleibt langsam und schwerfällig, um die Schwere des Schmerzes darzustellen.\n\nIn der Mitte des Stücks gibt es einen Höhepunkt, wo die Melodie und Harmonien sich verdichten und ein Gefühl von Überwältigung erzeugen. Der Solo-Violoncello spielt eine traurige und schnelle Phrase, die die Verzweiflung und Isolation des Protagonisten ausdrückt.\n\nDas Stück endet mit einer Wiederholung der ersten Melodie, gespielt von einem Solo-Klavier, während die anderen Instrumente auslaufen. Die Harmonien werden jedoch weicher und sanfter, um einen Hauch von Hoffnung zu vermitteln, dass der Schmerz langsam vergeht.",
"id": "alpaca-33619"
}

An example in fr looks as follows.

{
"instruction": "Les Ceanothus ont-ils des racines peu profondes ?", 
"input": "",
"output": "En tant qu'IA, je ne peux pas répondre avec une certitude absolue, mais voici des informations générales sur les racines de Ceanothus : \n\nLes Ceanothus ont tendance à avoir un système racinaire étendu et peu profond. Les racines peuvent s'étaler jusqu'à 4 à 6 fois la taille de la plante et s'étendre à environ 60 à 90 cm de profondeur. Cependant, cela peut varier en fonction du type de sol et de la variété de Ceanothus. Certaines variétés de Ceanothus pourraient avoir des racines plus profondes si les conditions s'y prêtent.",
"id": "dolly-10940"
}

Data in 52 Languages

NoLanguagesCodeTrain
1Afrikaansaf_ZA67017
2Arabicar_AR67017
3Azerbaijaniaz_AZ67017
4Bengalibn_IN67017
5Czechcs_CZ67017
6Germande_DE67017
7Englishen_XX67017
8Spanishes_XX67017
9Estonianet_EE67017
10Persianfa_IR67017
11Finnishfi_FI67017
12Frenchfr_XX67017
13Galiciangl_ES67017
14Gujaratigu_IN67017
15Hebrewhe_IL67017
16Hindihi_IN67017
17Croatianhr_HR67017
18Indonesianid_ID67017
19Italianit_IT67017
20Japaneseja_XX67017
21Georgianka_GE67017
22Kazakhkk_KZ67017
23Khmerkm_KH67017
24Koreanko_KR67017
25Lithuanianlt_LT67017
26Latvianlv_LV67017
27Macedonianmk_MK67017
28Malayalamml_IN67017
29Mongolianmn_MN67017
30Marathimr_IN67017
31Burmesemy_MM67017
32Nepaline_NP67017
33Dutchnl_XX67017
34Polishpl_PL67017
35Pashtops_AF67017
36Portuguesept_XX67017
37Romanianro_RO67017
38Russianru_RU67017
39Sinhalasi_LK67017
40Slovenesl_SI67017
41Swedishsv_SE67017
42Swahilisw_KE67017
43Tamilta_IN67017
44Telugute_IN67017
45Thaith_TH67017
46Tagalogtl_XX67017
47Turkishtr_TR67017
48Ukrainianuk_UA67017
49Urduur_PK67017
50Vietnamesevi_VN67017
51Xhosaxh_ZA67017
52Chinesezh_CN67017

C. Dataset Creation

  1. English Instructions: The English instuctions are obtained from alpaca-53k, and dolly-15k.
  2. Instruction Translation: The instructions (and inputs) are translated into 51 languages using Google Translation API (conducted on April 2023).
  3. Output Generation: We generate output from gpt-3.5-turbo for each language (conducted on April 2023).

D. Considerations for Using the Data

Social Impact of Dataset

NLP for everyone: this dataset helps to democratize the cutting-edge instruction-following models in 52 languages. This dataset also allows the first experiment on the multilingual LoRA-based LLaMA model.

Discussion of Biases

(1) Translation bias; (2) Potential English-culture bias in the translated dataset.

Other Known Limitations

The Bactrian-X data is generated by a language model (gpt-3.5-turbo) and inevitably contains some errors or biases. We encourage users to use this data with caution and propose new methods to filter or improve the imperfections.

E. Additional Information

Dataset Curators

Haonan Li and Fajri Koto

Licensing Information

The dataset is available under the Creative Commons NonCommercial (CC BY-NC 4.0).

Citation Information

@misc{li2023bactrianx,
      title={Bactrian-X : A Multilingual Replicable Instruction-Following Model with Low-Rank Adaptation}, 
      author={Haonan Li and Fajri Koto and Minghao Wu and Alham Fikri Aji and Timothy Baldwin},
      year={2023},
      eprint={2305.15011},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributions

Thanks to @haonan-li, @fajri91 for adding this dataset.

instruction-finetuning
multilingual

Contributors

fajrikoto

7 commits

lmlmcat

5 commits

HL
Haonan Li

2 commits