Skip to content

Cost-Aware Agentic Feature Optimization for Fleet-Scale Ranking

THE ARGUMENT

Every added feature costs compute, and the bill is shared unevenly. Putting a pipeline account and a per-model serving account into the feature search cuts pipeline spend 2.3%, no quality loss; but the figures are relative, so siloed budgets cannot copy it.

On this page

The budget sheet lists 312 things to compute, but who can say which 40 to cut first? On Monday you take over an ads ranking model: before it scores a single ad, every input has to be fetched, computed, and stitched into the vector. The trade calls them features, which just means each small fact the model consults before deciding, such as the user's city or how often this ad was clicked yesterday. Your manager wants the cut list by next week, with no metric loss. The usual advice is to sort by importance and cut the tail. That reflex miscalculates twice. The items at the bottom may cost nothing, because another model on the same line already computes them. And something in the middle may be the most expensive item in the company. A paper posted on 19 November 2026 moves that bill from the footnotes into the objective [1]. It never quotes a unit price. It offers a different ledger.

A Feature Has No Unit Price

The paper sorts inputs into four kinds [1]. Dense features are real-valued scalars fed to a multilayer perceptron, cheapest per slot. Sparse features are lists of IDs, each looked up in a table and turned into a vector; those tables dominate model memory. Embedding features are fixed-length vectors computed upstream, so no table is needed, but the vectors are large and costly to log. Transform features are derived inside the model from what it already receives. Cross features are the common case: two IDs multiplied, such as user country by ad category. They lift metrics, they are hand-designed, and exhaustive search grows with the square of the pool [1].

It reads like a price list, and the authors reject that reading: costs are multi-dimensional, type-dependent, and set-dependent rather than additive [1]. Whether a feature is expensive depends on which others get selected beside it. They also explain why the industry default fails. Picking top features by importance up to a count cap is suboptimal under these constraints [1]. There is not one constraint but three. Throughput, proxied by inference FLOPs per example; memory, held by sparse embedding tables; pipeline cost, made of processing, data, and logging. One count cap cannot bound three units of measure.

The counterintuitive part is the shared budget. If another model under the same budget already uses a feature, adding it here adds no pipeline cost [1]. Flip it: a cheap feature that only your model consumes makes you pay processing, storage, and logging alone. Think of utilities in a shared flat. One more lamp costs little because your flatmate already pays the base charge. Rent the place yourself and the same lamp looks expensive.

Cost itemHow the paper measures itNumber givenNot given
Serving throughputInference FLOPs and QPS, relative to the incumbent0.61x to 4.07x FLOPs, 0.77x to 1.10x QPSA dollar figure per throughput band
Serving memorySparse embedding tables, capped per modelA cap only; no absolute valueGigabytes occupied
Feature pipelineProcessing, data, logging, attributed per shared budget2.3% lower after trimming, up to 6.3%A unit price per feature
Model qualityNormalized entropy, lower is better0.31% average gain over 7 modelsPer-model entropy values
Online effectPrimary metric in A/B tests0.20% improvementMetric definition, confidence interval, test count

Twenty-Five Trials: Half the Volume, or Four Times the Math

The main study runs 25 trials on a baseline of 300/100/30/30, read as dense, sparse, transform, and embedding counts [1]. An LLM agent reads the full trial history, proposes a hypothesis with a rationale and a behavior family (greedy, exploration, evolutionary, or a predefined recipe), and hands it to deterministic tools [1]. The winner is chosen by a rule fixed in advance, and the model cannot override it [1].

TrialCounts (dense/sparse/transform/embedding)FLOPsQPSChange in entropy
Baseline300/100/30/301.00x1.00x-
h006 (explore)150/50/15/150.61x1.10x+1.47%, worse
h001 (greedy)600/100/30/301.07x1.07x-0.21%
h003 (explore)300/100/30/601.25x0.98x-0.33%
h010 (greedy)1200/200/60/601.82x0.94x-0.83%
h024 (evolutionary)1200/789/47/904.07x0.77x-1.08%

Start with the two ends. The fastest trial halves every category, drops FLOPs to 0.61x, lifts QPS to 1.10x, and pays 1.47% worse entropy. The most accurate pushes counts to 1200/789/47/90, spends 4.07x the FLOPs, drops QPS to 0.77x, and buys back 1.08%. Between them the frontier is a staircase, not a smooth curve. Which point you want depends on where your QPS ceiling sits.

Read alone, those trials suggest the answer is more volume. A second experiment undercuts that. On a production conversion model at 1200/789/50/47 with a 1.2x FLOPs cap, every initial trial that only raised dense, sparse, or transform volume was flat or worse. The one that worked doubled embeddings and cut sparse by 14%, lowering entropy 0.17% [1]. Total volume barely moved; the volume changed places. Inheriting last iteration's counts can never find that move, because inheriting means holding the ratios still.

Three other numbers answer three other questions. Across 7 high-impact models, search lowers entropy 0.31% on average within each budget [1]. Trimming, against an untrimmed importance-only control on 6 models, brings every model within budget and cuts attributed pipeline cost 2.3% on average, up to 6.3%, while keeping per-category counts identical, FLOPs within 0.3%, and main-task loss no worse than 0.03% [1]. Online, after more than 6 months and several launches, A/B tests show a 0.20% gain on a primary metric [1]. Three numbers, three units. Do not quote them interchangeably.

Five Questions Before You Let an Agent Cut Features

The pipeline turns into an acceptance checklist, and all five can be answered inside your own system.

  • Are budgets shared or siloed? If another model under the same budget already uses a feature, its marginal pipeline cost is zero [1].
  • Are caps multiples or absolutes? The paper caps resources as multiples of the incumbent, such as 1.2x FLOPs, and enters QPS as its reciprocal so a cap stays an upper bound in both units [1]. Write 'under X milliseconds' and you have cut yourself off from the result.
  • Have you measured entropy noise? Changes beyond 0.03% count as significant here, and a 0.03% main-task loss sits inside noise [1]. If your training varies more, the search will chase noise and look productive doing it.
  • Are you turning one dial at a time? All 25 trials hold the source mixture fixed; mixture tuning is implemented but not evaluated [1].
  • Did per-category counts survive the trim? Trimming keeps counts identical and swaps only which features fill them [1]. Change the counts too and the promise of flat FLOPs no longer holds.

One item sits outside the list and decides whether any of this runs at your shop: how long a single training takes. The 10-to-25-trial budget rests on evaluations that cost hours to days [1]. If one run takes a week, the method gets two trials and collapses into an expensive random draw. A manual ablation would teach you more.

Where This Accounting Stops Working

The paper never quotes a dollar price. Serving cost is FLOPs and QPS; pipeline cost is a percentage against the incumbent [1]. So 'how much does one more feature cost' becomes 'how much more compute, and what share of the pipeline budget'. That is not an omission. A fixed unit price would make cross-model sharing impossible to account for. The second limit is the search space: tens of millions of candidates are filtered by recall and ranking, not by this loop, and 10 to 25 trials cover a few dozen combinations [1].

The third limit is the setting. Every number comes from one company's internal fleet, with no public data, budgets, or metric definitions, so nothing reproduces outside. Move to another team and the premise that someone else already computes it may not hold. Where budgets are siloed, the first layer of the ledger collapses. In a small fleet, the shared saving may not cover the training cost of the search.

Here is the version a non-specialist can repeat: someone moved 'what does this feature cost' into the search constraint, and found the saving comes not from deleting unimportant features but from shifting volume between categories. On 7 production models, entropy fell 0.31%, pipeline spend fell 2.3%, and an online metric rose 0.20%. The preconditions are shared budgets, fast training runs, and a tolerance for relative numbers. One line worth a screenshot: a feature is not priced per unit, it is priced by who already pays for it.

References

  1. Cost-Aware Agentic Feature Optimization System for Fleet-Scale Ranking Models

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…