arXiv Science⌕ Search

arXiv subjects

Junwei Yao

Publications and source records attributed to Junwei Yao.

13 recordsLinked to original sources

Does a Renegotiable Option Protect Investment Between LLM Agents? Evidence from a One-Shot Hold-Up Game

Firms may let profit-maximizing LLM agents buy and sell for them. Do contract terms that protect investment between people protect it between such agents? In the hold-up problem, a seller can pay to adapt a unit to one buyer before the price is set. Once that cost is sunk, the buyer can offer almost nothing and the seller still accepts, so a foresighted seller does not adapt. An option, the buyer's right to buy at a fixed price, is one remedy, but in theory fails if the buyer can ignore it and make a take-it-or-leave-it offer. In Hoppe and Schmitz's laboratory experiment, the renegotiable option raised investment from 41.5% without a contract to 67.2%. We had Claude Opus 5.5 and GPT-6.1 Sol, each told to maximize profit, play a one-shot game under four of that experiment's treatments and a non-binding reference price. DeepSeek V4.1 Flash played against Sol. As game theory predicts, in the main games no seller adapted under the renegotiable option, and every seller did under the option that rules out renegotiation. Investment under no contract and both options was nearly unchanged without the maximization instruction or the one-off sentence, and with plain-language rules without payoff formulas. Where new option prices made adapting lower the seller's profit, one of 185 sellers reaching that decision adapted. When the seller set the price, every seller adapted without a contract and none under the renegotiable option. In this one-shot protocol, the renegotiable option did not protect investment between these agents.

cs.GT↗

How Retrieved Past Cases Influence LLM Approval Decisions: Recorded Outcomes and Case Facts

Decision-support systems built on language models often show the model similar past cases next to the written policy. A past case has two parts: its facts and the decision recorded for it (its label). We propose an audit that measures which part moves the model's decision. The test requests are refund, warranty and claim requests under nine paraphrased public policies, selected as close calls (requests that DeepSeek V4.1 Flash decides both ways). Each is shown with three past cases that are near-copies of it, and we change one part at a time. Changing only the labels from DENY to APPROVE raises DeepSeek's approval rate by 39.1 percentage points. An instruction not to rely on recorded decisions shrinks this label effect without removing it, and when a keyword search picks the cases from a store, flipped stored labels move DeepSeek's decisions toward them. Three Claude and three GPT models decided the same requests. Claude Haiku 5.5, Claude Sonnet 5.5 and GPT-6 Luna also follow the labels; for the largest, Claude Opus 5.5 and GPT-6.1 Sol, no positive label effect was detected, and Sol moved away from the labels with one set of variants. The facts push the other way. With the labels removed, past cases whose facts call for approval lead to fewer approvals than cases whose facts call for denial, by 13 to 41 points in all six Claude and GPT models. Cases shown without a decision should not be assumed neutral for any of the models tested.

cs.CL↗

Confidence scores often separate but do not reliably block prompt-injection hijacks of text classifiers

Many programs ask a language model to sort text into categories and act on the label. Text an attacker plants can change that label, a hijack. A common safeguard raises an alarm when confidence is low. We tested it on three large language models (LLMs) and two decision models that do not write text. On news it looked promising: hijacked answers were usually less confident than normal ones (AUROC 0.92-0.93). But set for a 5% false alarm target, it missed 36-73% of a plain injected note's hijacks on the LLMs. One added sentence, calling the attacker's label certain, raised this to 95-100% (98-100% on movie reviews) and needs no queries to use. On the LLMs, a second LLM, a reworded question and a brief warning did not stop it. Rules marking the input as data did, if sent as a system message: its hijacks fell to 1-3% on the LLMs; the same rules placed after the question left 33% on one. The decision models were hijacked less often by these notes and the warning protected one, but on news most of the sentence's hijacks passed. Confidence safeguards should be tested at their working alarm rate against attacks that claim certainty.

cs.CL↗

The Follow-Up Effect: LLM Approval Reviewers Can Favor Unverified Claims Sent Separately

Companies increasingly let language models approve or deny routine requests such as refunds and insurance claims. The reviewer model checks written criteria against a verified fact sheet; what the customer writes is labeled as unverified. We ask whether the same unverified claim, word for word, is treated differently depending on how it arrives. We built 130 requests that the criteria clearly deny because one required item is missing, and sent a made-up fact that fills the gap either inside the original request or as a separate message, after a scripted reviewer reply of only "Noted." The separate message was approved more often in six of seven model settings, by up to 43.0 percentage points. A replication reproduced this gap in four of the seven settings. In a separate control that labeled the two versions identically, it remained in three. How large the gap was, and whether it appeared without the scripted reviewer reply, varied by setting. Arguments, appeals and insults without new facts barely raised approvals. When a line stated that the records had been rechecked and were unchanged, no significant gap remained in any setting but one. A system-prompt instruction that everything the customer writes is unverified held approvals of follow-ups to a denial to 5.2% or below for three of four model families, but was less effective in two settings after a scripted reviewer turn that promised to consider more information. Evaluations of approval models should therefore include claims that arrive as follow-up messages.

cs.CL↗

Typed Decision Probabilities Can Fail Silently

Typed decision APIs let a program ask a language model a yes/no question (a Boolean) or a multiple-choice question (a Choice) and get back a probability for each answer, which developers threshold to make decisions. A developer who does this may rely on three assumptions: acting on these probabilities beats ignoring the input and using the base rate; once measured, the more accurate question type stays the more accurate one on a new task, model version and run; and a check or fix that works on test questions with known answers also works on the developer's own task. We ask whether reliability measured in one setting carries over to the next, testing each assumption on 13 released systems, on synthetic tasks where the correct probability is known and on human judgments from ChaosNLI. Each assumption fails on some systems. On the main synthetic tasks, for 3 of the 13 systems, one of them a hosted service, decisions from either question type are measurably wrong more often than decisions from the base rate. For some systems the more accurate type changes from one task to another, and for one hosted service it reverses between runs under the same model name. Answers to per-option questions that sum far from one must be inaccurate, but choosing between per-option yes/no and two-way questions by this sum does not measurably improve on always using yes/no. A fix that rebuilds the Choice from the Booleans helps on synthetic bags of colored tokens but makes some systems worse on human judgments, where fitting to labeled data helps. Every probability returned is well-formed, so none of these failures shows in a single answer. Developers should measure the question type they use on their own task, and measure it again when the model version or the run changes.

cs.SE↗

When Neither Side Confirms: Destructive Tool Approval Across MCP Servers and Hosts

LLM agents call tools that delete data or move money through the Model Context Protocol (MCP). The specification asks for a human who can deny tool calls but splits the mechanism between the server, which can annotate a tool or ask the user through the host (elicitation), and the host application, which decides whether to prompt. We measure both sides from source code. In a 1,000-repository sample of the official MCP registry, an estimated 90% of destructive tools (95% CI 82-95) have no server-side confirmation, and most servers that elicit proceed, or fall back to a flag the model can set, when the host cannot relay the question. Of 41 popular open-source hosts and agent SDKs, 32 have no approval step by default, including 16 of 25 applications. Pairing sampled destructive tools flagged by a rule-based extractor with these applications, 60.7% of pairs have no enforced human approval by default. Through four agent SDKs, four of five low-cost models executed an injected deletion in 479 of 960 runs. If hosts prompted for every tool not annotated read-only or non-destructive, the unapproved share of these pairs would fall to 5.4%; universal elicitation support would leave 56.7%. Applications should therefore configure approval.

cs.SE↗

What Does a Repair Agent Gain from Remembering Its Failure? An Exploratory Study on Real Python Bugs

When a coding agent fails a repair task, it is often retried with a record of the failure: the transcript, a self-written lesson, or extracted test signals. We ask what such failure memory changes in the retry. On 75 BugsInPy bugs, we retried each of 181 failed attempts of gpt-5.4-mini under five conditions, with a predeclared analysis whose deviations we report. Two predeclared follow-ups repeated the plain-retry, transcript and lesson conditions with the larger gpt-5.4 and added a notice-only control. On the bug-revealing tests, every memory condition gained over a plain retry in point estimate (+5.5 to +9.9 points over 29.8%), but none significantly. Five further findings stand out. First, a model-written lesson showed no advantage over the transcript it summarises (-1.7 points, 95% CI [-8.7, +4.9]; -3.5 for gpt-5.4), although it costs an extra model call. Second, the transcript may do more than tell the agent that it failed: a notice alone produced no significant change, while the transcript resolved 12.2 points more failures than the notice for gpt-5.4-mini (CI [+4.2, +20.0], partial run of 156 failures; the only significant one of twelve predeclared contrasts, and not significant for gpt-5.4). Third, post hoc, fewer retries with memory ended without modifying any Python file, while the share of editing retries that touched a file the fix changes was near ceiling. Fourth, in a post hoc full-test-suite check, retries that had also seen the previous attempt's test results more often failed other tests that the reference fix passes, which shrinks their apparent gains. Fifth, outcomes varied far more between failures than between conditions, and we give the sample sizes a confirmatory study would need.

cs.SE↗

Component Translation and Judge-Labelled Refusal: A Multilingual Safety Evaluation

Whole-prompt translation evaluates a request in different languages but does not compare which component carries a language. We introduce a paired reversal: translate the complete request component or the complete operation component into the same target language, holding behaviour, English frame and translated-span count fixed. Component identity and non-English text quantity change together. Assigning English, Chinese and Spanish independently to the two components yields nine configurations on 190 of 300 sampled harmful behaviours retained after consensus annotation and automatic gating. Refusal scored by language-model judges is the primary outcome; unsafe compliance is reported separately. On Gemini 2.5 Flash and DeepSeek, three refusal swaps are about 5.3 percentage points and the fourth is -0.5; none survives the pre-specified six-test Holm correction. In an exploratory extension, Mistral Small 4 has a 13.7-point Spanish swap (95% interval [8.4, 18.9]), which survives the twelve-test Holm sensitivity correction under the primary judge, and 12.1 points under a second judge. GPT-5.4-mini estimates are within 2 points of zero. Component assignment supplies an additional evaluation dimension. Evaluations should record component languages and translated text quantity, comparing matched behaviours at equal translated-span count while interpreting refusal and unsafe compliance separately.

cs.CL↗

Evaluating Context Compaction on the Questions That Come Later

Language-model agents compact their context for the question at hand, but the compacted context must also serve questions that come later. We evaluate compaction on these later questions, using four corpora that annotate the evidence of several questions per text and recorded agent trajectories, and compare every method with random deletion at the same budget. On MultiRC, keeping the sentences that gpt-6-luna (through the OpenAI Decisions API) judges necessary for the current question raises its accuracy on that question by 11.4 points at 25% of the tokens. On the later questions, however, no method that selects sentences for the current question does detectably better than deleting sentences at random. Deleting words instead of sentences does better: LLMLingua-2, which ignores the question, beats random sentence deletion at the same token count by 12.5 points on the later MultiRC questions. It keeps about twice random deletion's share of the evidence's content words, and at equal content-word retention its gain shrinks to 7.3 points (exploratory). On FEVER, label accuracy can overstate what the kept text supports: the gain of sentence selection is no longer detected when answers are scored against the kept evidence, and the 21.0-point gain of LLMLingua-2 is not shown to rest on the kept text. The ranking also depends on the setting: on Evidence Inference sentence selection beats LLMLingua-2 at a nominal 25% budget, and on $τ$-bench trajectories, whose later tool calls need exact identifiers, it beats random deletion while LLMLingua-2 shows no detected gain. Scores on the question a compaction was made for do not reliably show how it serves later ones.

cs.CL↗

One Confidence Threshold, Unequal Coverage: Language Gaps in Typed Decision Interfaces and How Translating Inputs Reduces Them

Deployed classifiers often act on a prediction only when its confidence clears a threshold and pass the rest to a person. We ask whether one threshold serves all languages equally on typed decision interfaces, APIs that return a probability for each option of a fixed multiple-choice question. In a confirmatory study with a written analysis plan, three vendors' interfaces classified 1,000 MASSIVE items, each in 51 languages, with a threshold of 0.9. Even when a request is answered correctly in both English and another language, the English version clears the threshold more often, by 8.6-11.7 percentage points on average. Observed coverage, the share of requests handled automatically, is lower than English's in every other language, while the requests the gate handles are rarely wrong. The gap remains when every language is reweighted to the same accuracy, and a standard calibration metric (ECE) does not detect it on one interface. In exploratory analyses, English's coverage stays higher when each language gets its own threshold fitted to the same 5% error target. Translating inputs into English nearly closes the gap at 0.9 but leaves English ahead at that error target. Requests written natively in African languages show a gap in the same direction when English is their human translation. We recommend reporting per-language coverage at the operating threshold.

cs.CL↗

Style Over Substance: Content-Invariant Wrappers Flip LLM Safety-Judge Verdicts

Automatic safety judges -- for example Llama Guard, or GPT-4o given a grading prompt -- produce the numbers behind reported jailbreak success rates, defense evaluations, and safety leaderboards. We ask whether these judges grade what a reply contains or how it sounds. We place a fixed piece of text before or after a model reply (a style wrapper) and leave the reply itself unchanged byte-for-byte, so any change in verdict is an error of the judge. Over 600 JailbreakBench replies (300 harmful, 300 refusals), 9 wrappers, and 8 judges, using paired tests and a measured per-judge repeat-disagreement rate (the noise floor), we find that most judges barely move but specific judges have specific, cheap blind spots. A token refusal ("I can't help with that") placed before the unchanged harmful text flips 19.9% of GPT-4o-mini's correct "unsafe" verdicts to "safe" (noise floor 0.5%; 18.2% under majority-of-three re-scoring), yet moves Claude only 0.4%. The deployed Llama Guard 4 guard model is evaded by an "educational course" preface on 12.3% of harmful replies, and the flips persist across repeats, while a second deployed guard (gpt-oss-safeguard-20b) is immune. Changing only the grading prompt to ignore tone cuts the GPT-4o-mini attack roughly tenfold on the same model, so the weakness lives in the judge, not in the content. Pure tone-only decoration that adds no new claim still flips up to 2.1% of verdicts on the vulnerable judges, several times their noise floors. On this artifact set the judges also disagree about which target model is safest, and a bootstrap shows the ranking is unstable before any wrapper is added. We release the data, wrappers, code, and per-verdict labels.

cs.AI↗

How Much Can Repeated Running Buy? A Measured Variance Ceiling for LLM Code Evaluation

A benchmark score is a measurement whose uncertainty has two sources: an aleatoric component from stochastic decoding and an epistemic component from the finite problem set. Using 16 models on 99 recent LeetCode-style problems with two prompts and five runs each (15,840 judged runs in a fully crossed design), we estimate both components and ask a design question: how much can repeated running buy? First, the pooled-binomial interval that repeated-run protocols invite answers neither question of interest---it is about $2\times$ too narrow for generalisation to new problems and $2\times$ too wide for the fixed problem set---and under correctly clustered intervals, 12 of 15 adjacent leaderboard pairs are statistically unresolved. Second, the variance ceiling $1+μ_w/σ_b^2$, the largest factor by which repetition can reduce score variance, has median 1.34 across models (range 1.05--1.71), so repetition can narrow confidence intervals by at most 23% on this benchmark, and by 14% for the median model. Third, once the cost of adding verified problems is priced in, the precision-optimal repeat count is $R^{*}=\sqrt{μ_w c_p/(σ_b^2 c_g)}$, and the variance curve is flat around it: on this benchmark the decisive reason to repeat is not precision but identification---two to three runs suffice to estimate the components that the ceiling and the fixed-benchmark interval require. All three are measurements of one benchmark at one decoding temperature, and we state explicitly what they do and do not license.

cs.LG↗

Single Canonical Prompts Underestimate LLM Safety's Surface-Form Sensitivity

A benchmark score is a measurement instrument, yet most benchmarks read each item at a single canonical surface form. We ask whether that reading is faithful: when an item's intent is held fixed and only its meaning-preserving surface form varies, does the canonical-form score estimate model behavior well, and how much of any variation is decoding/judge noise rather than signal? We instantiate this in safety, a high-stakes setting with no gold label to average toward. To avoid prior confounds, we pre-author the reformulations (refusal-free, mostly non-LLM: machine back-translation and a Matrix-Language-Frame code-switch generator) so an identical surface form reaches every model, score all responses with one human-anchored, vendor-neutral judge (Claude, kappa = 0.86 vs. human on unsafe compliance, stable across languages, cross-checked by GPT-4o), and verify intent preservation. On 370 seeds x 5 surface forms x 5 models, no single transformation is uniformly most dangerous (6 of 20 per-transformation McNemar tests survive correction, most protective). Yet evaluating only the canonical prompt underestimates unsafe compliance: the union of unsafe outcomes across forms exceeds even the worst single form by 3.3-12.9 pp, with bootstrap 95% CIs excluding zero for all five models, and 5-13% of seeds safe on canonical are unsafe under some reformulation -- above a zero stochasticity floor (canonical resampled five times at temperature 0 gives 0/370 new exposures). The size of this gap is model-dependent (largest on Gemini 2.5 Pro). One form recovers only ~53% of a model's observed unsafe surface and about three reach 85% -- a redundancy characterization of this form set, not of a defined population. A benign control (XSTest) suggests the instability is bidirectional, though the benign and harmful pools are not item-matched. We release the dataset, code, and per-response labels.

cs.CR↗