Ayn: A Tiny yet Competitive Indian Legal Language Model Pretrained from Scratch

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Niyogi, Mitodru, Gaussier, Eric, Bhattacharya, Arnab
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918390607642624
author Niyogi, Mitodru
Gaussier, Eric
Bhattacharya, Arnab
author_facet Niyogi, Mitodru
Gaussier, Eric
Bhattacharya, Arnab
contents Decoder-only Large Language Models (LLMs) are currently the model of choice for many Natural Language Processing (NLP) applications. Through instruction fine-tuning and prompting approaches, such LLMs have been efficiently used to solve both general and domain-specific tasks. However, they are costly to train and, to a certain extent, costly to use as well, and one can wonder whether LLMs can be replaced by domain-specific Tiny Language Models (TLMs), which typically contain less than 100M parameters. We address this question in this study by comparing the performance of an 88M TLM pretrained from scratch for 185 A100 hours on a specific domain with a domain-specific tokenizer (here, the Indian legal domain) with LLMs of various sizes between 1B and 8B for solving domain-specific tasks. We show in particular that our legal TLM, Ayn, can indeed outperform LLMs up to 80 times larger on the legal case judgment prediction task, rival LLMs up to 30 times larger on the summarization task, and still be competitive with these larger LLMs on general tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2403_13681
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Ayn: A Tiny yet Competitive Indian Legal Language Model Pretrained from Scratch
Niyogi, Mitodru
Gaussier, Eric
Bhattacharya, Arnab
Computation and Language
Artificial Intelligence
Machine Learning
Decoder-only Large Language Models (LLMs) are currently the model of choice for many Natural Language Processing (NLP) applications. Through instruction fine-tuning and prompting approaches, such LLMs have been efficiently used to solve both general and domain-specific tasks. However, they are costly to train and, to a certain extent, costly to use as well, and one can wonder whether LLMs can be replaced by domain-specific Tiny Language Models (TLMs), which typically contain less than 100M parameters. We address this question in this study by comparing the performance of an 88M TLM pretrained from scratch for 185 A100 hours on a specific domain with a domain-specific tokenizer (here, the Indian legal domain) with LLMs of various sizes between 1B and 8B for solving domain-specific tasks. We show in particular that our legal TLM, Ayn, can indeed outperform LLMs up to 80 times larger on the legal case judgment prediction task, rival LLMs up to 30 times larger on the summarization task, and still be competitive with these larger LLMs on general tasks.
title Ayn: A Tiny yet Competitive Indian Legal Language Model Pretrained from Scratch
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2403.13681