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/
The features and their weights:
| Option | Importance | Weight |
|---|---|---|
reaction_ms | 1.4072 | -1.4072 |
fitts_r2 | 0.5761 | -0.5761 |
vel_cv | 0.4933 | -0.4933 |
submovements | 0.4228 | +0.4228 |
accuracy | 0.2672 | +0.2672 |
offgrid_ | 0.2017 | +0.2017 |
overshoot_ | 0.1721 | -0.1721 |
time_ | 0.1601 | +0.1601 |
trigger_ | 0.1513 | +0.1513 |
fitts_ | 0.0944 | +0.0944 |
headshot_ | 0.0741 | +0.0741 |
snap_ | 0.0469 | +0.0469 |
flick_ | 0.0304 | +0.0304 |
switch_ms | 0.0017 | +0.0017 |
Generated from docs/
aim.seq: a sequence model on the raw view movement
Summary statistics lose the shape of the movement. aim.seq reads it directly.
- 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.
- A window around each engagement. 64 ticks before and 16 after each shot or target acquisition.
- A small 1D temporal convolution network scores the window. The architecture, weights, normalization and calibration live in one versioned JSON file.
- 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.
- 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
| Threshold | False positives per 1000 | Blatant aimbot | Humanized aimbot | Low FOV aim assist | Triggerbot |
|---|---|---|---|---|---|
| 0 | 2.13 (95% bound 5.32) | 100% | 78% | 75% | 83% |
| 0.7724 | 0 (95% bound 1.92) | 100% | 72% | 57% | 82% |
| 1 | 0 (95% bound 1.92) | 100% | 69% | 46% | 81% |
| 1.2724 | 0 (95% bound 1.92) | 100% | 63% | 39% | 79% |
| 1.7724 * | 0 (95% bound 1.92) | 100% | 46% | 25% | 78% |
| 2 | 0 (95% bound 1.92) | 100% | 44% | 21% | 76% |
| 2.2724 | 0 (95% bound 1.92) | 100% | 42% | 18% | 72% |
| 2.7724 | 0 (95% bound 1.92) | 100% | 31% | 6% | 67% |
| 3 | 0 (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/
The ensemble
aim.model, aim.seq, stats., aim. and aim. 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/ is seeded and reproducible:
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.