GPT-2 Metadata Pretraining Towards Instruction Finetuning for Ukrainian

Volodymyr Kyrylov, Dmytro Chaplynskyi


Abstract
We explore pretraining unidirectional language models on 4B tokens from the largest curated corpus of Ukrainian, UberText 2.0. We enrich document text by surrounding it with weakly structured metadata, such as title, tags, and publication year, enabling metadata-conditioned text generation and text-conditioned metadata prediction at the same time. We pretrain GPT-2 Small, Medium and Large models each on single GPU, reporting training times, BPC on BrUK and BERTScore on titles for 1000 News from the Future. Next, we venture to formatting POS and NER datasets as instructions, and train low-rank attention adapters, performing these tasks as constrained text generation. We release our models for the community at https://github.com/proger/uk4b.
Anthology ID:
2023.unlp-1.4
Volume:
Proceedings of the Second Ukrainian Natural Language Processing Workshop (UNLP)
Month:
May
Year:
2023
Address:
Dubrovnik, Croatia
Editor:
Mariana Romanyshyn
Venue:
UNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
32–39
Language:
URL:
https://aclanthology.org/2023.unlp-1.4
DOI:
10.18653/v1/2023.unlp-1.4
Bibkey:
Cite (ACL):
Volodymyr Kyrylov and Dmytro Chaplynskyi. 2023. GPT-2 Metadata Pretraining Towards Instruction Finetuning for Ukrainian. In Proceedings of the Second Ukrainian Natural Language Processing Workshop (UNLP), pages 32–39, Dubrovnik, Croatia. Association for Computational Linguistics.
Cite (Informal):
GPT-2 Metadata Pretraining Towards Instruction Finetuning for Ukrainian (Kyrylov & Chaplynskyi, UNLP 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.unlp-1.4.pdf
Video:
 https://aclanthology.org/2023.unlp-1.4.mp4