Papers for

software developers of ai assistants

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Defending AI agents from hidden harmful behaviors after fine-tuning

Defending Against Dormant Poisoning Attacks Across Language and Multimodal Agents

Abstract: Recent work shows that attackers can implant dormant malicious behaviors that remain hidden at release but emerge after benign fine-tuning. As foundation models are used as agents, whether dormant poisoning extends to harmful agent actions and multimodal settings remains unclear. We show two agentic risks: (1) harmful behaviors activated by benign fine-tuning can extend to unseen actions; (2) multiple harmful behaviors can coexist and be jointly activated by benign downstream fine-tuning. Existing defenses often rely on external safe responses, which are hard to obtain for agent actions, or a trusted clean reference model. We exploit a key property of dormant poisoning: the attacker must preserve safe behavior at release to conceal poisoning, and this behavior can serve as a safety reference. Leveraging this property, we automatically construct a Safety Buffer pairing harmful inputs with the released model's responses and benign versions generated by the same model to remove harmful intent. The Safety Buffer can replace external safe responses in existing defenses, but these defenses do not distinguish updates that weaken safety from those that preserve it, often increasing over-refusal or reducing utility. To address this limitation, we introduce LookAhead Defense, which previews benign fine-tuning updates using the Safety Buffer and penalizes only updates predicted to weaken safe behavior on harmful inputs or increase the likelihood of refusals on benign versions in the Safety Buffer. Across language models, language agents, and multimodal agents, LookAhead Defense reduces harmful behavior in agents from up to 93.9% to at most 14.2% and harmful responses in language models from up to 92.5% to at most 2.0% versus vanilla fine-tuning, while maintaining competitive utility and low over-refusal. It remains effective against other poisoning methods.

Sat 17 OctCryptography and SecurityComputation and LanguageComputer Vision and Pattern Recognition
The gist
Some AI models can secretly hide harmful behaviors that only appear after they are slightly changed or updated. The authors show these hidden problems can cause AI agents to act in harmful ways, even after updates meant to be safe. They developed a new defense that uses the model’s own safe responses at release as a guide to detect and stop harmful changes during updates. Their method reduces harmful actions dramatically while keeping the AI useful and less likely to refuse harmless requests. This works across language and multimodal AI agents, improving trust in systems that learn from later fine-tuning.
Open → 2610.24379v1

Parallel inconsistency guidance improves speed and accuracy of diffusion language models

PIG: Parallel Inconsistency Guidance for Accelerating Diffusion Language Models

Abstract: Diffusion language models accelerate generation by decoding multiple masked positions per forward pass. However, accuracy is known to drop when parallel decoding trajectories deviate from their sequential counterparts, which are slow and expensive "oracles" that adhere to the joint distribution of language. In this paper, we propose Parallel Inconsistency Guidance (PIG), a new paradigm that uses a trained auxiliary model to directly estimate the inconsistency between parallel and sequential generation from a single model forward pass. During inference, masked positions are traversed by decreasing confidence, and tokens are added to the parallel decode set one-at-a-time until the total estimated inconsistency between the parallel and sequential generation exceeds a threshold. Surprisingly, it suffices to train a lightweight ~2M parameter auxiliary model on a small mixture drawn from OpenCoder, GSM8K-train, MATH-train, and MBPP-train. For LLaDA-8B Instruct and NemotronDiffusion-3B Instruct, PIG extends the accuracy-TPF frontier on GSM8K, MATH500, MBPP, HumanEval, and MMLU, when compared to the industry standard Fast-dLLM and measures favorably on LLaDA-8B Instruct against DAPD, KLASS, EB-sampler, and other learned unmasking policies.

Mon 12 OctComputation and Language
The gist
Generating text by predicting one word at a time is slow but accurate, while predicting many words at once speeds things up but often lowers accuracy. The authors introduce a method called Parallel Inconsistency Guidance (PIG) that uses a small extra model to estimate how much the faster parallel predictions differ from the slower, more reliable ones. Their method carefully decides how many words to predict in parallel without losing quality, making generation both faster and more accurate. They tested this approach on several language tasks and found it outperformed previous methods.
Open → 2610.17375v1

SpectralShift improves long context handling in gated DeltaNet models

SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterization

Abstract: Recently, linear attention layers have been increasingly adopted to replace softmax attention at scale for long-context modeling. However, existing context extension approaches typically apply continued pretraining directly without modifying these layers, overlooking the spectral properties of linear attention state dynamics. In this work, we study long-context extension of Gated DeltaNet (GDN) from a spectral perspective of transition matrix and identify two essential factors governing long-range information retrieval: (1) a sufficiently broad slow spectral band aligned with the target dependency length, and (2) the preservation of fast-decaying modes for state clearing and context switching. Based on this observation, we propose SpectralShift, a spectral reparameterization approach for long-context continual pretraining of GDNs. Specifically, SpectralShift reparameterizes the alpha projections initialization to reshape the decay spectrum by enhancing slow propagation capacity, and further introduces a learning-rate scaling for alpha projections to facilitate long-context training. Experiments show that SpectralShift consistently improves long-context capabilities over training, providing an effective and efficient solution for extending context windows of linear attention models. The code has been open-sourced at https://github.com/RUCAIBox/GDN-SpectralShift.

Sun 13 SeptComputation and Language
The gist
Many AI models struggle to remember and use information from very long texts. The authors studied a type of AI layer called Gated DeltaNet and found that certain patterns in how information fades over time help it remember longer contexts better. They created a method named SpectralShift to adjust these patterns during training, making the model better at handling long texts. Their tests show that this method consistently helps the model learn to use more information from longer passages more effectively.
Open → 2609.14320v1