WSP: gradient-free text classification that lets an LLM write classifiers over a frozen encoder

kalyan_kpl · x · 2026-11-27

Closed-Form Weight-Space Programming (WSP) replaces gradient-based fine-tuning and LoRA for text classification: an LLM acts as a design assistant, generating classification programs over representations from a frozen RoBERTa-large encoder. Classifiers are fit in closed form — Shrinkage LDA, Kernel Ridge Regression, and masked-LM label-word priors — with cross-fitting to select the best combo. Motivation: traditional tuning suffers from hyperparameter overhead and performance collapse when labeled data is scarce, making WSP a low-cost alternative for low-label settings.

Original post →

More from Research

Research channel →