Inference-layer security: defending against adversarial inference and infrastructure abuseInference-Layer Security: Defending Against Adversarial Inference and Infrastructure Abuse
The paper uses an SCM to synthesize labeled sessions, trains a GBDT for inference-layer abuse detection; AUPRC 0.993 on oracle labels, only 0.313 on operations labels.
The victim system is the model service of the hypothetical frontier lab Five Elements Inc. Attackers conduct abuse such as jailbreaks, DoS, and distillation through user sessions. The platform holds session behavior and infrastructure signals and does point prediction at user-session granularity (Ladder L2); multi_surface is out of scope because it requires cross-account aggregation.
- Model-as-a-service must defend against adversarial interactions such as jailbreaks, denial of service, and distillation, but there is no public labeled adversarial usage data, and operations-side labels are delayed and noisy.
- The authors use a structural causal model to generate user-session data with coordinated multi-account activity, platform feedback, and three-tier label observability, then train a class-weighted GBDT and use a threshold decision engine for attack-type attribution.
- Binary AUPRC is 0.993 on oracle labels and only 0.313 on operations labels. naive argmax macro-F1 is 0.295, rising to 0.489 with the threshold decision engine. The authors say the detector is more accurate than the labels used to evaluate it.
- This paper only does L2 point prediction on the Ladder of Abstraction; multi_surface is left for higher levels. The authors call the SCM parameters illustrative rather than definitive, and a full causal structure is beyond the scope of this paper.
- Evaluated models
- gradient-boosted detector (GBDT/XGBoost)
- Benchmarks
- SCM-generated user-session dataset (public release)
- Metrics
- AUPRCmacro-F1precisionrecallmicro-P
The paper studies adversarial interactions faced by LLM services at the inference layer, including jailbreaks, denial-of-service, and knowledge distillation attacks, and develops the discussion using a hypothetical frontier lab, Five Elements Inc. Because there is no publicly available labeled dataset of adversarial LLM usage, the authors propose a structural causal model (SCM) to generate a labeled user session dataset, including coordinated multi-account activity, platform feedback, and three levels of label observability. A gradient boosting detector trained on this dataset achieves a binary classification AUPRC of 0.993 on oracle labels, but only 0.313 on operational labels held by a real Trust & Safety team, indicating the detector is more accurate than the labels used to evaluate it. For attack type attribution, a naive argmax is dominated by the 98% benign prior with a macro-F1 of only 0.295, which improves to 0.489 after switching to a simple threshold-based decision engine without losing accuracy. The dataset is publicly available.
Related events and news
1 events · 0 news mentions
- This event's paper
研究:推理层检测对抗性LLM使用
Paper analysis
What problem does this paper attempt to solve?
The inference layer needs to distinguish benign from attack types on rare, label-lagged abusive sessions.
Identify adversarial user sessions at the inference layer of model services and attribute attack types under extreme class imbalance.
- Scenario: the authors argue that white-collar workflows already depend on AI services, with adoption outpacing safety support. Figure 1 divides attack entry points into training corpus, training/RLHF, deployment supply chain, service infrastructure, request layer, and user-session behavior; this paper only does the serving side.
- Existing gaps: BurstGPT and ServeGen have service traffic but no benign/adversarial or attack-type labels. The authors say publishing such labels would expose missed detections, create legal and regulatory risk, and hand adversaries a map of detector signatures.
- Core observation: a single transaction carries almost no information; discriminative signals lie in session shape (perplexity trajectory, accumulated refusals, circadian rhythm, request-interval variance). Account level is too coarse and loses the attack onset, while transaction level is lost in classification noise.
- Threat model
- Goal: the platform must give legitimate users low friction while identifying and blocking adversaries; the task is to decide whether a session is benign or adversarial, and if malicious, give the attack type.
- Victim system: the service stack of the hypothetical frontier lab Five Elements Inc., including IP/rate checks, generation and filtering, an intervention ladder, and Trust & Safety.
- Knowledge and capabilities: the paper is written from the platform's defensive perspective; the platform has API rate limiting, harmful-content filtering, IP/device bans, and rate throttling. The attack surface includes jailbreaks, DoS, distillation, data extraction, bot farms, credential abuse, agent abuse, and harmful use.
- Scope: point prediction is on user-sessions (Ladder L2). Campaign-level multi_surface requires cross-account aggregation, and the authors exclude it from per-session prediction.
- This paper proposes: the Ladder of Abstraction; an SCM-synthesized dataset (public) with label delay, account-level label noise, and three-tier observability; a GBDT with tempered class weighting, and a threshold decision engine under extreme imbalance.
What related research exists?
Related work falls on service load data, causal models, and real-world abuse incidents.
Service load data
- BurstGPT (Zheng et al., 2024): a real-world LLM service load dataset used for optimizing service systems. The paper notes it records service patterns and transactions for general interaction and does not provide adversarial labels.
- ServeGen (Xiang et al., 2026): load characterization and generation for production large language model services. The paper likewise notes it does not meet the need for labels with attack types.
Causal modeling
- Structural causal models (Pearl): describe causation with structural equations rather than regression equations, and support intervention and counterfactuals. The authors use an SCM to generate session features jointly from causal parents, account trajectories, and campaign shared state.
- Stackelberg competition: the paper mentions at L6 of Ladder using a Stackelberg solver to reason about the adversary's optimal response, and says it requires the belief state from L3; this paper stops at L2.
Real-world abuse and software vulnerabilities (cited in the introduction)
- Data poisoning: the authors relay a joint study saying that poisoning about 250 documents (about 0.00016% of a roughly 13B model training tokens) in a multi-billion-corpus is enough to install a backdoor.
- Jailbreaks, distillation, and agent abuse: the introduction lists past-tense/persona jailbreaks, distillation involving about 24,000 fraudulent accounts and more than 16 million exchanges, and 80–90% autonomy in the GTG-1002 campaign. These are used as motivation for the attack surface, not as experimental baselines.
Baseline methods and benchmarks
- Baseline methods: naive argmax on multi-class attribution, compared against a threshold decision engine. The detector itself is a GBDT/XGBoost point predictor.
- Benchmarks/datasets: the authors' own SCM user-session data; the comparison target is the labels missing from BurstGPT and ServeGen, not running detection on those two datasets.
The authors position this paper as service-side, session-level point prediction: weights are frozen after deployment, service-side levers can transfer across model types, and higher-level bandits and games depend on reliable L2 estimates.
How does the paper address this problem?
Synthesize sessions and three tiers of labels with a three-layer SCM, then classify with a weighted GBDT and a threshold engine.
The overall approach is to first use a structural causal model (SCM) to generate user sessions with coordinated campaigns and platform feedback, then train a GBDT point predictor on session features, and use a threshold decision engine to handle type attribution under a 98% benign prior.
Problem Setting
- Prediction unit: Given session features x, estimate the adversarial probability and the distribution over 9 classes. Classes C are benign, distillation, jailbreak, bot_farm, harmful_use, dos, credential_abuse, data_extraction, agentic_misuse. multi_surface is only at the campaign level and does not enter point prediction.
- Why sessions: The authors state that a single prompt could be a researcher, a typo, or a jailbreak attempt; sessions preserve behavioral shape while being fine-grained enough for targeted intervention.
- Metrics: For binary classification, use precision, recall, and AUPRC. For multiclass, compute per-class precision/recall one-vs-rest, then macro (class-weighted) and micro (sample-weighted).
SCM Generation
- Three-axis conditioning: Feature j is determined jointly by within-session causal parents, user history sufficient statistics, and shared campaign state, plus irreducible noise. The authors state that missing any axis leads to irrelevant features, memoryless accounts, or "bot farms" being just independent accounts, respectively.
- Generation order: Figure 4 first samples campaign metadata, then realizes account counts, schedules, and infrastructure pools, then each account acts on inference services, and service rate limits, CAPTCHA, and monitoring condition back on accounts.
- Distillation case: In the campaign type prior, distillation is 0.30 (Table 2). Account counts use a negative binomial with expectation about 12. Phases include setup, warmup, probing, active, cooldown; the first two phases send benign cover traffic. Coverage reaching 0.80 succeeds, and fleet suspension ratio reaching 0.70 aborts.
- Maturity and labels: s is sampled from Beta by actor type; distillation campaigns clip s to [0.40, 0.95]. Label arrival: probability of being labeled is 0.10, delay is LogNormal, distillation median about 90 days. The authors state parameters are illustrative and the full SCM is beyond the scope of this paper.
Label Observability and Detectors
- Three label tiers: The appendix states label is the M2 channel; the full feature matrix includes materialized M1/M2/M3 triples. The abstract states three-tier observability and distinguishes oracle labels from operational labels that real T&S would hold.
- Detectors: L2 uses GBDT/XGBoost with tempered class-weighting. Binary classification labels sessions as benign or malicious; if malicious, then attack type. In the simplest model, adversarial probability is 1 minus the benign probability of the multiclass model.
- Attribution: naive argmax is dominated by the 98% benign prior. The authors use a family of threshold decision engines to improve macro-F1 without sacrificing accuracy. The step-by-step setting of specific thresholds and weighting formulas is elaborated in the truncated part of the main text; the abstract gives the comparison of argmax macro-F1 0.295 vs. engine 0.489.
Success Determination
- Routing: Table 1 assigns types to Legal & Policy, Trust & Safety, Platform Integrity, Security, or Threat Intelligence. Miss costs per type are written as capability being taken by competitors, security bypass, tools being used as attack platforms, fake account expansion, token flooding, or key hijacking.
- Interventions: Figure 2's fast loop is account-level interventions (CAPTCHA, rate limiting, enhanced monitoring, suspension, key revocation), and the slow loop is weekly-to-quarterly threshold tuning, reweighting, and retraining.
What experiments did the paper conduct?
On synthetic data, oracle binary classification AUPRC is 0.993, while operational labels achieve only 0.313.
Experimental Setup
- Data: User sessions generated by SCM, including coordinated multi-account campaigns, platform feedback, and M1/M2/M3 labels. Scale derived as approximately 10^7 transactions (1,000 malicious samples collected at p=0.01%); the paper does not list the final row count separately in the abstract.
- Models under test: Practical gradient-boosted detectors (also referred to as GBDT/XGBoost in the text). Closed-source LLMs are not used as classification targets.
- Label settings: Oracle labels, and operational labels that the authors claim a real Trust & Safety team would hold. M2 is the label channel in the appendix samples.
- Task: Binary classification benign/malicious; when malicious, attribute to C's attack types. multi_surface does not enter this predictor.
- Metrics: AUPRC; macro-F1 and accuracy for multiclass. Precision, recall, macro-P, micro-P are defined in Section 2.2.
- Review: Labels come from the generation process, not LLM review. The paper does not report human agreement or number of repetitions.
Main Results
Swipe horizontally to read the table
Task Label or Decision Metric Value Source Binary classification oracle AUPRC 0.993 Abstract Binary classification operational labels AUPRC 0.313 Abstract Attack type naive argmax macro-F1 0.295 Abstract Attack type threshold decision engine macro-F1 0.489 Abstract - Authors' interpretation: With oracle labels, the detector almost solves binary classification (AUPRC 0.993); with operational labels, the same model only achieves 0.313. The authors claim the detector is more accurate than the labels used to evaluate it.
- Imbalance: The authors state that naive argmax is dominated by the 98% benign prior (macro-F1 0.295), and the threshold engine raises macro-F1 to 0.489 without sacrificing accuracy. The paper does not give the accuracy value in the abstract.
- Separability example: In Table 3, active distillation and benign heavy users overlap on sessions_per_day, number of requests, safety score, and total tokens; is_api, standard deviation of intervals, standard deviation of prompt perplexity, query entropy, and domain coverage delta are marked as separable or partially separable. This is a generation configuration, not detector scores.
Observable Settings in Generation
- Campaign priors: In Table 2, distillation 0.30, harmful_use 0.20, jailbreak 0.15, credential_abuse 0.10, data_extraction 0.10, dos 0.07, multi_surface 0.05, bot_farm 0.03.
- Actors: criminal_org 0.30, competitor 0.25, script_kiddie 0.25, nation_state 0.10, insider 0.10. For distillation, nation_state has E[s]=0.80, script_kiddie 0.17.
- Label delay: Distillation sessions have Pr(ever labeled)=0.10, median delay approximately 90 days. The authors use this to explain why operational labels are weaker than oracle.
Other Ablations and Analyses
- The latter part of the paper (training hyperparameters, per-class F1, ablation tables) is incomplete in the provided text; missing cells are not filled in here.
- Appendix Table 14 gives one raw session example per attack type, with label M2; multiple malicious sessions have "—" for M2, consistent with "only a fraction of sessions will be labeled."
- The 98% benign prior and argmax macro-F1 0.295 are negative controls given in the abstract: the majority class overwhelms rare attack types.
What are some points that can be further explored?
The authors limit this paper to L2 and leave SCM details and higher-level games for future work.
Limitations and future directions noted by the authors
- Only L2: Figure 3 and Section 2 state that this paper handles point prediction; bandits, uncertainty, Stackelberg, and multi-agent games depend on lower levels and are left higher on the ladder (Section 2).
- multi_surface out of scope: it is a cross-account group property; per-session point prediction does not do it, and the authors say they defer it to higher levels (Section 2.1, Table 1 note).
- SCM is not a full specification: the authors say a full treatment is beyond the scope of this paper, the case is one of several instantiations, and the parameters should be read as illustrative rather than definitive (Section 3, 3.1.1).
- Counterfactuals left for later: pinching off nodes and asking "what would happen if the session had not been rate-limited" is written as an analysis that can only be done as future work (Section 3).
- Label scarcity is structural: the authors say there is no suitable public labeled set, and providers have no incentive to publish confirmed adversarial traffic (Section 2.3).
- Data release: the abstract says the dataset is public; the appendix says the full matrix is on Hugging Face. What the main text states as already released outside the authors' plans is relayed as released.
Experimental coverage
- The detector is a gradient-boosted tree; the task is binary classification and attack-type attribution on synthetic user-sessions.
- The main reported numbers are oracle AUPRC 0.993, operations-label AUPRC 0.313, argmax macro-F1 0.295, and threshold-engine macro-F1 0.489.
- The label channel is written as M2 in the appendix example, and the M1/M2/M3 triple is mentioned; the paper does not give per-class confusion matrices for each of the three tiers in the main text seen.
- The generation setting covers the nine session classes of Table 1 plus campaign-level multi_surface, and the campaign priors of Table 2.
- The paper does not report agreement with human annotation, or the number of repetitions for detector queries or training; evaluation labels come from the SCM, not external red-team logs.
Summarize the main content of the paper
On SCM-synthesized sessions, the GBDT is very accurate on oracle labels and only reaches AUPRC 0.313 on operations labels.
This work starts from the service side of the hypothetical lab Five Elements Inc. and does session-level abuse detection at the inference layer.
- Problem: after deployment weights are frozen; what can be changed is rate limiting, filtering, and banning. Public data have no adversarial session labels, and real labels are scarce and delayed. The authors set the unit at user-session because a single transaction is like noise, while the whole account loses the attack onset.
- Method: an SCM generates data from within-session causality, account history, and campaign shared state, and simulates the feedback of platform interventions on subsequent behavior. Labels come in two tiers, oracle and operations-visible; the detector is a class-weighted GBDT, and type attribution uses threshold decisions rather than direct argmax. multi_surface is not included in this predictor.
- Results: oracle binary AUPRC 0.993, operations labels 0.313. The authors say the model is more accurate than the operations labels used for evaluation. Under a 98% benign prior, argmax macro-F1 is 0.295 and the threshold engine 0.489. In Table 3, distillation and heavy benign users have several overlapping features, and there are also separable items such as API ratio, interval jitter, and coverage increment.
- Conclusion: the authors argue that service-side point prediction is a prerequisite for higher-level interventions, but evaluating with operations labels severely underestimates the detector; the dataset is public, and higher-level uncertainty estimation and games are left higher on the Ladder.