Built for the White Circle Halo Competition (track ft-gemma). Team lead: @Abm32.
A LoRA adapter for google/cellgemma-e4b, trained with
Halo 1.3.0, that helps find RNA and surface-protein records joined to the wrong
cell in a CITE-seq dataset. Given a cell's top 128 RNA features, it writes the cell's 17 antibody-panel quartiles. A
reviewer scores each existing join by how unlikely its observed protein quartiles are under the adapter, and opens the
least likely 1% of records.
One 10x PBMC donor, 1,652 held-out test cells, 16 planted swaps per trial, 17 records reviewed (1%), 3 permutation seeds × 3 swap types = 9 trials, 144 planted swaps in total. The adapter, ensemble weight and step count were chosen on separate validation cells (30 trials); test cells were scored once.
| Method | Caught (of 144) | Mean AP | Clean alerts (of 1,652) |
|---|---|---|---|
| Base CellGemma, same prompt and scoring | 0 | 0.012 | 18 |
| Ridge, full RNA → protein residual | 19 | 0.138 | 23 |
| Ridge on the model's RNA view → quartiles | 48 | 0.285 | 12 |
| Logistic regression on the model's RNA view → quartile NLL | 50 | 0.346 | 19 |
| This adapter | 62 | 0.431 | 23 |
| This adapter + ridge, validation-weighted (0.8 / 0.2) | 67 | 0.461 | 22 |
By swap type the adapter caught 23/48 random, 34/48 block-shifted and 5/48 within-cluster swaps. Within-cluster swaps exchange cells of the same computational group and stay hard for every method.
Three training seeds at 1,600 steps caught 60, 61 and 62 swaps (test mean AP 0.421 ± 0.009). This checkpoint (seed 44) had the highest validation AP.
Native task. On 32 of CellGemma's own perturbation prompts (Tahoe drugs, K562 knockdowns, from the bundled control
cells), the adapter's next-token distribution stayed close to the base over the base model's own 96-token answers: mean
KL 0.010 (Tahoe) and 0.020 (K562) nats per token, greedy token agreement 86% and 89%, and mean log-likelihood of those
answers −1.095 vs −1.093 (Tahoe) and −1.010 vs −1.017 (K562), adapter vs base. regression.py reproduces this.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("google/cellgemma-e4b", revision="6212145e0131d3744171739ea5232afc6aaa7c76")
model = PeftModel.from_pretrained(base, "abhimanyu12/cellgemma-pairing-qc")
tokenizer = AutoTokenizer.from_pretrained("google/cellgemma-e4b")
prompt = "<bos><|turn>user\nRNA in descending abundance: <128 gene symbols>\nPredict surface protein quartiles (0-3).<turn|>\n<|turn>model\n"
The answer format is CD3=2 CD19=0 ... CD15=1 in panel order. To score a join, teacher-force the joined record's
quartiles and sum -log p of each quartile digit, normalized over the digits 0–3. assay.py in the code repository
does this and reproduces the table:
python competition/cellgemma/assay.py /tmp/eval --task impute --adapter abhimanyu12/cellgemma-pairing-qc
hopper-1.3.0 image, one H200, 1,301 s of training.<bos><|turn>user\n…<turn|>\n<|turn>model\n…<turn|>, with eos_token: <turn|> so Halo
trains the stop token. Recipe: recipe.yaml in this repo.abhimanyu12/cellgemma-pairing-qc-data.
Quartile edges are fit on training cells only.This is a single-purpose adapter. It writes antibody quartiles from a ranked gene list so that a reviewer can score
existing RNA–protein joins. It is not a chat or general-purpose assistant, and neither is its base:
google/cellgemma-e4b is a single-cell model whose native task is predicting ranked gene responses to perturbations.
The adapter's effect on that native task is measured above (next-token KL 0.010–0.020 nats per token). General
instruction following, knowledge, math and tool use were not training targets and were not measured for this card.
Source data: 10x Genomics, PBMCs of a Healthy Donor — 5' Gene Expression and Cell Surface Protein (Cell Ranger 3.0.0),
CC BY 4.0, filtered matrix SHA-256 6ba8d25b…f00a8d2. Base model: google/cellgemma-e4b, Apache 2.0. The adapter is
released under Apache 2.0.
有文件?提交种子。
发布种子adapter_model.safetensors 133 MiBscores.npz 215.5 KiBgoogle/cellgemma-e4b