Hardware-Aligned Feature Interaction Search for Click Prediction Models

Click-through-rate models are the systems that predict whether a user will click an ad or item. They get much of their accuracy from feature interactions: products of pairs or triples of learned feature embeddings (short learned vectors for values such as "device = iPhone" or "hour = 9pm"). Automatic selection methods show that most candidate interactions are useless. On one dataset, 71% of pairwise interactions can be removed with a gain in accuracy. That suggests an easy efficiency win: prune the useless interactions and the model gets faster.

This note argues that the win is much smaller than it looks on real hardware, and that the reason is specific and fixable. Serving a click model is dominated by memory traffic, meaning reading embeddings, and by how the surviving products pack into dense matrix operations. It is not dominated by the count of products. Removing an interaction saves nothing unless it also removes an embedding read or empties a compute tile. Hardware cost is therefore a strongly non-additive function of which set of interactions survives. We propose to measure this non-additivity directly, to build a small structured cost model per device that captures it, and to search for the whole accuracy–latency trade-off curve (the Pareto front, the set of models where neither accuracy nor latency can improve without hurting the other) using that cost model. The testable claim is that, at matched accuracy, hardware-aligned selection yields markedly lower measured latency than accuracy-driven selection followed by a sparsity sweep. We also claim that the best interaction set differs across devices.

What exists and what is missing

The closest prior work comes from three directions, and none of it closes the gap.

Interaction-selection methods decide what to prune by prediction loss alone. AutoFIS gives each candidate interaction a gate and pushes gates to zero with a sparsity-inducing optimizer. It reports the 71% redundancy on Avazu and roughly 2x faster inference for its pruned FM. OptFeature selects interactions down to individual feature values and reaches 0.8116 AUC and 0.4402 Logloss on Criteo. Both are single-objective, and both measure speed afterwards on an unconstrained GPU. Value-level selection in particular produces irregular sparsity, and there is no reason to expect it to map onto fewer memory reads. These papers supply our selection machinery and the accuracy baselines. They are also the motivation, because their speedups are a side effect rather than a target.

AutoCTR is the one prior method that combines architecture search, multiple objectives and interaction modules. It evolves wirings of MLP, FM and dot-product blocks while trading accuracy against FLOPs, and reports about 50% fewer FLOPs than DeepFM on Criteo. It constrains us in a useful way, because FLOPs are exactly the wrong proxy here. HW-NAS-Bench shows the rank correlation between FLOPs and latency can fall to 0.18 on an Edge TPU, and that cross-device latency rankings fall below 0.5 Kendall correlation. AutoCTR also searches coarse blocks, not which feature pairs interact.

Hardware-aware multi-objective search is mature for vision but absent for sparse categorical models. MO-HDNAS builds full tri-objective fronts with a genetic algorithm and a diversity term that stops the population collapsing onto tiny, inaccurate models. ConNAS enforces hard latency limits by modifying gradients. QuadraNet couples interaction-efficient neurons with a latency predictor, but only for dense vision tensors. All of them rely on either measured tables of per-block costs that are summed, or a learned predictor over a vision search space. None of them models the kind of shared-read, tile-packing cost that governs interaction layers.

Our contribution is the missing link. We treat the hardware cost of an interaction set as a set function with known structure, and we search accuracy against that measured cost as a genuine multi-objective problem.

Core claim

For an interaction set $S$ (a set of field pairs or triples) on device $h$, we hypothesize that latency is well described by

$$C_h(S) = \sum_{f \in F(S)} a_{h,f} + b_h \left\lceil \frac{|S|}{t_h} \right\rceil + r_h(S).$$

Here $F(S)$ is the set of fields touched by any interaction in $S$, and $a_{h,f}$ is the measured cost of fetching field $f$'s embedding on device $h$; this cost depends on table size and cache residency. The second term covers compute: $t_h$ is the number of inner products that fill one batched compute tile on $h$, and $b_h$ is the cost per tile. The residual $r_h(S)$ is a small learned correction. The first two terms are what additive per-interaction tables miss. Two interactions that share a field share its fetch, and interactions below a tile boundary are nearly free.

If this form holds, it implies something concrete about selection. Good sets should concentrate on few fields and should be sized to tile multiples. Accuracy-driven pruning has no reason to find such sets.

Research program

The first stage is diagnostic. We instrument DeepFM- and IPNN-style interaction layers on four targets, chosen to span the regimes where click models run. These are a server CPU (where most click serving happens), a data-center GPU, an NVIDIA Jetson TX2, and a Raspberry Pi 4, the latter two matching devices profiled in HW-NAS-Bench. On each device we time several thousand random and structured interaction subsets at realistic serving batch sizes, compiled with standard graph optimizers so that operator fusion is present.

We then quantify how non-additive latency is. We treat latency as a game over interactions and apply SHAP-IQ, which estimates any-order Shapley interaction values by Monte Carlo sampling over subsets, to the cost function rather than to a model's prediction. Large pairwise latency interactions among interactions that share a field are direct evidence against summed tables. This is an unusual use of attribution tools, and it gives a single interpretable number for how badly the standard hardware-aware search assumption fails in this domain.

The second stage fits $C_h$ per device from a few hundred measurements. We report held-out rank correlation against two alternatives: summed per-interaction tables, and a free-form learned regressor in the style of meta-learned latency prediction.

The third stage is the search. We reuse AutoFIS-style gates over pairwise and selected third-order interactions, but train a single gated model conditioned on a trade-off weight $w \in [0,1]$. This follows the preference-conditioning idea of Basaklar et al., in which one network is steered across conflicting criteria. To reach non-convex parts of the front, which weighted sums provably miss (Cheng et al.), the per-sample loss uses a Chebyshev-style scalarization. Zhang shows this kind of scalarization matches regret bounds that linear combinations cannot:

$$L_w = \max\big(w \cdot \ell_{\text{acc}},\ (1-w) \cdot \mathbb{E}[C_h(S_\alpha)]/C_h^{\text{full}}\big).$$

In this objective, $\ell_{\text{acc}}$ is the log loss relative to the full model, and $S_\alpha$ is the interaction set sampled from the gate probabilities $\alpha$. $C_h^{\text{full}}$ is the cost of keeping all interactions, so the cost term is a fraction between 0 and 1. The expected cost term needs gradients through a discrete set. For this we use a straight-through estimator of the kind OptFeature uses.

After search, we extract candidate sets along a grid of $w$ values and retrain each briefly. We then measure every candidate on the physical device, so reported fronts never rely on the cost model.

Baselines

The naive reference point is the full model: DeepFM and IPNN with every pairwise interaction, measured on each device. Every front must dominate this point at some accuracy. We also report "no interactions" as the cheap extreme.

The strongest accuracy-side competitor is OptFeature, with 0.8116 AUC and 0.4402 Logloss on Criteo as reported in its paper. Alongside it we run AutoFIS. For both, we sweep the sparsity regularizer over the same number of settings as our trade-off grid. We use their released architectures, the same embedding dimension, the same data splits, and an identical tuning budget in GPU hours. Every resulting model is timed on the same devices. This "sweep and measure afterwards" front is the real competitor. Beating it means higher hypervolume, the standard area-under-the-front metric, on at least three of four devices. It also means at least a 1.5x latency reduction at matched AUC (within 0.001, the practical-significance threshold used in the DESTINE evaluation) on the server CPU. No per-device latency numbers are reported for these methods; no reported result found on Lacuna for on-device latency of any click-model interaction selector.

The strongest multi-objective searcher is an NSGA-II genetic search over interaction sets with a hardware-cost diversity term, following MO-HDNAS. We give it the same evaluation budget and the same measured costs, which isolates the effect of our one-shot conditioned search. MO-HDNAS reports 0.65 GPU hours versus 20.87 for its predecessor on NAS-Bench-201, but that is a vision result, so we compare search cost directly.

We also include AutoCTR's FLOPs-based evolutionary search, rerun on our interaction space. It achieved about 50% fewer FLOPs than DeepFM in its paper. Finally, EulerNet enters as a fixed architecture. It reports over 90% lower inference time than AFN+ but gives no absolute numbers in the file. We plot it as a single point on each device's front.

The key ablation keeps everything in our search fixed and swaps $C_h$ for, in turn, FLOPs, a summed per-interaction table, and a free-form learned predictor. If the structured cost model is not what drives the gains, this ablation will show it.

Why not just…?

Why not just sweep AutoFIS or OptFeature's sparsity strength and read off the front? This is the most serious threat. If accuracy-optimal sparse sets happen to be concentrated on few fields, the sweep will match us. The matched-accuracy latency comparison above settles it directly. We will also report the number of fields touched and the tile occupancy for sets found by each method. If the sweep's sets already touch few fields and fill tiles, our claim is wrong, and we will say so.

Why not just drop whole fields, which removes embedding reads directly? Field dropping attacks the first term of $C_h$ and is a strong, simple baseline, so we include it with the same sweep protocol. OptFeature shows that coarse field-level selection discards useful value-level signal. However, it measured accuracy, not latency, so the trade-off is open. Our search can represent field dropping as a special case, so it should weakly dominate. A gap near zero would mean the tile term and the finer selection add nothing.

Why not just use a standard summed latency table with NSGA-II, as in vision hardware-aware search? The diagnostic stage answers this empirically. If Shapley latency interactions are small and summed tables rank held-out sets as well as $C_h$ does, then the vision recipe transfers, and our cost model is unnecessary. The ablation would show the same thing inside the search.

Why not just deploy a fast fixed architecture like EulerNet? A fixed model gives one point, not a front, and it cannot adapt to a device whose memory or tile regime differs. If EulerNet dominates all searched models on every device, the search is not worth running. Plotting it on each front makes this visible.

Decisive checks

We run on Criteo, Avazu and KDD12 with standard splits and report AUC, Logloss, and measured p50 and p99 latency. The proposal succeeds if three things hold. First, summed tables must show substantially worse held-out rank correlation than $C_h$, with visibly large Shapley latency interactions among field-sharing interactions. Second, our fronts must dominate the sweep-and-measure fronts on hypervolume on most devices. Third, the interaction sets chosen at a fixed latency budget must differ across devices, with Kendall correlation of their latency rankings below 0.5, mirroring the cross-device finding of HW-NAS-Bench in this new domain. Failure of the first check falsifies the core claim outright. Failure of the second with success of the first would mean the non-additivity is real but already captured implicitly by accuracy-driven pruning. That would itself be a useful negative result.