Pacing a Document-Verification Budget Like an Ad Budget

Scientific corpora and digital libraries take in large amounts of material that is not research: journal mastheads such as IEEE Transactions on Cybernetics publication information, proceedings Front Matter, committee rosters, calls for papers, and memorial tributes. These documents distort citation graphs and add boilerplate to training data. Telling them apart reliably requires parsing the PDF's layout, which is expensive. A cheap check on the title, URL, or page count is fast but often wrong. An ingestion pipeline therefore makes one decision per incoming document: drop it, admit it on the cheap score alone, or pay for full verification. It has to make that decision under a fixed daily compute budget while keeping the admitted corpus above a target purity.

This proposal observes that this decision has the same structure as an advertiser's auto-bidding problem. There is a spend budget and a floor on a ratio of value to volume. The ad literature has already found how to control such a problem without the two control loops fighting each other. We propose to adapt the "min-pacing" controller of A Field Guide for Pacing Budget and ROS Constraints to a two-stage document filter. We will test whether it beats the obvious engineering answer, which is a threshold tuned offline and then held fixed, and under exactly which conditions.

Core Claim

In a two-stage filter, a compute budget and a purity floor interact in the way a spend budget and a return-on-spend floor interact in ad bidding. The interaction runs as follows. When the purity controller tightens admission, fewer documents are verified and compute goes unused. The budget controller reads that as slack and loosens the verification threshold. Looser verification lets more borderline documents through, which pulls purity down and makes the purity controller tighten again.

A Field Guide for Pacing Budget and ROS Constraints proves that chaining two such controllers in sequence can suffer regret or constraint violation that grows linearly with time. It also proves that a simple alternative matches the $O(\sqrt{T})$ guarantees of a fully coupled solution. In that alternative, each constraint runs its own multiplier update and the submitted action is the more conservative of the two.

Our claim is that the same structure applies to document filtering and that it matters empirically. The reason is that real ingestion streams are non-stationary in a specific way. Proceedings volumes arrive in bursts, with front matter, prefaces, and committee lists clustered at the start of each volume. Individual sources run out of documents after a finite number. Under these conditions a fixed tuned threshold should either overspend or violate purity, while a per-source min-pacing controller should track the binding constraint.

To make the analogy precise, let $s_i$ be the cheap stage's probability that document $i$ is research, $c_i$ its verification cost, $\rho$ the purity target, and $\lambda, \mu \ge 0$ the multipliers for the compute budget and the purity constraint. The fully coupled rule scores each action by its Lagrangian value:

$$ \text{admit unverified: } (1+\mu)s_i - \mu\rho, \qquad \text{verify: } s_i\,(1+\mu(1-\rho)) - \lambda c_i, \qquad \text{drop: } 0 . $$

The verify score reflects that a verified document is admitted only if it turns out to be research. Min-pacing replaces the single joint update with two separate updates. The budget multiplier alone sets a verification threshold on $s_i$. The purity multiplier alone sets an admission threshold. The document receives whichever action is more conservative.

Research Program

The work has three parts.

The first part is the filter itself. The cheap stage uses metadata and file-level signals: title patterns, page count, file size, and publisher metadata. These correspond to the file-specific and containment features of Document Type Classification in Online Digital Libraries. The expensive stage runs PDF body extraction of the kind used to build S2ORC, followed by the full 43-feature structural Random Forest from Caragea et al. That model is the verifier, and its reported numbers anchor its quality. We take the classifiers from prior work and change only the policy that decides which documents reach the expensive stage.

The second part is the controller. We implement min-pacing with one pair of multipliers per source (venue, publisher, or domain) plus global ones. We then modify the multiplier updates to handle sources that run out of documents. Multi-channel Autobidding with Budget and ROI Constraints notes that its guarantees assume "moderate budgets" that channels fully spend, and that the analysis does not cover channels that under-spend for lack of inventory. In our setting such sources are common: a conference proceeding contains only a few hundred papers. Our modification freezes a source's budget multiplier once its observed arrival rate falls below the spend its allocation implies, and hands the unused budget back to the global pool. We will state and test this change as a heuristic. We do not claim a proof for it.

The third part is the benchmark, because none exists. No paper in the file reports results on budgeted, streaming non-research filtering. We will build a time-ordered stream from S2ORC-indexed publisher records, keeping each source's natural order so that front-matter bursts are preserved. Labels for a stratified sample come from the structural classifier and are audited by hand. Each document is labeled as research, non-research, or borderline. Borderline covers position essays like Position: Stop treating `AGI' as the north-star goal of AI research and tutorial-abstract volumes. We will report results under both possible policies for the borderline class. The CiteSeerX crawl, Train+, and "references" test sets from Caragea et al. serve to train the cheap stage and to calibrate the verifier.

Baselines

The naive reference points come first. Admit-all shows the purity cost of doing nothing. The static rule filter mirrors CiteSeerX's operational system, which Caragea et al. report at precision 0.842 against 0.925 for their structural Random Forest; that model reaches 88.7% accuracy and F1 0.891. A third naive policy verifies everything in arrival order until the budget runs out. It shows what the budget costs when there is no policy at all.

The strongest competitor is a threshold tuned offline and then held fixed. It uses the same two stages and tunes, with full hindsight on a held-out prefix of the stream, one pair of admit and verify thresholds per source that meets the budget and purity targets. It is the strongest because it is what a practitioner would ship, and on a stationary stream it is close to optimal. For fairness it receives the same classifiers, the same compute accounting, and a tuning budget equal to the total number of controller hyperparameter trials.

Two further comparators matter. The first is the fully coupled Lagrangian rule above, updated jointly. It is the analogue of the dual-optimal pacer in the Field Guide, which captured 81% of benchmark value at ≤15% RoS error, against 86% for min-pacing, on their 100,000-campaign semi-synthetic benchmark. Those figures come from advertising. For the document setting there is no reported result on Lacuna for budgeted cascade filtering. The second comparator is the per-source budget allocation algorithm SGD-UCB from Deng et al., run with the sources treated as channels.

The upper bound is the hindsight linear-programming optimum on each stream. Two ablations isolate the proposal's ingredients. The first compares sequential controllers against min-pacing with the classifiers held fixed; this isolates the "take the more conservative action" coupling. The second compares min-pacing with and without the freeze-and-reallocate rule for exhausted sources.

The proposal counts as beating the baselines if it meets the purity target on at least as many days as the tuned static threshold and admits more research documents per unit of compute. The margin has to show up specifically on the burst-heavy and exhausting-source streams. It also has to beat the sequential controllers on the rate of constraint violations.

Why not just…?

Why not just tune a fixed threshold offline? This is the real threat. On a stream whose mix does not change, it should essentially match any online controller. We therefore report results separately on a shuffled, stationary version of every stream and on the naturally ordered version. If min-pacing gains nothing on the ordered streams either, we will conclude that adaptive pacing is unnecessary for document ingestion and report that negative result.

Why not just run the structural classifier on every document? If verification is cheap relative to crawling, the budget never binds and the problem disappears. We will measure actual per-document parse cost and sweep the budget from "verify everything" down to 5% coverage. The proposal is only relevant at budgets where verify-everything cannot keep up. We will report where that crossover lies rather than assume it.

Why not just use two independent controllers? The Field Guide proves linear regret for sequential coupling in the ad setting. Whether the oscillation it predicts appears here depends on how strongly admission and verification interact. The sequential-versus-min ablation measures this interaction directly by tracking how threshold trajectories oscillate and how often the controllers flip between tightening and loosening.

Proposed Experiments

The decisive check is a two-by-two comparison. One axis is stream type, stationary versus naturally ordered. The other is controller, the tuned static threshold versus per-source min-pacing. Each cell is run at three budget levels and two purity targets, over repeated stream orderings. The metrics are research documents admitted per unit of compute, the fraction of days the purity target is violated, the size of violations, and the value captured relative to the hindsight optimum.

A second check stresses exhausting sources. We inject sources whose finite documents run out mid-stream and compare SGD-UCB, min-pacing without reallocation, and min-pacing with reallocation. The comparison asks whether Deng et al.'s moderate-budget assumption actually fails in practice and whether the freeze rule repairs it.

A third check tests robustness to the label policy. We rerun everything with borderline documents counted first as research and then as non-research. The purpose is to confirm that any advantage does not depend on how position essays are labeled.