Demystifying Network Foundation Models

Sylee Beltiukov, Satyandra Guthula, Wenbo Guo, Walter Willinger, Arpit Gupta

TL;DR

This paper introduces an intrinsic evaluation framework to look inside the "black box" of Network Foundation Models (NFMs) rather than just measuring downstream task performance. The authors reveal critical flaws across state-of-the-art NFMs—including severe representation collapse (anisotropy) and over-reliance on unencrypted payload data—but show that simply correcting these embedding space distortions can boost downstream classification performance by up to 0.35 in $F_1$ score without changing the model architecture.

What Problem Does This Paper Address?

Machine learning is increasingly applied to network traffic for tasks like anomaly detection, security, and quality-of-service optimization. Recently, the networking community has turned toward Network Foundation Models (NFMs)—large models pretrained on massive amounts of unlabeled network traffic to learn general-purpose representations.

However, existing evaluations of NFMs rely almost entirely on downstream task performance (e.g., fine-tuning the model to classify traffic). This approach creates a major blind spot: it doesn't reveal what the models actually learn, whether they are exploiting dataset-specific shortcuts, or how they handle distribution shifts in production environments. This paper addresses this gap by proposing an intrinsic evaluation framework to analyze the quality, geometry, and causal robustness of the latent representations (embeddings) generated by NFMs.

Figure 1: Visual overview of the proposed framework. Color indicates different stages of the analysis and dashed lines and boxes denote the perturbed network traffic path.

Methods

The authors develop a three-part intrinsic evaluation framework to dissect NFM embeddings:

  1. Embedding Geometry Analysis: Quantifies how effectively a model utilizes its representation space. It measures anisotropy (the tendency of embeddings to cluster into a narrow cone, reducing their expressive power) and uses Mean Cosine Contribution (MCC) to see if a few dimensions dominate the embedding space.
  2. Metric Alignment Assessment: Uses Centered Kernel Alignment (CKA) to measure how well the self-supervised models implicitly learn traditional, expert-engineered network features (like flow duration or TCP window size) without explicit supervision.
  3. Causal Sensitivity Testing: Employs two types of intervention analysis:
  4. Protocol Perturbations: Modifying specific packet header fields or payloads to see if the model's embeddings change in a semantically meaningful way.
  5. Exogenous Network Context: Generating synthetic traffic under controlled conditions (varying congestion control algorithms, queue management policies, and cross-traffic) to see if the model can separate these hidden environmental factors in its embedding space.

The framework was used to evaluate four state-of-the-art NFMs: YaTC, ET-BERT, netFound, and NetMamba.

Datasets

The benchmarking spans five diverse network datasets across both controlled and real-world environments:

  • Controlled/Endogenous Environments: Android Crossmarket (mobile app traffic), CIC-IDS2017 (intrusion detection benchmark), and CIC-APT-IIoT24 (industrial IoT attack dataset).
  • Real-World Deployments: CAIDA (backbone internet traffic from Los Angeles/San Jose) and MAWI (transit traffic from a major internet exchange point in Tokyo).
  • Synthetic Context Datasets: Generated using the NetReplica network emulator to simulate precise variations in network conditions (e.g., Cubic vs. BBR congestion control).

Key Insights and Ideas

  • The Anisotropy Problem: Most NFMs suffer from severe representation collapse. Their embeddings cluster so tightly together (high cosine similarity) that they struggle to express subtle variations between different network flows.
  • Architectural Choices Dictate Learning: How a model is built changes what it can see. For instance, ET-BERT only looks at packet payloads, meaning it completely fails to align with traditional header-based network metrics. Conversely, netFound uses a multi-input approach (headers, payload, and metadata), leading to much better alignment with expert features.
  • The Payload Dependency Trap: Alarmingly, most models rely heavily on payload data to form their representations. In real-world production networks, payloads are almost always encrypted or stripped for privacy, meaning these models may fail when deployed.
  • Blindness to High-Level Context: NFMs are generally poor at disentangling high-level network context (like congestion control algorithms or cross-traffic intensity) from raw traffic traces, though they are slightly better at distinguishing Active Queue Management (AQM) policies.

Key Results

  • Isotropification Gains: By applying a simple, deterministic decorrelation transformation to fix NetMamba's highly anisotropic embedding space, the authors achieved an $F_1$ score improvement of +0.35 on the Crossmarket dataset using a simple linear classifier.
  • Metric Alignment: netFound achieved the highest average alignment with expert features (average CKA of 0.143), while ET-BERT achieved the lowest (0.029). Across all models, temporal-spatial features like packet length and segment size dominated alignment patterns.
Table 1: Mean cosine similarity (cos) between embeddings and Mean Cosine Contribution (MCC) of the top dimension of the embeddings towards the average cosine similarity.
  • Payload Sensitivity: When payloads were perturbed, cosine similarity dropped drastically for YaTC (down to 0.18) and ET-BERT (down to 0.48), proving their extreme dependency on payload data. Meanwhile, header modifications barely impacted netFound or NetMamba, showing high structural stability for header processing.

Limitations and Future Work

The authors note that their selection of metrics and exploration scope is not exhaustive. Additionally, using cosine similarity for geometric analysis can sometimes yield misleading insights if the underlying models were trained using cosine-based loss functions. Finally, the study relies on publicly available datasets, which can contain inherent biases or flaws.

Future work should focus on designing next-generation NFMs that inherently resist representation collapse and can explicitly disentangle unobserved, high-level network conditions without relying on brittle payload features.

Summary updated

BibTeX
@inproceedings{beltiukov2025demystifying,
  author = {Sylee Beltiukov and Satyandra Guthula and Wenbo Guo and Walter Willinger and Arpit Gupta},
  title = {{Demystifying Network Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=S4YDNW5eCx},
}
Figure