TL;DR
Spotting emerging trends—like a sudden DDoS attack or a dying web service—inside terabit-per-second (Tbps) network traffic is like trying to identify which specific raindrops are falling faster during a hurricane. Existing tools rely on clunky hash filters that waste memory and require engineers to manually tune eight different interlocking knobs. NeuTrend solves both problems by tucking a tiny, hyper-fast binary neural network directly inside programmable network switches, boosting detection accuracy by up to 68% at wire speed with virtually zero manual tuning.
What Problem Does This Paper Address?
Monitoring massive data streams isn't just about counting the biggest items ("heavy hitters"); often, we care most about promising items (sustained growth, like an incipient cyberattack) and damping items (sustained decay, like waning user interest).
Because high-speed network switches only have a few megabytes of ultra-fast SRAM and cannot perform floating-point math, state-of-the-art solutions use a "filter-detector" setup. A cheap Bloom filter sits out front, blocking one-off noise so only repeat items enter the main detector memory. However, this approach hits three walls:
- Parameter tuning hell: Systems like Scout Sketch+ force operators to manually tune at least eight tightly coupled parameters (growth/decay rates, time windows, eviction thresholds). What works on Tuesday morning breaks during Friday night traffic.
- Filter pollution: Under tight memory budgets, hash collisions in Bloom filters let tons of boring, non-trending items sneak into the detector, evicting actual trends.
- Software bottlenecks: Most smart, adaptive alternatives are built for CPUs/GPUs, which simply melt under Tbps-level network line rates.
Methods
NeuTrend upgrades the standard filter-detector pipeline with two co-designed, data-driven modules engineered to run directly on switch hardware (ASICs):
- A Hardware-Friendly Learned Filter: Instead of a static Bloom filter, NeuTrend uses a tiny (0.6 KB) Binarized Recurrent Neural Network (BRNN) followed by a miniature backup Bloom filter (to preserve zero false-negative guarantees). Because all weights and activations are binarized to $+1$ or $-1$, matrix multiplications turn into simple
XNORand bit-counting (popcount) operations—compiled into standard lookup tables across switch pipeline stages. - Adaptive Thresholds: Rather than just saying "yes" or "no," the BRNN outputs a confidence score ($s_e \in (0, 1)$). NeuTrend uses this score alongside live stream statistics (mean and variance) to dynamically set per-item rules. High-confidence items get relaxed growth/decay thresholds and shorter observation periods so they are caught fast; low-confidence items face stricter scrutiny. During offline training, the BRNN and threshold bounds are jointly optimized using a differentiable soft-F1 loss.
Datasets
- Pre-training: Synthetic streams following Zipfian distributions.
- Training & Evaluation: Four real-world internet traffic traces—three MAWI backbone traces (from Oct 2024, Nov 2025, and Mar 2026) and an anonymized CAIDA 2018 trace. No new benchmark datasets were introduced; traces were split chronologically (80% train, 10% validation, 10% test).
Key Insights and Ideas
- Per-Bucket Hidden States Beat Memory Limits: Tracking RNN hidden states for millions of individual network flows would instantly blow up switch SRAM. Instead, NeuTrend stores hidden states per hash bucket in the sketch. Even when flows collide in a bucket, true trending items naturally dominate the counter dynamics, allowing the BRNN to track the signal while memory scales purely with the fixed sketch size.
- Synergy Between Filtering and Thresholding: In ablation studies, combining the learned filter with adaptive thresholds yielded a bigger jump than the sum of their individual gains. Why? Because the detector is no longer treating every admitted item equally—it leverages the filter's exact confidence to customize sensitivity per item.
- Purity Protects Capacity: Because non-trending items vastly outnumber trending ones in real life, even a small Bloom filter false-positive rate floods the detector. Cutting false admissions dramatically cleans up the candidate pool ("admission purity"), preventing real trends from being prematurely evicted.
Key Results
Evaluated across memory budgets from 5 KB to 25 KB and deployed on a physical Intel Tofino switch:
- Higher Accuracy: NeuTrend improves overall F1 scores by 35%–68% (1.35$\times$–1.68$\times$) over manually tuned Scout Sketch+, and even beats an exhaustive 1,000-configuration grid search by 1.28$\times$–1.62$\times$.
- Cleaner Memory: The learned filter cuts false positive rates by 23%–44% (1.3$\times$–1.8$\times$ lower) compared to standard Bloom filters, boosting the share of detector cells occupied by actual trending items from 47% to 70%.
- True Line-Rate Speed: On the Tofino ASIC, NeuTrend sustains 1,000 Gbps (1 Tbps) throughput with just 1.2 $\mu$s latency, using 12 pipeline stages and a modest 17.06 KiB of total SRAM.
Limitations and Future Work
- Offline Labels Required: NeuTrend relies on offline training using labeled traffic streams, which aren't always handy in new network environments.
- Switch Table Constraints: Because BRNN layers compile into switch lookup tables, the neural network's size—and thus the complexity of trends it can learn—is capped by current ASIC stage limits.
- Future Directions: The authors point toward online/continual learning on live traffic and scaling up BRNN capacity on next-generation programmable switch hardware.
Summary updated