Customizing Large Language Model Generation Style using Parameter-Efficient Finetuning

Xinyue Liu, Harshita Diddee, Daphne Ippolito
9/6/2024
cs.CL

No official code found. Best implementation: cauchy221/StyleTunedLM (4 stars, last commit 2025-01-15).

Abstract

One-size-fits-all large language models (LLMs) are increasingly being used to help people with their writing. However, the style these models are trained to write in may not suit all users or use cases. LLMs would be more useful as writing assistants if their idiolect could be customized to match each user. In this paper, we explore whether parameter-efficient finetuning (PEFT) with Low-Rank Adaptation can effectively guide the style of LLM generations. We use this method to customize LLaMA-2 to ten different authors and show that the generated text has lexical, syntactic, and surface alignment with the target author but struggles with content memorization. Our findings highlight the potential of PEFT to support efficient, user-level customization of LLMs.

View on arXivView PDF

Code Implementations(1)

The official repository of the paper: Customizing Large Language Model Generation Style using Parameter-Efficient Finetuning

42PythonJan 15, 20251 years ago

Similar Papers

Cite this paper

@article{liu2024customizing,
  title  = {Customizing Large Language Model Generation Style using Parameter-Efficient Finetuning},
  author = {Xinyue Liu and Harshita Diddee and Daphne Ippolito},
  year   = {2024},
  eprint = {2409.04574},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.04574v1}
}

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/2409.04574.svg)](https://codeofpaper.com/paper/2409.04574)

Discussion