Rules & Training

Beyond Fitting the Data

Standard ML training optimizes a loss function against labeled examples. But a classifier that fits the data perfectly can still behave absurdly — flagging benign traffic as an attack because of an irrelevant feature, or missing an obvious attack variant it hasn’t seen before. Domain experts know things about what a correct classifier should do, but that knowledge gets lost when training is purely data-driven.

What You’ll Work On

In this theme, you’ll formalize security properties as logical rules and integrate them into the neural network training process using the Vehicle specification language.

Possible thesis directions:

What You’ll Learn

Project Results

property-driven-ml

A general open-source framework for property-driven machine learning: logical constraints over hyper-rectangle input regions are compiled into training loss terms through differentiable logics (Gödel, Łukasiewicz, Reichenbach, Yager, DL2, and Signal Temporal Logic), combined with PGD and Auto-PGD adversarial training. Gusts Grinbergs is a contributor to the framework, which is described in A General Framework for Property-Driven Machine Learning (Flinkow et al., 2025).

NIDS-Verify

NIDS-Verify combines adversarial training with formal verification for network intrusion detection: attack patterns are formally specified in the Vehicle language and enforced during training through projected gradient descent over hyperrectangle-bounded input regions. Extending the companion code of Flood et al., 2024, Gusts Grinbergs re-engineered the dataset and verification pipeline — rebuilding feature extraction and preprocessing for CIC-IDS-2017, adding tooling for large-scale packet captures, and correcting known timestamp inconsistencies in the dataset — and modernised the training stack through a migration to PyTorch Lightning and integration with the property-driven-ml framework.

Relevant Literature

Supervisors: Alessandro Bruni (ITU), Giorgio Bacci (AAU) – see Team