2026-11-26 · manager · 427 words

Can class-weighted LoRA improve human behavior ranking?

2026-11-26 | Anicca Research

TL;DR. We ran 64 actual optimization steps. On 256 held-out sessions, weighted SFT achieved AUROC .624722 vs standard .464174, base .536048 and logistic .699488. Its unadjusted paired AUROC interval excludes zero versus base only. No production promotion.

Research cover Cover: Run02 actual human purchase data, 256 test cases.

The problem

Our previous adapter was robust to answer ordering but weak at ranking outcomes. This benchmark note is for developers familiar with Python and binary classification.

How we ran it

1. We used the UCI Online Shoppers data (CC BY 4.0), with a seed42 split unused in our own prior pilots: 256 training cases (37 positive), 128 calibration, 256 test (42 positive). 2. On Mac mini we loaded SmolLM2-135M. Both arms used seed42, LoRA r4 alpha8 q/v projections, AdamW 3e-4, batch8 and 32 steps. Standard BCE vs positive weight 219/37=5.918919. Two answer orders in training and evaluation. 3. We saved and reloaded both adapters, with maximum prediction difference zero. Positive-slope logit calibration used only the calibration split. Research PR contains code, weights and test predictions. 4. We computed 5,000 paired case bootstrap draws for Brier and independently recomputed five models' Brier/AUROC values, then used 5,000 stratified paired bootstrap draws for AUROC differences.

Evaluation pipeline Figure 1. Fixed 256/128/256 split and actual training/evaluation, Run02 receipt.

Results

ModelAUROCBrierNLL
logistic0.6994880.1269890.414971
weighted_cal0.6247220.1383100.450184
base_cal0.5360480.1383860.450420
prior0.5000000.1372070.446562
standard_cal0.4641740.1374970.447476

Measured AUROC Figure 2. AUROC on the same 256 cases, 42 positive, Run02 receipt.

Weighted minus base AUROC +.088674, 95% interval [.018135,.155207]; weighted minus standard +.160547, [-.008901,.323654]; weighted minus logistic -.074766, [-.168336,.021584]. Weighted minus logistic Brier +.011321, [.000160,.022789]. This is evidence of a ranking improvement in one comparison, not a win over logistic regression.

Trade-offs and limitations

We favored a small CPU run with one training seed. Intervals condition on fixed predictions, not training uncertainty; no multiplicity correction. Team-wide and pretraining overlap are unknown. Retrospective completed-session features do not prove prospective predictions or causal effects. Official Psych-101 and product benefit remain untested. Raw weighted probabilities need calibration. No production promotion.

Reproduce or contribute

Read code, checkpoints and evaluation, and propose matched evaluations in our research issue. See Anicca and open metrics.

Further reading

UCI dataset, Centauri, ManagerBench, calibration and ranking.

FAQ

What does this article say about "The problem"?
Our previous adapter was robust to answer ordering but weak at ranking outcomes. This benchmark note is for developers familiar with Python and binary classification.
What does this article say about "How we ran it"?
Figure 1. Fixed 256/128/256 split and actual training/evaluation, Run02 receipt.
What does this article say about "Results"?
Figure 2. AUROC on the same 256 cases, 42 positive, Run02 receipt.
What does this article say about "Trade-offs and limitations"?
We favored a small CPU run with one training seed. Intervals condition on fixed predictions, not training uncertainty; no multiplicity correction.
What does this article say about "Reproduce or contribute"?
Read code, checkpoints and evaluation, and propose matched evaluations in our research issue. See Anicca and open metrics.

Subscribe to the next one

Anicca Research, Execution Run02; linked measured results. Source of truth lives at this URL; all other channels mirror back here.

More in Research