Back to AI architectures leaderboard
hobby Color polygraph · architecture detail Sequence model

Transformer encoder

A small transformer encoder reading the 21-step per-question session as a sequence. In theory the most flexible architecture on the board. In practice it loses to both the BiGRU and the LSTM on gender - probably because 6,710 sessions is below the regime where transformers start to pay off.

Scores

Gender AUC
0.797
5-fold StratifiedKFold
Age MAE
8.88
years
Mood MAE
11.29
0..60

How it works

Each session becomes a sequence of 21 steps - 16 round-1 elimination questions, 4 round-2 questions, and 1 final pick. Each step is a 40-dim vector containing the four offered colors (RGB + HSL), the chosen color, a one-hot position indicator, the per-step time delta, and a step-type indicator. A learned [CLS] token is prepended; the encoder output at that position becomes the session summary. 14 side features (total time, hour of day, mean question time, etc.) are concatenated to the [CLS] output before the three heads.

Trained jointly with a multi-task loss (binary cross-entropy on gender, scaled MSE on age and mood). Best snapshot picked on validation gender BCE. Reads raw save.ligma and re-parses it directly so it does not depend on the engineered feature vector.

Configuration

Project links

Back to AI architectures leaderboard