Detection

ML model

The two learned aim models in valkyr-core, what they read, how they were trained and evaluated, and how the trust ledger combines them with the rules.

valkyr has two learned aim models. Both run in plain Rust inside valkyr-core, both are deterministic, and both produce flags with evidence like every other rule.

aim.model: logistic regression on engagement statistics

For every engagement (a target becomes visible, the player aims, maybe shoots) the engine computes summary features: peak angular speed, how fast the error to the target closes, overshoot, time to first shot and more. A logistic regression turns them into a probability.

  • aim v1: logistic regression, 14 features
  • AUC 0.8745 (test), 0.8762 (train); boosted stumps 0.8851
  • 120 + 1120 training players, 120 + 1120 test players
  • 29 / 120 cheaters and 0 / 1120 honest players above the engine threshold on the test set
  • aim.seq: (docs/data/ml-eval.json)

Generated from docs/data/eval.json at build time.

The features and their weights:

OptionImportanceWeight
reaction_ms1.4072-1.4072
fitts_r20.5761-0.5761
vel_cv0.4933-0.4933
submovements0.4228+0.4228
accuracy0.2672+0.2672
offgrid_ratio0.2017+0.2017
overshoot_ratio0.1721-0.1721
time_to_target_ms0.1601+0.1601
trigger_delay_ms0.1513+0.1513
fitts_slope0.0944+0.0944
headshot_ratio0.0741+0.0741
snap_rate0.0469+0.0469
flick_ratio0.0304+0.0304
switch_ms0.0017+0.0017

Generated from docs/data/eval.json at build time.

aim.seq: a sequence model on the raw view movement

Summary statistics lose the shape of the movement. aim.seq reads it directly.

  1. Every server tick becomes one row of 15 inputs: yaw and pitch rates, angular speed and acceleration, the distance from the mouse grid, the signed angle to the nearest visible enemy per axis, its total and its rate, the angle in units of the enemy's size, visibility, whether the view is on the target, the time since the enemy appeared, shots and claimed hits.
  2. A window around each engagement. 64 ticks before and 16 after each shot or target acquisition.
  3. A small 1D temporal convolution network scores the window. The architecture, weights, normalization and calibration live in one versioned JSON file.
  4. Calibrated, aggregated, never alone. Window scores are calibrated with Platt scaling fitted on held out data, clipped, and aggregated per player and match. The rule needs a minimum number of windows before it can fire.
  5. Explained. The evidence lists the top windows and the inputs that mattered most: how much the score drops when one input is replaced by its training mean.

Held out results

The trainer valkyr-train builds the data set from seeded simulated matches, trains, picks the aggregation threshold on a validation split and evaluates on seeds it never saw.

Sequence model on held out matches

ThresholdFalse positives per 1000Blatant aimbotHumanized aimbotLow FOV aim assistTriggerbot
02.13 (95% bound 5.32)100%78%75%83%
0.77240 (95% bound 1.92)100%72%57%82%
10 (95% bound 1.92)100%69%46%81%
1.27240 (95% bound 1.92)100%63%39%79%
1.7724 *0 (95% bound 1.92)100%46%25%78%
20 (95% bound 1.92)100%44%21%76%
2.27240 (95% bound 1.92)100%42%18%72%
2.77240 (95% bound 1.92)100%31%6%67%
30 (95% bound 1.92)100%26%3%64%

1408 honest player matches from seeds never seen in training. The marked row is the threshold the engine uses.

Generated from docs/data/ml-eval.json at build time.

The ensemble

aim.model, aim.seq, stats.outlier, aim.outlier and aim.reaction all measure the same engagements. Counting them as five independent witnesses would be wrong, so the trust ledger groups them: the strongest signal plus half of each of the others, capped at 4.5 log odds. The group counts as one source for enforcement, so a kick still needs a second, different kind of evidence such as movement, information or economy.

What the models cannot see

  • A cheat that only gives information (a radar on a second screen) with perfectly human aim.
  • Assists so weak that they stay inside the honest distribution. They also give little advantage.
  • Anything outside the telemetry your server sends.

That is why the rules, culling and decoys matter as much as the models. See the threat model.

Retraining

tools/valkyr-train is seeded and reproducible:

ShellShell
cargo run -p valkyr-train --release -- --seed 20261204

Reviewed jury cases can be fed back as labels, and a drift monitor compares live feature distributions with the training reference.

Edit this page on GitHub