Optimizing Language Models for Grammatical Acceptability: A Comparative Study of Fine-Tuning Techniques

Shobhit Ratan, Farley Knight, Ghada Jerfel, Sze Chung Ho
1/14/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

This study explores the fine-tuning (FT) of the Open Pre-trained Transformer (OPT-125M) for grammatical acceptability tasks using the CoLA dataset. By comparing Vanilla-Fine-Tuning (VFT), Pattern-Based-Fine-Tuning (PBFT), and Parameter-Efficient Fine-Tuning techniques (PEFT) like Low-Rank Adaptation (LoRA), we demonstrate significant improvements in computational efficiency while maintaining high accuracy. Our experiments reveal that while VFT achieves the highest accuracy (81.2%), LoRA enhancing FT by reducing memory usage and iteration time by more than 50%, and increases accuracy in PBFT case. Context Distillation (CD), though computationally efficient, underperformed with accuracy around 31%. Our findings contribute to democratizing access to large language models (LLM) by reducing computational barriers.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{ratan2025optimizing,
  title  = {Optimizing Language Models for Grammatical Acceptability: A Comparative Study of Fine-Tuning Techniques},
  author = {Shobhit Ratan and Farley Knight and Ghada Jerfel and Sze Chung Ho},
  year   = {2025},
  eprint = {2501.07853},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.07853v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.07853.svg)](https://codeofpaper.com/paper/2501.07853)

Discussion