All projects

Name That LLM

A Kaggle competition: given a short passage, identify which of 18 frontier language models wrote it. Entries are scored on balanced accuracy, where random guessing gets about 0.056.

Epoch
Runs

Validation results

Data from Weights & Biases

Balanced accuracy by fold

Epoch 1 Validation fold Public leaderboard Mean of selected folds Random guessing, 0.056

Change from epoch 1 to epoch 2

One line per selected fold. Every fold improved in the second epoch.

Which models are easiest to identify

Recall for each of the 18 models at the end of training: the share of that model's passages the classifier labelled correctly. Bars show the mean of the selected folds and the black markers show the lowest and highest fold. Each fold holds about 30 validation passages per model, so single-fold figures are noisy. Across all five folds, qwen3.8-max, gemini-3.1-pro-preview and claude-opus-5 are recognised about three times in four, while glm-5.3 is recognised about one time in six.

Training runs

Training loss

Fold runs Full-data run
Cross-entropy loss, logged every 50 steps and smoothed over 5 points. Loss starts at about 2.9, which is what guessing evenly across 18 classes gives, and falls to a little over 1 by the end of the second epoch.

Learning rate schedule

A short warm-up to the peak rate of 3e-5, then a smooth decay to zero over the two epochs.

Approach

I fine-tuned ModernBERT-base as an 18-class text classifier, adding 5,000 extra samples to the competition training data.

Each configuration was checked with 5-fold cross-validation before a final model was trained on the full data for submission. The fold scores and the leaderboard score agree closely, so the validation setup is a fair guide to how changes will score.

Experiments are tracked in Weights & Biases. The competition runs until January 2027, so these numbers are a snapshot.

Training setup

Modelanswerdotai/ModernBERT-base
Classes18
Extra samples5,000
Learning rate3e-5
Max sequence length384 tokens
Batch size32
Epochs2
Validation5-fold cross-validation
Fold scores0.5113, 0.5278, 0.5481, 0.5074, 0.5167
Public leaderboard0.514