﻿# COALA: convex preference heads on a single GPU

COALA learns a preference head above frozen LLM features. Its single-GPU results need the training, hardware, guided-generation and evaluation limits kept explicit.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/coala-convex-preference-head-single-gpu-evidence/
Language: en

On 22 May 2026, Stanford researchers Miria Feng and Mert Pilanci presented [COALA](https://arxiv.org/abs/2605.23244), a preference-learning method using convex optimization. The work also appears in the [ICML 2026 proceedings](https://proceedings.mlr.press/v306/feng26l.html). They investigate whether useful response control can be obtained without training the entire large model or using the separate reference model of standard Direct Preference Optimization (DPO). Their experiments run COALA with Llama-3.1-8B on one RTX 4090 with 24 GB memory.

The cost-reduction claim concerns the authors' particular implementation and experiments. It does not mean every language model can be trained on one card or that quality automatically exceeds DPO. [GitHub code](https://github.com/pilancilab/COALA) is available, but the comparisons below come from the authors; checking did not establish independent replication.

## How the method works

Preference learning usually starts with paired more-desirable and less-desirable responses to the same prompt. DPO uses those pairs to adjust behavior relative to a fixed reference model. COALA has a different structure: the base language model remains frozen, while a small two-layer preference-classification network learns from its extracted features. This is therefore distinct from updating all LLM weights. [Source: paper section 4](https://arxiv.org/html/2605.23244).

The pipeline has several stages. First, prepare preferred/rejected response pairs and extract features from the frozen model. Then train a two-layer ReLU network through a convex reformulation using CRONOS, an alternating-direction method of multipliers, ADMM, solver. Next, freeze the head's first layer and optimize its final layer with the preference loss. That objective does not require DPO's reference model. The implementation uses JAX and JIT compilation; the [repository README](https://github.com/pilancilab/COALA) shows the three corresponding launch stages.

Convexity concerns the specific head-training problem with fixed features and layers, rather than all language-model behavior. The authors provide a CRONOS convergence guarantee under stated conditions and an accelerated-gradient rate for the final-layer loss. The actual second-stage algorithm uses AdamW, so the accelerated-gradient theorem cannot automatically describe that run's convergence rate. A global training-loss minimum also does not guarantee optimal or safe responses in new situations. [Source: sections 4.2–4.3](https://arxiv.org/html/2605.23244).

The head also participates during generation through guided sampling. The paper describes proposing continuation candidates and evaluating them with the learned preference module. Experiments use prefix-based operation with top-p 0.9, top-k 50 and five candidates. Generation cost therefore matters to practical savings, although the main comparisons focus on training. [Source: appendix H.3](https://arxiv.org/html/2605.23244).

## What the experiments show

The authors test six backbones and four datasets: EduFeedback, UltraFeedback, IMDb and HelpSteer. Their new synthetic [EduFeedback dataset](https://huggingface.co/datasets/miria0/EduFeedback) contains 26 621 GPT-4o-generated educational dialogues, from which they derive 65 606 preference pairs. Experiments split these into 59 045 training and 6 561 evaluation pairs. EduFeedback labels follow a heuristic: choose the immediate response to an utterance as preferred and a later response from the same dialogue as rejected. This assumes directness rather than collecting an individual human judgment for every pair. Synthetic dialogues and these labels therefore do not alone establish alignment with every user's preferences. [Source: paper section 5](https://arxiv.org/html/2605.23244).

The EduFeedback compute table reports averages over three runs. For Llama-3.1-8B, COALA uses 1805.39 TFLOPs versus 10 253.37 for DPO, approximately **17.6%** as much. For Mistral-7B, the table gives 1580.45 versus 9284.71. These are author measurements for specified configurations rather than universal speed, electricity-bill or energy-reduction factors. The table description does not unambiguously establish which preparation and generation stages are included; it cannot be extended to the entire lifecycle. [Source: table 5](https://arxiv.org/html/2605.23244).

Comparison conditions differ materially: COALA runs on an RTX 4090 24 GB with JAX/XLA, while DPO, ORPO and SFT use individual A100 40 GB GPUs with PyTorch, DeepSpeed and LoRA. Competing methods use adapters rather than necessarily updating every parameter. Differences can therefore reflect algorithm, implementation and equipment configuration together. [Source: appendix H](https://arxiv.org/html/2605.23244).

In AlpacaEval2 automatic evaluation after EduFeedback training, Llama-3.1-8B obtains length-controlled win rate of 40.90 ± 0.09% with COALA and 40.68 ± 0.10% with DPO, reporting mean and standard deviation across three runs. The paper compares responses against GPT-4 using GPT-4o as judge: this is not a direct COALA-versus-DPO win percentage. The difference in this example is small and does not by itself establish durable superiority. [Source: table 3 and section 6.5](https://arxiv.org/html/2605.23244).

The authors also conduct their own double-blind study with 107 participants, comprising 50 deep-learning students and 57 technology-sector professionals. People select among four Llama-3.1-8B responses generated with different methods. COALA receives 39.1% of EduFeedback selections versus DPO's 28.8%, and 42.7% versus 24.8% on IMDb. This compares a limited sample and two task types, rather than providing an independent audit or guaranteeing generalization to any audience. [Source: section 6.4 and appendix G](https://arxiv.org/html/2605.23244).

## Who might use it

COALA may interest research groups and local-assistant developers experimenting with preferences on constrained equipment, such as educational helpfulness or response style. A frozen backbone reduces updated parameters but also limits change: if its features poorly represent the desired distinction, a head may not compensate. The authors explicitly identify this expressiveness tradeoff. [Source: section 6.6](https://arxiv.org/html/2605.23244).

Before practical use, separately measure quality on representative preference pairs, feature-preparation time, memory and generation latency. The repository supplies a minimal pipeline while excluding baseline scripts and the full evaluation drivers; its README also warns about absolute development paths in some scripts. Reproducing the full comparison therefore requires additional work. [Source: COALA repository](https://github.com/pilancilab/COALA).

The [DPO explanation](/journal/dpo-preference-log-probability-margin/) describes the ordinary reference-policy role. For cost comparisons, the [inference measurement method](/journal/inference-benchmark-method/) helps define separate boundaries for feature extraction, head training and guided generation.

## Sources

- [Feng and Pilanci, Convex Optimization for Alignment and Preference Learning on a Single GPU](https://arxiv.org/abs/2605.23244): preprint and author experiments.
- [ICML 2026 proceedings publication](https://proceedings.mlr.press/v306/feng26l.html), Proceedings of Machine Learning Research.
- [COALA repository](https://github.com/pilancilab/COALA): code and execution description.
- [EduFeedback on Hugging Face](https://huggingface.co/datasets/miria0/EduFeedback): published dataset.
