Morph Call is a suite of 46 probing tasks for four Indo-European languages that fall under different morphology: Russian, French, English, and German. The tasks are designed to explore the morphosyntactic content of multilingual transformers which is a less studied aspect at the moment.
The tasks are divided into four groups:
We provide an example of the experiment on Masked Token task (Case, German).
me@my-laptop:~$ python3 probe.py --help
INFO: Showing help with the command 'probe.py -- --help'.
NAME
probe.py - configure the experiment AND perform probing
SYNOPSIS
probe.py <flags>
DESCRIPTION
configure the experiment AND perform probing
FLAGS
--results_path=RESULTS_PATH
Type: Optional[str]
Default: None
path to a folder to store the probing results and the model intermediate activations
--model_architecture=MODEL_ARCHITECTURE
Type: typ...
Default: 'bert multilingual'
--model_is_finetuned=MODEL_IS_FINETUNED
Type: bool
Default: False
if to perform the experiment on the fine-tuned model
--model_finetuned_path=MODEL_FINETUNED_PATH
Type: Optional[str]
Default: None
(only if model_is_finetuned is True) path to store the fine-tuned model
--model_finetuned_config_google_url=MODEL_FINETUNED_CONFIG_GOOGLE_URL
Type: Optional[]
Default: None
(only if model_is_finetuned is True) the url of the fine-tuned model config if to be downloaded
--model_finetuned_model_google_url=MODEL_FINETUNED_MODEL_GOOGLE_URL
Type: Optional[]
Default: None
(only if model_is_finetuned is True) the url of the fine-tuned model weights if to be downloaded
--model_is_random=MODEL_IS_RANDOM
Type: bool
Default: False
if to perform the random initialization of the model
--layers_to_probe=LAYERS_TO_PROBE
Type: List
Default: 'all'
(either "all" or list w. possible numbers from 0 to 11) -- model layers to probe. e.g.: [1, 3, 11], or "all"
--train_n_sentences=TRAIN_N_SENTENCES
Type: int
Default: 1500
number of sentences used to train the probing classifier
--test_n_sentences=TEST_N_SENTENCES
Type: int
Default: 1000
number of sentences used to evaluate the probing classifier
--dev_n_sentences=DEV_N_SENTENCES
Type: int
Default: 0
DEPRECATED
The paper is accepted to the 3rd Workshop of the ACL Special Interest Group on Typology (SIGTYP) at NAACL, 2021. The title follows the morphing calls that were used by Power Rangers to call their powers.
@inproceedings{mikhailov-etal-2021-morph,
title = "Morph Call: Probing Morphosyntactic Content of Multilingual Transformers",
author = "Mikhailov, Vladislav and
Serikov, Oleg and
Artemova, Ekaterina",
booktitle = "Proceedings of the Third Workshop on Computational Typology and Multilingual NLP",
month = jun,
year = "2021",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.sigtyp-1.10",
doi = "10.18653/v1/2021.sigtyp-1.10",
pages = "97--121",
abstract = "The outstanding performance of transformer-based language models on a great variety of NLP and NLU tasks has stimulated interest in exploration of their inner workings. Recent research has been primarily focused on higher-level and complex linguistic phenomena such as syntax, semantics, world knowledge and common-sense. The majority of the studies is anglocentric, and little remains known regarding other languages, specifically their morphosyntactic properties. To this end, our work presents Morph Call, a suite of 46 probing tasks for four Indo-European languages of different morphology: Russian, French, English and German. We propose a new type of probing tasks based on detection of guided sentence perturbations. We use a combination of neuron-, layer- and representation-level introspection techniques to analyze the morphosyntactic content of four multilingual transformers, including their understudied distilled versions. Besides, we examine how fine-tuning on POS-tagging task affects the probing performance.",
}
Python
100.0%
Morph Call is a suite of 46 probing tasks for four Indo-European languages that fall under different morphology: Russian, French, English, and German. The tasks are designed to explore the morphosyntactic content of multilingual transformers which is a less studied aspect at the moment.
The tasks are divided into four groups:
We provide an example of the experiment on Masked Token task (Case, German).
me@my-laptop:~$ python3 probe.py --help
INFO: Showing help with the command 'probe.py -- --help'.
NAME
probe.py - configure the experiment AND perform probing
SYNOPSIS
probe.py <flags>
DESCRIPTION
configure the experiment AND perform probing
FLAGS
--results_path=RESULTS_PATH
Type: Optional[str]
Default: None
path to a folder to store the probing results and the model intermediate activations
--model_architecture=MODEL_ARCHITECTURE
Type: typ...
Default: 'bert multilingual'
--model_is_finetuned=MODEL_IS_FINETUNED
Type: bool
Default: False
if to perform the experiment on the fine-tuned model
--model_finetuned_path=MODEL_FINETUNED_PATH
Type: Optional[str]
Default: None
(only if model_is_finetuned is True) path to store the fine-tuned model
--model_finetuned_config_google_url=MODEL_FINETUNED_CONFIG_GOOGLE_URL
Type: Optional[]
Default: None
(only if model_is_finetuned is True) the url of the fine-tuned model config if to be downloaded
--model_finetuned_model_google_url=MODEL_FINETUNED_MODEL_GOOGLE_URL
Type: Optional[]
Default: None
(only if model_is_finetuned is True) the url of the fine-tuned model weights if to be downloaded
--model_is_random=MODEL_IS_RANDOM
Type: bool
Default: False
if to perform the random initialization of the model
--layers_to_probe=LAYERS_TO_PROBE
Type: List
Default: 'all'
(either "all" or list w. possible numbers from 0 to 11) -- model layers to probe. e.g.: [1, 3, 11], or "all"
--train_n_sentences=TRAIN_N_SENTENCES
Type: int
Default: 1500
number of sentences used to train the probing classifier
--test_n_sentences=TEST_N_SENTENCES
Type: int
Default: 1000
number of sentences used to evaluate the probing classifier
--dev_n_sentences=DEV_N_SENTENCES
Type: int
Default: 0
DEPRECATED
The paper is accepted to the 3rd Workshop of the ACL Special Interest Group on Typology (SIGTYP) at NAACL, 2021. The title follows the morphing calls that were used by Power Rangers to call their powers.
@inproceedings{mikhailov-etal-2021-morph,
title = "Morph Call: Probing Morphosyntactic Content of Multilingual Transformers",
author = "Mikhailov, Vladislav and
Serikov, Oleg and
Artemova, Ekaterina",
booktitle = "Proceedings of the Third Workshop on Computational Typology and Multilingual NLP",
month = jun,
year = "2021",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.sigtyp-1.10",
doi = "10.18653/v1/2021.sigtyp-1.10",
pages = "97--121",
abstract = "The outstanding performance of transformer-based language models on a great variety of NLP and NLU tasks has stimulated interest in exploration of their inner workings. Recent research has been primarily focused on higher-level and complex linguistic phenomena such as syntax, semantics, world knowledge and common-sense. The majority of the studies is anglocentric, and little remains known regarding other languages, specifically their morphosyntactic properties. To this end, our work presents Morph Call, a suite of 46 probing tasks for four Indo-European languages of different morphology: Russian, French, English and German. We propose a new type of probing tasks based on detection of guided sentence perturbations. We use a combination of neuron-, layer- and representation-level introspection techniques to analyze the morphosyntactic content of four multilingual transformers, including their understudied distilled versions. Besides, we examine how fine-tuning on POS-tagging task affects the probing performance.",
}
Python
100.0%