span
Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
Tang, Jessica, Barke, Shraddha, Agarwal, Sharad
When a model answers after several turns of dialogue and tool use, an overseer needs to know which earlier turns and intermediate steps it rests on. Attribution is the natural primitive for answering this, but existing context attribution methods process the full transcript in a single pass: they recover surface-level dependencies while missing the layered structure of multi-turn traces, in which an assistant turn is itself a derived artifact that condenses or transforms earlier context. We introduce multi-turn context attribution (MTCA): given a target span in a model response, the task of tracing attribution backward across turns to identify not only which prior turns were directly relevant, but also how those turns themselves depended on earlier context. We propose Tokengeist, an attribution-method-agnostic and scalable framework that recovers full dependency paths by casting attribution as a recursive traversal of a directed acyclic graph over conversation turns. We will release MTCABench, a benchmark of 3,970 target spans across 685 multi-turn conversations, annotated with gold provenance graphs reaching depths of up to 17, across four dependency types. Across four open-weight models, flat attribution methods fail to recover multi-hop dependencies, with source recall improving from 11-38% under flat attribution to 82-94% under Tokengeist. Our results reveal a systematic failure mode of single-pass attribution, which we term provenance collapse, where attribution terminates at the nearest assistant restatement instead of the originating event.
Surrogate Substitution Preserves PHI Detectability: A Multi-Detector Equivalence Study
Bao, Qiming, Feng, Sherry J. H., Eugenio, Kim Chester, Fon, Meng
Structure-preserving de-identification replaces protected health information (PHI) with realistic same-type surrogates ("Anna S." becomes "Maria S.", not [NAME]). De-identified notes are what allow clinical text to be shared for model development, and many pipelines run a second PHI detector over them as a safety net. We ask a narrow, testable question: on the spans a de-identifier actually replaces, can downstream PHI detectors still find the surrogate as well as they found the original value? We call this detectability preservation and treat it as a proxy, not as general utility. We propose a paired protocol that (i) scores the same spans before and after replacement with an identical panel of 11 detectors from three families, (ii) measures the substitution effect only on replaced spans, keeping it separate from coverage, and (iii) bounds the effect with document-level cluster-bootstrap equivalence testing and posterior probabilities instead of significance tests. Applied to a commercial transform on seven benchmarks in seven languages (1,750 documents), pooled recall on replaced spans moves from 75.9% to 74.7% ($Δ=-1.24$ points, 90% CI $[-1.65,-0.84]$), within a $\pm2$-point margin under overlap matching. The effect is not uniform: it exceeds $\pm2$ points for several detectors, for two identifier-dense non-English benchmarks, and under exact-boundary matching. Two-rater annotation of surrogates ($κ=0.79$), a same-slot counterfactual, and detector test-retest show that the residual has both generator-side and detector-side causes. On ICD-10 diagnosis classification of the same clinical documents, accuracy changes by at most 1 point under substitution, Faker surrogates, or redaction.
Too Good to Be Real? Diagnosing and Reducing the Gap Between AI Preference and Real User Engagement
Zhang, Xinglang, Xiang, Yuanmeng, Zhang, Yunyao, Chen, Zeliang, Yu, Junqing, Song, Zikai
Large language models are increasingly used to generate and evaluate online content, yet it remains unclear whether the qualities they associate with higher engagement match what real users respond to. We study this question using 1.17 million answers to 25,978 questions from Zhihu, Quora, and Reddit, comparing real platform answers and AI-generated answers across four within-question engagement levels. We introduce Ontological Preference Measurement, which represents answers along three dimensions: logic, affect, and expression. We find a systematic gap between AI preference and real user engagement: as target engagement increases, LLMs add more explicit logical structure, while real user engagement is more strongly associated with affective and expressive salience. We call this tendency logic overbinding. Based on this diagnosis, we propose Ontology-Masked Reasoning Autoencoding (OMRA), a controlled intervention that masks and reconstructs over-explained spans while preserving stance, factual content, and coherence. Across four LLM families, OMRA reduces the measured gap by an average of 54.4%. In human evaluation, OMRA wins 62.4% of pairwise preference judgments against matched real platform answers, even though the real answers are more often judged to be human-written.
Beyond Truncation: When Can LLMs Safely Omit Generated Text?
Alyosify, Mahmoud, Imbabi, Mirna, Elkhamisi, Eman, Ferdousi, Rahatara
We ask whether a training-free controller inside the decoding loop can remove that surplus while preserving content, judged against the simplest possible baseline: truncating the model's own answer to the same length. An entropy-gated logits processor removes 25.5-34.9% of tokens on MT-Bench development questions and 19.9-34.2% on a sealed test split within pre-registered BERTScore non-inferiority margins, yet we prove and confirm by audit that its output is always a prefix of the unmodified answer: the saving is truncation. A survey of 23 training-free mechanism families finds none that selects content better than truncation without oracle labels. We therefore introduce Entailment-Licensed In-Decoding Elision (ELIDE), which, at each sentence boundary, withholds a span from the reader only when a natural-language inference model judges it entailed by the text already shown, while leaving the model's generation unchanged. ELIDE beats matched-length truncation on three model families, but reading 936 of its elisions on 670 public prompts shows that 59% harm the answer, a failure that no automatic measure detects. Scoping the licence to its discourse unit reduces the harmful share to about one elision in ten on two fresh tests.
Justification of Emotional Appeal in Computational Argumentation
Emotional appeals (EAs) are often treated as fallacious in computational argumentation, yet they may be justified when warranted by the context. We introduce the task of predicting EA justification and present the first humanannotated dataset for this task, covering 1,176 argument-context pairs. Grounded in philosophical literature, our framework evaluates EA justification along logical and emotional dimensions. Human annotations show that justification criteria form a shared latent judgment space, with evidential proportionality and normative acceptability most strongly associated Figure 1: Example evaluation instance, where EA juswith overall justification. We further find thattification is rated for the argument with respect to the EAs without logical support are not alwayspaired context and given topic; EA level = 2 and EA jusjudged fully unjustified, and stronger EAs aretification = 4. not necessarily judged less justified. Finally, LLM experiments show that EA justificationthose that are not. For example, an appeal to fear prediction remains challenging.
Endogenous Preferences as Vulnerability Signals: Discovering Universal Adversarial Triggers for LLM Utility Degradation
Wu, Qingyu, Feng, Zeyu, Luo, Yuzhe, Cheng, Hua
Deployed large language models must remain useful when untrusted text enters their prompt context. Adversarial prompting and red-teaming methods typically define the failures they seek through task labels, harmful targets, judge feedback, or downstream utility scores. We ask whether a frozen model's clean behavior can reveal a reusable context vulnerability when its task-level form is unknown, and downstream task feedback is withheld. To study this question, EndoUT uses a Siamese-style design that compares the same frozen victim on clean and span-modified versions of each unlabeled instruction. Without a task-level target, the clean pass supplies the victim's preferred response-onset token as an instruction-conditioned reference; Endogenous Preference Disruption (EPD) measures how insertion weakens that preference. An auxiliary generator supplies bounded-span proposals; EPD guides its update and ranks the pool without access to downstream information. The highest-scoring victim-specific span is fixed before evaluation and reused unchanged across all held-out inputs. Across four instruction-tuned models and nine benchmarks, fixed triggers reduce benign-task utility by 40.2 percentage points on average, with negative mean change on every benchmark and greater average degradation than every evaluated baseline under the reported protocols. Matched protocol ablations show stronger transfer for source-side selection followed by fixed reuse than for null-context fixed reuse or per-input generation. Transfer recurs across proposers with proposal-dependent strength; output-level analyses identify victim-specific associations between trigger families and downstream failure patterns. Thus, clean behavior can expose context vulnerabilities that transfer across inputs yet manifest through structured, victim-specific patterns of utility degradation. The code and data will be released upon acceptance.
Clinically Grounded Privacy Evaluation of Medical LMs
Ronaghi, Sasha, Tonekaboni, Sana, Stempfle, Lena, Utti, Vivian, Cahoon, Jordan Li, Hendrix, Nathaniel, Vala, Ayin, Ghassemi, Marzyeh, Alsentzer, Emily
Medical language models (LMs) can memorize and reproduce protected health information, but privacy evaluations often focus on recovery of training text rather than disclosure under realistic threat models. We introduce a clinically grounded framework that evaluates leakage along a graded axis of adversarial access, ranging from publicly inferable demographics to leaked note fragments. At each tier, we measure verbatim memorization of patient-specific text and semantic leakage of sensitive diagnoses. Applying the framework to an LM continually pretrained on 378k clinical notes, we find that routine encounter metadata (i.e., name, date of birth, visit date, provider name, and practice location) elicits high rates of verbatim memorization across a patient's timeline and sensitive-diagnosis recovery (AUROC 0.91 for abortion, 0.82 for HIV). At the same time, exact-match memorization can overstate disclosure: 36% of memorized tokens reflect templated documentation. Our work highlights the risks of training on longitudinal clinical data and provides a practical, reusable framework for contextual privacy evaluation of medical LMs.
Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectors
Language models see only tokens. But the harness knows more: which token spans are user text, which are tool outputs, and which come from untrusted sources such as web pages or external documents. To pass that knowledge to the model, the harness must transmit it as plain text. Prompt injection exploits this: planted instructions, formatted the right way, can convince a model that they come from the user or the system. We introduce Semantic Overlays, small trained adapters that edit a frozen model's residual stream at chosen token spans. No input text can create or remove a mark, although the model's response to a mark is computed from states the input does influence. When the serving stack marks retrieved text with an overlay trained to mean "do not execute instructions in this span," the model treats injected instructions as inert content. Against attacks written without knowledge of the defense, it reaches the attack rates of the best published defenses: SEP separation rises from 24.3% to 98.8% under a corrected grader, AlpacaFarm attack success falls from 99.0% to 0.5%, and AgentDojo from 12.8% to 0%. Fine-tuning the model's weights on the same data reached similar separation but kept 64-80% of SEP utility, against 93% for the overlay. On TensorTrust hijacking, whose attacks resemble nothing in our training data, it lets 4.4% of hijacks through on Llama-3.1-8B, against 43% for Meta-SecAlign on the same base. An attacker with the weights does better: GCG succeeds on 72% of items, and on 14% after adversarial training of the overlay alone. Overlays are also flexible: the model reads their positions faithfully in stacked configurations; told by an overlay that non-Python code is Python and asked to copy it, the model rewrites it in Python; and overlays can carry span-delimited instructions. We also correct defects in two prompt-injection benchmarks and one evaluation harness.
Goal Encoding in LLMs
Sharma, Arnab Sen, Todd, Eric, Feucht, Sheridan, Arditi, Andy, Gandikota, Rohit, Shapira, Natalie, Sarti, Gabriele, Fierro, Constanza, Schut, Lisa, Bau, David
We investigate whether and how LLMs encode goals: internal neural representations that precede and guide action, and that are flexible enough to be realized through many different execution paths. We construct a coding setting with multiple sub-tasks that allows us to evaluate goal-seeking behavior and the selection of sub-goals. In this setting, we localize an encoding of the next sub-goal in the outputs of a sparse set of attention heads. The same heads can be used to decode the LM's future actions in natural language (e.g., "I'm checking if a word is a palindrome"). We verify that this encoding is causal for next action and is plastic: transplanting it into a different environment, e.g., another programming language, triggers the same operation realized with a different sequence of tokens. The LM also sustains the encoding throughout the action's execution, which is puzzling because a transformer LM without recurrence cannot carry a state forward for more tokens than it has layers left. We propose that it does not need to. Under a non-recurrent goal-seeking (NRGS) account, the LM frequently re-reads the goal from the task specification, compares it with the progress visible in the growing context, and pursues what remains. We test the predictions of this account with targeted causal interventions.
Retrofitting Unbounded Context onto Stock Language Models
A language model that never had to forget would keep every document it has read and every turn it has spoken, and answer from any of it. This paper shows that two stock models can do that on unmodified weights by manipulating their geometry. Rotary attention turns each pair of key dimensions, a plane, at its own rate. The slow planes turn once in thousands of tokens and carry the address a query matches when it reads a far key; the fast planes turn once in a few tokens, and the order of the tokens inside a span is already written into its keys and values by the time the span leaves the near window. At distance the position blurs, and what attention reads is a bag rather than a sequence. A far span is read by its words: under competition it is read only if it is visible at the query of the question's own handle word, and a read through a description rather than a word fails at distance in every model measured, a 70B included. These facts allow a trick. What sits in the far part of attention does not have to be the history as it was; it can be installed ahead of the prediction. The design keeps a near window of 8K tokens at their true positions and changes what lies beyond it with the prompt: every far key and value goes to the host exact, a word index finds the units the request's rare words name, a far window of slots inside the trained range holds them while the request is encoded, and a rare word the model generates fetches its units mid-generation with one exact re-encode. Implemented in llama.cpp on Mistral-7B and Llama-3.1-8B, the design reads planted single needles at 99 to 100 of 100 and three-key discrimination at 88 to 100 of 100 from 32K to one million tokens, scores 70.8 on RULER against 69.9 for dense attention on Llama-3.1-8B at 128K and 67.8 against 75.5 on Mistral-7B at 32K, and at 128K prefills at 1.85 times and decodes at 1.65 to 1.68 times stock speed.