|
--- |
|
|
|
|
|
{} |
|
--- |
|
|
|
# Varta BERT model |
|
|
|
<!-- Provide a quick summary of what the model is/does. --> |
|
|
|
### Model Description |
|
|
|
<!-- Provide a longer summary of what this model is. --> |
|
Varta BERT is a model pre-trained on full training set from Varta on English and 14 Indic languages (Assamese, Bhojpuri, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Oriya, Punjabi, Tamil, Telugu, and Urdu) using a masked language modeling (MLM) objective from scratch. |
|
Varta is a large-scale headline-generation dataset for Indic languages, including 41.8 million news articles in 14 different Indic languages (and English), which come from a variety of high-quality sources. |
|
|
|
|
|
The dataset and the model were introduced in [this paper](https://arxiv.org/pdf/2305.05858.pdf). The code was released in [this repository](https://github.com/rahular/varta). The data was released in [this bucket](https://console.cloud.google.com/storage/browser/varta-eu/data-release). |
|
|
|
|
|
## Uses |
|
|
|
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> |
|
|
|
You can use the raw model for masked language modelling, but it's mostly intended to be fine-tuned on a downstream task. <br> |
|
|
|
|
|
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at our Varta T5 model. |
|
|
|
## Bias, Risks, and Limitations |
|
|
|
<!-- This section is meant to convey both technical and sociotechnical limitations. --> |
|
|
|
This work is mainly dedicated to the curation of a new multilingual dataset for Indic languages, many of which are low-resource languages. During data collection, we face several limitations that can potentially result in ethical concerns. Some of the important ones are mentioned below: <br> |
|
|
|
- Our dataset contains only those articles written by DailyHunt's partner publishers. This has the potential to result in a bias towards a particular narrative or ideology that can affect the representativeness and diversity of the dataset. |
|
- Another limitation is the languages represented in Varta. Out of 22 languages with official status in India, our dataset has only 13. There are 122 major languages spoken by at least 10,000 people and 159 other languages which are extremely low-resourced. None of these languages are represented in our dataset. |
|
- We do not perform any kind of debiasing on Varta. This means that societal and cultural biases may exist in the dataset, which can adversely affect the fairness and inclusivity of the models trained on it. |
|
|
|
|
|
## How to Get Started with the Model |
|
|
|
You can use this model directly with a pipeline for masked language modeling. |
|
|
|
```python |
|
from transformers import AutoTokenizer, AutoModelForMaskedLM |
|
|
|
tokenizer = AutoTokenizer.from_pretrained("rahular/varta-bert") |
|
|
|
model = AutoModelForMaskedLM.from_pretrained("rahular/varta-bert") |
|
``` |
|
|
|
|
|
## Training Details |
|
|
|
### Training Data |
|
Varta contains 41.8 million high-quality news articles in 14 Indic languages and English. |
|
With 34.5 million non-English article-headline pairs, it is the largest headline-generation dataset of its kind. |
|
|
|
### Pretraining |
|
We pretrain the Varta-BERT model using the standard BERT-Base architecture with 12 encoder layers. |
|
We train with a maximum sequence length of 512 tokens with an embedding dimension of 768. |
|
We use 12 attention heads with feed-forward width of 3072. |
|
To support all the 15 languages in dataset we use a wordpiece vocabulary of size 128K. |
|
In total, the model has 184M parameters. The model is trained with AdamW optimizer with alpha=0.9 and beta=0.98. |
|
We use an initial learning rate of 1e-4 with a warm-up of 10K steps and linearly decay the learning rate till the end of training. |
|
We train the model for a total of 1M steps which takes 10 days to finish. |
|
We use an effective batch size of 4096 and train the model on TPU v3-128 chips. |
|
|
|
<!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. --> |
|
|
|
### Evaluation Results |
|
To come. |
|
|
|
## Citation |
|
|
|
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> |
|
|
|
``` |
|
@misc{aralikatte2023varta, |
|
title={V\=arta: A Large-Scale Headline-Generation Dataset for Indic Languages}, |
|
author={Rahul Aralikatte and Ziling Cheng and Sumanth Doddapaneni and Jackie Chi Kit Cheung}, |
|
year={2023}, |
|
eprint={2305.05858}, |
|
archivePrefix={arXiv}, |
|
primaryClass={cs.CL} |
|
} |
|
``` |
|
|
|
|
|
|