Networked devices such as cameras, smart plugs and industrial controllers can be identified from their traffic. The easiest evidence comes from the upper layers of the protocol stack: plaintext HTTP header strings or the raw first bytes of a TCP payload. With that evidence a single-layer network reaches 99.86% device-model accuracy (Kotak & Elovici). Encryption removes exactly this evidence, which leaves only weak, noisy behavioral signals: packet sizes, directions, timing and TCP window behavior. We propose to train one sequence model on traffic in which the upper-layer evidence is visible at first and then hidden step by step during training. The model can then use the easy layer to find a good solution and is gradually forced to move its reliance onto lower-layer signals that still exist after encryption.
This is curriculum learning, meaning training that presents easy examples or tasks before hard ones. The difficulty axis here is the protocol stack itself rather than per-sample loss. The goal is a classifier that sees only encrypted-style inputs at test time and is more accurate, and more reliable across random seeds, than one trained on those inputs alone, on a fixed mixture of them, or by distillation from a model that sees everything.
Core Claim
Behavioral fingerprinting on encrypted traffic is hard partly because of how training goes, not only because the signal is scarce. Packet-size and timing features are noisy, and IoT-Portrait reports that its Transformer is sensitive to jitter and network instability. Two simple training choices each fail in a predictable way:
- Training only on transport-layer features may land in poor solutions. Self-paced learning showed this kind of failure in other non-convex problems: CCCP, a standard local optimizer, got stuck in a bad local optimum 18 of 100 times on motif finding, versus once with an easy-first schedule (Self-Paced Learning).
- Training with all layers visible lets the model take a shortcut through plaintext strings, so it never learns the behavioral features.
Our claim is that a schedule which gradually hides upper-layer evidence does better on encrypted-view test traffic than both. It should also beat two non-curriculum ways of using the same extra information: random layer dropout at a fixed rate, and teacher-to-student distillation.
The schedule follows a recent finite-sample theory of easy-to-hard curricula (A Task-centric Theory for Iterative Self-Improvement). It proves that such curricula beat fixed mixtures only under three conditions:
- Moderate separation: each step up in difficulty is not too large.
- Feasible initialization: the model can already partly solve the first tier.
- Critical sample budget: there is enough data for the curriculum to pay off.
The protocol stack offers a natural set of moderately separated tiers, and the full-visibility tier is nearly solved already, so feasible initialization holds. The theory therefore predicts specific ways this schedule should succeed or fail, and we test those predictions directly.
Relation to Prior Work
Cross-layer fingerprinting supplies the input design. Cross-Layer Protocol Fingerprint fuses HTTP fields (Server, Content-Type, Content-Length) with TCP statistics in a CNN+LSTM and reports 96.6% model accuracy over 15,000 devices. It trains on all layers together, and it stops working once encryption removes the strings. DeviceRadar shows that packet-size and burst features alone reach over 90% precision and recall through NAT and VPN, using skip-gram size embeddings (vectors learned for each packet size) and decision trees running on switches. It sets the bar for encrypted-only behavioral classification, but it never uses plaintext evidence during training.
IoT-Portrait is the closest system to ours. It is a Transformer over traffic sequences with distillation-based class-incremental learning, reporting over 96% accuracy on the UNSW IoT traces. Its incremental stages add new device classes; they do not order training by evidence difficulty. Within each stage it trains on uniform mixtures. Our schedule changes which input layers are visible over time, which is a different axis.
The curriculum literature supplies the method and its constraints. Staged easy-to-hard transfer in image restoration trained first on mild JPEG artifacts and then on severe ones (AR-CNN); our tiers play the role of its compression levels. The function-class study (Investigations with Function Classes) both motivates and constrains the design. Training directly on quadratic tasks converged in 0% of runs, a mixed curriculum converged in 60%, and a purely sequential curriculum caused forgetting. We therefore keep a small share of easier tiers in every batch rather than switching abruptly. TAPIR (Distilling Instruction-following Abilities) schedules samples by teacher-student disagreement. We borrow its distillation idea as a competitor, not as part of the method.
Research Program
Model. We build one Transformer over per-packet tokens. Each token carries layer-specific fields:
- link and network fields such as IP-ID behavior, an idea taken from Le Blond et al.;
- transport fields: segment size, direction, inter-arrival time and window size;
- application fields: parsed HTTP header fields and an embedding of the first payload bytes.
Any field can be replaced by a learned mask embedding.
Tiers. We define four tiers of visibility:
- Full plaintext.
- Payload bytes hidden but header-derived lengths kept. This mimics TLS, which preserves approximate record sizes.
- All application evidence hidden; transport and network behavior kept.
- Transport behavior only, with realistic perturbations: added jitter, packet reordering, and flow sampling. The sampling resembles the sparse telemetry in A Haystack Full of Needles.
Schedule. At training step $t$, each sample is drawn at tier $k$ with probability $p_k(t)$. The probability mass moves from tier 1 toward tier 4 over training. A floor $\epsilon$ on every tier keeps easy examples in the batch, following the anchoring result in the function-class study. The pacing curve has one hyperparameter, the transition length, and it is tuned with the same budget given to the baselines' own hyperparameters.
Simulated encryption. Encrypted views are produced by removing fields from real captures, so every hard sample has an exactly matched easy version with the same label. This pairing is what makes the comparisons below clean.
Validation against real encryption. Removing fields only approximates encryption. We validate it on any natively encrypted traces we can obtain from the DeviceRadar testbed. If those traces are not accessible, we report that limitation openly.
Mechanism analysis. Better accuracy alone would not show why the schedule works. We run three analyses:
- Feature reliance: linear probes on the frozen encoder, fed tier-4 inputs only.
- Robustness: the accuracy drop when timing features are shuffled across packets.
- Seed reliability: the fraction of seeds that reach a convergence threshold, measured the way the function-class study measured it.
Baselines
Naive reference. The same Transformer is trained only on tier-4 inputs, which are the inputs it will see at test time. It gets the same data, steps, and hyperparameter search budget, and runs on ten seeds. If the curriculum cannot beat this, the idea fails.
Strongest existing encrypted-only method. This is the DeviceRadar pipeline: periodic burst extraction, skip-gram packet-size embeddings and a decision tree (DeviceRadar). We re-implement it in software on our tier-4 inputs. Its reported result is over 90% precision and recall across 77 devices under VPN and NAT on its own testbed. We report its numbers on our splits rather than comparing against that figure across datasets. Beating it means higher macro-F1 on identical tier-4 test sets.
Strongest full-information models. These are Kotak & Elovici (99.86% multi-class accuracy on UNSW IoT traces) and IoT-Portrait (over 96% on UNSW). Both are trained as published and evaluated on tier-4 test inputs. They are expected to collapse there, which confirms that shortcut learning is real in this setting. They also serve as upper references at tier 1.
Fixed-rate layer dropout. The model sees every tier in every batch at constant proportions. Those proportions are chosen so that total exposure to each tier over the run equals the curriculum's, and the proportions themselves are tuned. This is the key ablation: it separates ordering from exposure.
Privileged-information distillation. A tier-1 teacher's soft predictions supervise a tier-4 student. It is given the same compute.
Reversed and gap-skipping schedules. One schedule runs from hard to easy. Another jumps directly from tier 1 to tier 4 with no intermediate tiers. Both test the theory's predictions.
What counts as success. The curriculum must beat the naive reference, fixed-rate dropout, and distillation on tier-4 macro-F1. The margin must exceed the spread across the ten seeds, measured with a paired comparison per seed.
Why not just…?
Why not just train on encrypted-style features, since DeviceRadar already gets above 90%? That number comes from DeviceRadar's own 77-device testbed. No reported result was found on Lacuna for encrypted-only device identification on the UNSW IoT traces or on the Censys dataset, so how much headroom exists is unknown. The naive reference and our DeviceRadar re-implementation measure that headroom directly. If both already match the curriculum, the claim is false, and we would report it that way.
Why not just use random layer dropout, the standard modality-dropout trick? This is the most serious threat. The function-class study found that mixing tasks rather than ordering them avoided forgetting (Investigations with Function Classes), so some of a curriculum's benefit may simply come from exposure to mixed data. The exposure-matched dropout baseline settles the question. If it ties the curriculum, the conclusion is that "use privileged layers during training" matters and that ordering does not. That would still be a useful result, though a different paper.
Why not just distill from a full-layer teacher? Distillation transfers the teacher's outputs, not its intermediate features. A teacher that relies on plaintext strings may produce confident targets that a tier-4 student cannot reach from timing features alone. We also run curriculum plus distillation. If distillation alone matches the curriculum, the cheaper method wins.
Why not just map destination domains? Infrastructure mapping found 72% of manufacturers within an hour (A Haystack Full of Needles). The same authors note that it breaks for devices behind shared CDNs and cannot separate models that share one vendor cloud. Model-level identification is exactly the task we evaluate.
Proposed Experiments
Datasets.
- UNSW IoT traces, used by both Kotak & Elovici and IoT-Portrait. This dataset has raw packets, so all four tiers can be built from it.
- The Censys 15,000-device dataset (Cross-Layer Protocol Fingerprint). It supports tiers 1 to 3 over HTTP and TCP fields, at a scale of 238 brands.
- The 14-device domestic testbed (Amar et al.), if its captures can be obtained. Its 22 days of continuous traffic, including software updates, allow a time-split test of drift.
Metrics. We report device-model macro-F1 at each test tier. For unknown-device detection we report precision at fixed recall, following Kotak & Elovici. We also report the fraction of seeds that converge.
Decisive checks. The first decisive check is the comparison against exposure-matched dropout on tier-4 macro-F1.
The second is the theory's predictions. A gap-skipping schedule should lose most of the gain, because moderate separation is violated. A curriculum that starts at tier 3 should help less, because initialization is weaker. Shrinking the training set should eventually erase the advantage, because of the critical sample budget (A Task-centric Theory).
The third is mechanism. Linear probes should show that the curriculum encoder recovers more device information from tier-4 inputs than the naive encoder does.
If the curriculum wins on accuracy but the gap-skipping and budget predictions fail, we would treat the result as an empirical trick, not an explained effect, and say so.
References
- IoT device identification based on network communication analysis using deep learning
- IoT-Portrait: Automatically Identifying IoT Devices via Transformer with Incremental Learning
- Self-Paced Learning for Latent Variable Models
- A Task-centric Theory for Iterative Self-Improvement with Easy-to-Hard Curricula
- Cross-Layer Protocol Fingerprint for Large-Scale Fine-Grain Devices Identification
- DeviceRadar: Online IoT Device Fingerprinting in ISPs using Programmable Switches
- Compression Artifacts Reduction by a Deep Convolutional Network
- How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes
- Distilling Instruction-following Abilities of Large Language Models with Task-aware Curriculum Planning
- I know where you are and what you are sharing: exploiting P2P communications to invade users' privacy
- A Haystack Full of Needles: Scalable Detection of IoT Devices in the Wild
- An Analysis of Home IoT Network Traffic and Behaviour