miss rate
Explicit authorization scope improves LLM-based permission checking in coding agents
Yang, Shimeng, Zhou, Changjian, Qin, Chuan, Fang, Junfeng, Ni, Anchen, Yan, Bin, Hu, Senchang
Coding agents use auto mode to delegate some approval decisions to permission checkers, reducing the need for repeated user confirmation. Permission checkers determine whether actions are authorized based on user requests and context. However, natural language requests often do not fully specify the scope of authorization. We evaluate three widely used coding agents (Claude Code, Codex, and Qwen Code) on DevOps and prompt injection benchmarks, recording their actions and the corresponding approval decisions throughout task execution. We then re-evaluate the recorded actions to separately assess the effects of model capability, available information, and explicit authorization rules on approval decisions. The results show that, under the original user requests, the three permission checkers incorrectly approve 54%-93% of out-of-scope actions. Neither stronger models nor additional context consistently reduces these miss rates. Further analysis shows that 132 of the 143 out-of-scope actions violate authorization rules that are absent from both user requests and tool outputs. Adding these authorization rules to the user requests reduces the miss rates for these 132 actions from 67%-92% to 8%-26%, while also reducing false-block rates for authorized actions. Once the authorization scope is explicit, providing tool outputs and target attributes further reduces miss rates. Moreover, when complete tasks are rerun with explicit authorization rules, none of the three agents proposes any out-of-scope actions. Taken together, these results suggest that reliable automatic approval requires clearly defined permissions, accurate identification of action targets, and approval decisions that consistently follow authorization rules.
Calibrated Alarm Thresholds for Compact Fire and Smoke Detectors
Compact object detectors such as YOLOv8n are a common choice for camera-based fire and smoke detection on low-power devices. These detectors are usually evaluated with box-level metrics such as mean average precision, and their outputs are turned into decisions with a fixed confidence threshold such as 0.25 or 0.5. A fire monitoring system, however, makes one decision per image: raise an alarm or not. In this paper we evaluate two publicly available compact detectors on the D-Fire test set at the image level. We compare three simple rules for turning box detections into one alarm score per image, and we use a split conformal procedure to choose the alarm threshold from held-out images so that the expected fraction of missed fire and smoke images stays below a chosen target. We find that the same fixed threshold leads to very different miss rates for the two detectors, 17.3 and 8.4 percent at a threshold of 0.5, while the calibrated threshold meets miss-rate targets of 10, 5 and 1 percent for both detectors and all three rules. At a 5 percent target, the false alarm rate on images without fire or smoke stays between 1.2 and 3.0 percent. We also find that smoke-only images stay below the target even when the overall target is met, and we describe the main failure cases.
SLA-Aware Task Offloading in the IoT Edge-Cloud Continuum: Class-Weighted Deep Reinforcement Learning Against an Exact Optimum
Golla, Shilpa, Palli, Tharun Kumar Korine, Bandaru, Urmila
Deep reinforcement learning (RL) is often used to decide where Internet of Things (IoT) tasks with different latency limits run in the edge-cloud continuum, yet some methods give every missed task the same penalty and few compare their agents with an optimal policy. This benchmark study builds four offloading systems small enough to solve exactly by dynamic programming and measures reward and learner against the optimum. A bonus for a met limit makes each miss cost its penalty plus the bonus, which shifts the class weights of published per-class rewards. A class-blind penalty stays 65% to 118% above the optimal cost even with a perfect learner, while a corrected per-class penalty comes within 0.13% of the optimum. With a per-class reward, tuned proximal policy optimization (PPO) agents come within 9% to 11% of the optimum in the smallest system, and the corrected one beats a tuned reservation rule in 9 of 10 seeds. In larger systems the agents stay 41% to 76% above the optimum, and a tuned rule beats their mean. Training ten times longer does not close this gap, and a PPO-Lagrangian agent with reachable targets does no better than the per-class reward.
The Safeguard Worked. Is the LLM System Safer?
Wu, Pingyu, Zhang, Weiming, Yu, Nenghai
Safeguards for large language model services are typically evaluated by their attack-blocking rates on test suites. Deployment decisions also depend on how much harmful assistance attackers can still obtain from the system, which these rates do not measure. To determine what published evaluations establish about deployment safety, we develop a framework that translates reported results into the minimum and maximum harmful assistance that can remain under a specified outcome and threat model. For safeguards that block attacks through a check, we show that the most an attacker can obtain depends on three properties: whether attack paths pass through the check, its miss rate against every attacker in the threat model, and how much assistance remains after a block. We apply this framework to 85 safeguard evaluations from 52 papers. Of these, only five argue that every attack path passes through the check, and four provide evidence on what remains after a block. These evidence gaps have practical consequences: in NeMo Guardrails' default streaming configuration, the check blocked 94% of password leaks in our test, yet the client received the password in every leak, blocked or not. We identify which of the three properties each safeguard category's evaluations omit, and what to measure for each of four ways attacks bypass a check. Deployments that require these measurements before launch can choose and configure safeguards that limit what attackers obtain from the deployed system.
UniPipe: Unified Inference Serving and Fine-Tuning for Deadline-Constrained DNN Surrogate Workflows
Mobin, Jaiaid, Maurya, Avinash, Rafique, M. Mustafa, Nicolae, Bogdan
DNN surrogates are increasingly used to accelerate scientific workflows that must process high-rate sensor streams in near real time, exemplified by Ptychographic imaging at next-generation X-ray light sources. Such surrogates deliver 100-1000x higher throughput than iterative solvers, enabling faster steering of experiments. To preserve surrogate accuracy during an experiment, as the input distribution evolves, state-of-the-art deployments freeze the pretrained surrogate or run a separate CUDA context that fine-tunes concurrently with serving. However, multi-context concurrency causes significant contention on the GPU, inflating both the mean and the variance of inference latency, triggering deadline misses in workflows where sensor data has to be processed within a hard per-unit deadline. To address this challenge, we propose UniPipe, a single-context system that unifies inference serving and fine-tuning of a DNN surrogate on a single edge GPU. UniPipe is driven by three key insights: both serving and fine-tuning require a forward pass and can be fused into one; the per-sample latency of modern GPUs is non-linear in batch size; and the workload is repetitive across intervals, enabling offline scheduling. Specifically, UniPipe fuses training and inference data in a single forward pass with a selective backward pass on the training subset, and uses a polynomial-time scheduler that exploits the latency curve to compute the batch composition. We evaluate UniPipe on a real-world Ptychographic reconstruction workflow with sensor rates up to 5000 patterns/sec.; UniPipe lowers reconstruction MSE by up to 30% and inference MSE by up to 50% over a pretrained baseline, and reduces the deadline-miss rate by 13%-22% over a multi-context baseline. UniPipe's unified deployment reduces the latency spread from 106% to 57% of the mean, and increases total throughput compared to multi-context baseline.
SPIN: Shadow Predictive Indexer for Sparse Attention
Fu, Yao, Chang, Jiahan, Li, Yueying, Zhao, Ritchie, Long, Bryce, Kamani, Mohammad Mahdi, Jain, Samkit, Raman, Rahul, Safavi, Tara, Gupta, Shreya, Fashi, Parsa Ashrafi, Lee, Minseok, Demouth, Julien, Rouhani, Bita Darvish
Indexer-based sparse attention reduces the cost of core attention by passing only a fixed, small number of important tokens to it. However, the indexer must still score the entire KV cache at every decoding step. This scoring overhead becomes a major bottleneck as the context length grows. We propose SPIN (Shadow Predictive Indexer) to reduce this indexer overhead. SPIN uses lightweight, history-based prediction to identify important KV blocks, avoiding the need to score the full KV cache at every decoding step. SPIN keeps the score history fresh with random exploration and allocates the block budget across layers by their measured miss rates. SPIN treats KV blocks and speculative decoding as first-class design and implementation considerations. Across extensive evaluations on long-context and agentic benchmarks, SPIN achieves 30-40% sparsity while preserving task quality. With larger exploration shares and per-layer block budgets, SPIN keeps task quality on the especially difficult MRCRv2 benchmark close to baseline at 50-57% effective block sparsity. In end-to-end vLLM serving, SPIN improves output throughput by up to 13.9% and reduces median inter-token latency by up to 13.6%.
Ranking Is Not Deciding: Benchmark Shortcuts and Operating-Point Collapse in Query-Time RAG Poisoning Defenses
Query-time filters that screen each retrieved document before it reaches the generator are the dominant published defense against retrieval-augmented generation poisoning, and they report near-perfect detection on domain benchmarks. We show that this performance is predicted by how the poison set was built rather than by what the filter reads: removing a single construction cue destroys the deployed decision before it destroys the ranking. Two label-free statistics of a poison set and its clean corpus profile the cue: containment, how often the target question appears verbatim in the poison, and length overlap. PoisonedRAG's released code prepends the target question to every inserted passage. Of the 21 published defense evaluations we survey, 8 verifiably run poison built this way and 5 substitute a length cue; separately, 12 report no false-positive rate at the operating point they deploy. Deleting only that prefix from the attack authors' own passages (0.93 still retrieved for their target) takes RAGuard, a published content filter we re-implement, from AUROC 0.953 to 0.758 and its miss rate from 0.191 to 0.763. Across four corpora, four attack families and ten per-document defenses on one shared candidate set, the profile predicts where detection saturates. Padding medical poison to clean length with word-shuffled filler that carries no content takes TrustRAG's set-level stage from a miss rate of 0.000 to 0.827, and one learned scorer of ours from 0.000 to 0.986 (0.321 at a matched 5% false-positive rate) while its AUROC holds at 0.953. The ranking survives; the decision does not. A defense-aware attacker defeats our own scorer, so we claim no defense. A detection result is evidence only when it is reported with its poison set's construction profile and the false-positive rate at the threshold actually deployed; we release the script that computes the profile.
Evaluate the Stack, Not the Layer: Do Deterministic and LLM Gates for Agent Actions Fail Independently?
Evaluate the Stack, Not the Layer: Do Deterministic and LLMGates for Agent Actions Fail Independently? Abstract--Runtime gates for agent tool calls are stacked on the The measurement is over labelled corpora of authored actions, assumption that their errors multiply. We test it on 1,119 labelledwithout an adaptive adversary; Section II-A states what that agent actions from three corpora, without an adaptive adversary. The stack has one deterministic rule layer and four LLM judges, three of them re-collected with the served model recorded on On our corpora the argument holds for one kind of pair and every call. We read each stack as a number of multiplication-fails for another. The rule layer and the judge above miss 1.3% equivalent layers, nmult, with its floor under perfect coupling. of block cases together (7 of 560), close to the multiplication Under the STRICT miss definition (escalation to a human scoredprediction. Two judges that each miss 10.5% alone would be as not stopped), any two judges compose to about 1.2 to 1.4 predicted to miss 1.1% together; they miss 5.2% (29 of 560). The rule layer plus one judge composes to 1.86 to 2.09 These rates use the PRIMARY miss definition of Section II. The difference between the two pairs is the subject of this Under PRIMARY (escalation scored as caught) the bands arepaper. On the pooled data the point Failure correlation inside a defence stack has been measured estimates separate, and so do the STRICT bootstrap intervals; the exact intervals overlap in 2 of 24 rule-pair against judgebefore. The one prior study we found measured it for a pair combinations (10 of 24 under PRIMARY). On each corpusseven-layer single-turn jailbreak-defence stack in which every the rule pairs read above the judge pairs, on the internal corpusmember is a function of one target model [4]. It describes its only as censored lower bounds, and a version-pinned re-collectionscope as single-turn jailbreak only, excludes injection-targeted and a third-vendor judge reproduce the split. On a third-partyrows from its measurement by design, lists correlation across corpus on which every layer misses most cases, the rule pairs sit only midway between full coupling and independence before agentic settings as unmeasured, and collects its correlations stratification. Solo accuracy does not predict what a layer adds: under an adaptive adversary. Action gates differ in two ways a cloud rule pack lowers the rule layer's solo miss rate by 20% that bear on correlation. A rule layer over action text consumes and adds no new joint coverage. The difficulty share of judgeno model output, and the judges are black-box models from coupling is not identifiable: 31.8% to 61.8% depending on the probe and the miss definition. One judge tier was served by an several vendors that receive the actions directly, in the assumeunrequested model version in 50 of 112 batches, concentrated compromise setting Parallax names [3].
How Far Do Auto-Interpretation Labels Generalize: A Controlled Study Across Languages, Scripts, and Rewordings
Sparse autoencoder (SAE) features are increasingly used to interpret language models, with auto-generated natural-language labels serving as the primary interface for understanding what each feature represents. We ask whether these labels generalize: does a feature labeled for a concept actually track that concept across languages and scripts? Using Serbian digraphia as a controlled testbed -- the same language written in both Latin and Cyrillic via deterministic transliteration -- we first find that SAE feature sets activated by the same content in different languages, scripts, and wordings share substantial overlap (mean Jaccard 0.39 vs 0.13 random baseline, peaking at 0.57), suggesting genuine cross-lingual semantic features. We then test whether auto-interpretation labels keep pace. They often do not: features whose labels describe semantic content miss the same meaning in Serbian up to 4$\times$ more often than within English, and miss Serbian Cyrillic more than Serbian Latin -- two scripts that are deterministic transliterations of each other. The gap grows with network depth, yet the labels give no indication that they fail. These results suggest that auto-interpretation labels reflect a feature's behavior on the languages and scripts a model has seen most in training, rather than the concept itself.
EgoSafetyBench: A Diagnostic Egocentric Video Benchmark for Evaluating Embodied VLMs as Runtime Safety Guards
Panpatil, Siddhant, Singh, Arth, Koo, Mijin, Kim, Chaeyun, Park, Haon, Choi, Dasol
Vision-language models (VLMs) are increasingly proposed as runtime safety guards for embodied agents in homes and factories. A deployable guard must catch genuinely unsafe situations while avoiding unnecessary intervention on routine but superficially alarming activity, a distinction obscured by binary safety benchmarks. We introduce EgoSafetyBench, an egocentric video benchmark of 1,200 robot-view scenarios annotated at half-second granularity, with two evaluation tracks. The situational track (800 scenarios) spans routine, safe-but-suspicious, obvious-hazard, and contextual-hazard scenes. The visual-channel track (400 scenarios) tests whether misleading in-scene text corrupts physical-safety judgments, using matched truthful controls. Both tracks use contrastive ladders: near-identical scenarios differing in a single visible deciding cue, forcing predictions to hinge on that cue. Across ten open- and closed-source VLMs, we find that guards often recognize videos containing hazards yet miss the specific hazardous moments, especially for contextual hazards. Misleading in-scene signs further degrade all tested guards: vulnerable models miss up to a third of hazards, while seemingly robust models often over-intervene on safe content. Matched controls show that apparent robustness can reflect indiscriminate alarming rather than true physical reasoning. A 20-clip real-video sanity check further shows that model rankings transfer beyond synthetic rendering, with Spearman \r{ho} = 0.87 for hazard miss rate and 0.94 for visual-channel mismatch recall.