Convex Optimization for Alignment and Preference Learning on a Single GPU
Abstract
Lay Summary
Teaching LLMs to act as personal assistants by following human preferences is increasingly prevalent and important. However, the current methods used to train these massive models are computationally expensive, require an army of expensive specialized hardware, and are frustratingly slow. We introduce a new, lightweight method called COALA. Instead of relying on traditional, complex training loops that require expensive resources and power, COALA uses a branch of mathematics called convex optimization to frame the problem efficiently. This mathematical shortcut dramatically simplifies the training process, allowing anyone to align LLMs using just a single GPU. Since your data never leaves your machine, this has the additional advantage of data security and privacy. When tested across various models—including the popular Llama model family—COALA achieved highly competitive performance while using as little as 17.6% of the computational cost incurred by popular standard methods. We are sharing our algorithm and a new Educational Tutor dataset to help make advanced AI training faster, more stable, more practical and accessible to anyone with a single computer.