TL;DR
DAES (Distribution-Aware End-to-End Embedding for Streaming) is a novel framework that solves the challenge of embedding streaming numerical features in Click-Through Rate (CTR) prediction models. By replacing biased batch-based order statistics with an efficient Jump Reservoir Sampling method, DAES accurately tracks shifting, non-stationary data distributions in real time. When deployed on a massive short-video platform, it eliminated manual feature preprocessing and delivered a 2.307% increase in Average Revenue Per User (ARPU).
What Problem Does This Paper Address?
In deep CTR prediction systems, numerical features (like user age, item price, or historical click counts) are vital for accurate recommendations. However, effectively feeding these continuous values into deep neural networks is surprisingly difficult.
Traditional approaches fall into a few flawed paradigms:
- Static Binning: Divides continuous values into discrete buckets based on offline statistics. This creates discontinuous boundaries and suffers from "semantic drift" when the underlying data distribution shifts and buckets must be recalculated.
- Neural Embedding: Maps values directly using neural networks, which is end-to-end but completely ignores the overall distribution of the data.
- Dynamic Quantile Embedding: Methods like DAE estimate quantiles on the fly from training batches. However, they rely on the assumption that streaming data is independently and identically distributed (i.i.d.). In reality, streaming production data exhibits severe non-stationarity and concept drift, making batch-based estimates highly biased.
Furthermore, existing methods treat numerical features in a vacuum, ignoring context dependency. For example, a $50 price point means something entirely different when browsing for t-shirts versus smartphones.
Methods
The authors propose DAES, an end-to-end framework consisting of three main components:
- Jump Reservoir Sampling (JRS): To maintain an unbiased approximation of the global data distribution without assuming i.i.d. data, DAES uses reservoir sampling. To bypass the high computational cost of evaluating every single incoming sample, the authors derive a continuous-time non-homogeneous Poisson process to calculate a "jump length." This allows the algorithm to skip redundant samples, reducing random number generation calls to just 3–4% of standard reservoir sampling.
- Quantile Space Interpolation: Instead of calculating distances in the raw value space (which distorts long-tail distributions), DAES maps values into a continuous "quantile space." It outputs an $M$-dimensional "thermometer-style" vector that smoothly preserves ordinal relationships.
- Field-Aware Meta-Embedding Aggregation: To capture context, DAES introduces two adaptive modulation strategies—Affine Transformation and a Gating Mechanism. These strategies use categorical field embeddings to dynamically adjust and reweight the quantile vector before aggregating the final embeddings.
Datasets
The framework was evaluated on three large-scale, chronologically ordered datasets:
- Criteo: A standard industry benchmark for CTR evaluation containing 13 numerical feature fields.
- AutoML: From the NeurIPS 2018 "AutoML for Lifelong Machine Learning" Challenge, containing 6 numerical feature fields.
- Industrial Dataset: A massive dataset sampled from a leading online short-video platform, containing 10 numerical feature fields.
Key Insights and Ideas
- The i.i.d. Assumption is Broken in Streams: The paper mathematically proves that calculating quantiles from local streaming batches yields an asymptotically biased estimator when concept drift is present. Global tracking is mandatory.
- Value Space vs. Quantile Space: In long-tailed distributions, raw numerical distances can overshadow local signals. For instance, if your quantiles are at 0, 100, and 105, an input of 95 is physically closer to 100 and 105, but probabilistically belongs to the 0–100 bucket. Quantile space encoding fixes this topological error by decoupling physical span from probabilistic distance.
- Embedding-Layer Calibration: By modulating numerical features using categorical context right at the embedding layer, the model reduces the optimization burden on downstream feature interaction layers.
Key Results
- Consistent Offline Superiority: DAES was tested across six diverse deep CTR backbone architectures (including DeepFM, DCN v2, and xDeepFM). It consistently achieved the highest AUC and lowest LogLoss across all three datasets, outperforming both static binning and advanced neural embedding baselines.
- Substantial Online Impact: In a 7-day online A/B test on a platform serving hundreds of millions of active users, DAES achieved a 2.307% increase in ARPU over the production baseline.
- Engineering Simplification: Because DAES handles distribution tracking end-to-end within the model, it completely eliminates the need for separate offline feature preprocessing pipelines or manual discretization rules.
Limitations and Future Work
Despite its success, the authors note a couple of practical trade-offs:
- Memory Overhead: Each numerical feature requires its own independent reservoir. For a reservoir size of $10^5$, this consumes about 400KB per feature, which can add up if a model uses hundreds of numerical features.
- Minor Latency Hit: Sorting operations during reservoir updates caused a 1.8% decrease in Queries Per Second (QPS) during deployment, though the high ROI from the ARPU increase justified the trade-off.
For future work, the authors suggest exploring cross-feature reservoir sharing, hierarchical sampling structures to optimize memory, and adapting specialized streaming sketch algorithms (like KLL sketches or t-digests) into differentiable frameworks.
Summary updated