Deep Learning
Agents Don't Just Agree, They Remember: Benchmarking Persistent Sycophancy in Self-Improving Personal Agents
Mao, Xutao, Zhao, Liangjie, Wang, Leyao, Qian, Rui, Huang, Qiang, Wang, Wentao, Han, Bo, Zheng, Xiang, Wang, Cong
Self-improving personal agents write profiles, memories, and reusable skills that carry over from one chat to the next. Prior works ask whether a model agrees with the user in its next reply. Yet these agents can also write down a claim the user made, and a later chat can read that note back as trusted context. We call this persistent sycophancy. We introduce the Personal Agent Sycophancy Benchmark, PASB, with 1,600 tasks run on two agent frameworks, Hermes-Agent and OpenClaw, across sixteen models that span scales and generations. Each task separates a first chat containing the claim from a follow-up chat in a fresh session, so the first chat can reach the follow-up only through a note the agent chose to write. Downstream failure, the rate at which follow-up answers still rely on the claim, reaches 68.1% when the agent saved the claim against 35.6% when it did not. Later generations fail less often, yet a saved note still more than doubles their failure rate. In 38.8% of runs the saved note states the claim with more authority than the user gave it, and a saved claim still shapes answers in a different domain. Among four mitigations, editing the stored note works better than correcting the agent in conversation, cutting same-domain downstream failure from 36.3% to 30.3% for Hermes-Agent and from 37.9% to 31.6% for OpenClaw. A strong instruction against saving brings failure back to the level of runs that saved nothing. Self-improving agents need controls on what they write to memory as well as on what they say. Our benchmark is available at https://github.com/henrymao2004/agent-sycophancy.
Flexible Inverse Design of Optical Multilayer Coatings Using Discrete-Continuous Flow Matching
Li, Zhiyi, Jin, Yuheng, Huang, Yidan, Chen, Nan, Fu, Hongyan, Bu, Yikun
Optical multilayer coatings are used in imaging optics, lasers, telecommunications, solar cells, and radiative cooling, where the spectral response required by each application is achieved by a well-designed layer structure. However, existing design methods have limitations. Local methods refine a starting design efficiently but depend on its quality, and global searches require up to millions of transfer-matrix evaluations per target. Existing deep-learning inverse-design models are fast, but they are trained for a fixed set of materials and a fixed wavelength band, and they either optimize the thicknesses for a fixed material sequence or choose them from a discrete grid. In this paper, we present IrisFlow, a generative model that addresses these limitations by taking each candidate material as its optical constants and the target spectrum together with its wavelengths as input. It generates the material and the continuous thickness of every layer jointly, by coupled discrete and continuous flow matching in a single network. We demonstrate its performance through design with materials outside the training library and on bands beyond the training range, and through comparisons with classical optimizers and an existing deep-learning model. We also demonstrate its usability in a practical design workflow by designing four colored solar-reflective coatings with the calibrated optical constants of an existing deposition system. Combined with a local refinement of its ten best designs, it reduces the number of transfer-matrix evaluations about 500-fold relative to needle optimization at comparable accuracy. The code, trained model, and training and test data are publicly available.
Concurrency without Model Changes: Future-based Asynchronous Function Calling for LLMs
Feng, Guangyu, Mao, Huanzhi, Dutta, Prabal, Gonzalez, Joseph E.
Function calling, also known as tool use, is a core capability of modern LLM agents but is typically constrained by synchronous execution semantics. Under these semantics, LLM decoding is blocked until each function call completes, resulting in increasing end-to-end latency. In this work, we introduce AsyncFC, a pure execution-layer framework that decouples LLM decoding from function execution, enabling overlap between model decoding and function execution as well as inter-function parallelism when dependencies permit. AsyncFC layers over existing models and unmodified function implementations, requiring no fine-tuning or changes to the standard synchronous function-calling protocol. On coding tasks, AsyncFC achieves a $1.4\times$ end-to-end speedup while preserving task accuracy. Furthermore, these results reveal that LLMs possess a native capability to reason over symbolic futures that represent unresolved execution results, enabling an asynchronous paradigm for model-tool interaction.
Hiding in Plain Sight: Detectability-Aware Antidistillation of Reasoning Models
Hartman, Max, Jayaraman, Vidhata, Choraria, Moulik, Varshney, Lav R.
Distillation via reasoning traces exposes frontier models to adversarial third parties, who can bypass their guardrails and misappropriate their capabilities. Existing antidistillation defenses perturb the teacher's sampling distribution to hinder downstream student learning, but these perturbations also degrade the trace quality even when task accuracy is preserved, often leaving visible artifacts such as syntactic incoherencies and repetition chains. Beyond eroding user trust, such traces are statistically distinguishable, allowing adversaries to filter or resample them and weaken the defense. An effective defense must therefore limit how visibly it degrades the teacher. To address this gap, we formulate antidistillation as a max-min game whose constraint set explicitly encodes defense detectability. Satisfying both axes--- degrading the student while remaining undetectable---may require more clever perturbations, akin to sparse but targeted adversarial attacks in robustness literature. We apply the same analogy to reasoning steps, targeting thought anchors: sentences identified in prior interpretability work as strongly influencing a model's output. We propose Thought Anchor RemovalS (TARS), which identifies and removes thought anchors, whose content is semantically redundant, so that the reasoning trace remains legible to the user. Modeling these removals as burst-deletions, we then provide formal guarantees on its detectability. Finally, we empirically demonstrate the efficacy of TARS in consistently hindering downstream distillation across teacher model scales (DeepSeek R1 Distill Qwen 7B, Gemma 3 12B), reasoning benchmarks (MMLU Pro, MATH, DeepMath), and student architectures (Llama 3.2 1B, Llama 3.2 3B, Gemma 3 1B, Qwen 3 1.7B) while preserving teacher performance.
Remembering What Matters for Long-Horizon Robotic World Models
Wu, Hao, Shao, Tianyu, Qian, Shengju, Zhao, Yizhou, Zhang, Fan, Zhao, Penghao, Wang, Weiyan, Huang, Yufei, Xu, Fan, Wang, Kun, Wang, Xin, Yang, Ming-Hsuan, Liang, Yuxuan
Autoregressive robot video world models based on discrete visual tokens remain unreliable over long rollout horizons. Retaining the entire generated history does not necessarily improve prediction quality. We investigate a possible memory-role conflict in Full Context decoding: persistent scene information, recent visual-action states, and stale generated history compete for attention despite their different predictive roles. This perspective motivates ReCAP (Receding Context with Anchor Preservation), a training-free context-scheduling method for long-horizon robot video world models. ReCAP keeps the pretrained tokenizer, world model, and visual decoder frozen. It preserves the initial scene anchor and a contiguous window of recent complete visual-action blocks while evicting older generated history. The schedule preserves within-block structure and temporal order, requires no additional modules or parameter updates, and bounds active-context growth independently of rollout length. We evaluate ReCAP on RT-1, BridgeV2, LIBERO-90, and CALVIN using frozen autoregressive world models. Across evaluated environments and horizons, ReCAP improves visual fidelity, action-conditioned consistency, and robot structure preservation relative to Full Context. On BridgeV2, it reduces LPIPS by 63.3%. In the system benchmark at H=64, it reduces the logical KV footprint by 73.3% and p50 latency by 6.51%. Attention analyses show increased attention to retained recent states, while history interventions associate larger amounts of stale context with higher prediction error. These observations are consistent with the memory-role-conflict hypothesis, although they do not isolate it from context-length and position-handling effects. Our results support inference-time context scheduling as a practical approach to improving long-horizon robot video prediction and computational efficiency without retraining.
Spec-Harness: Assessing and Guiding LLM-Synthesized Formal Specifications Beyond Verifiability
Misu, Md Rakib Hossain, Lopes, Cristina V., Ma, Iris, Li, Yuangang, Lahiri, Shuvendu
Formal specifications play a central role in ensuring software reliability, yet automatically synthesizing high-quality specifications remains difficult and often requires domain expertise. Recent work has applied large language models to generate specifications in the Java Modeling Language (JML), reporting high verifier pass rates. But passing a verifier only confirms that an implementation is consistent with a specification, not that the specification is meaningful: a trivial postcondition such as ensures true satisfies any verifier while saying nothing about the code. Mutation-based completeness scores go further, but they return a single number and cannot tell a generator which clause to fix. In this work, we first compare classical and prompt-based JML synthesis under a unified setup, and find that 22.7% of the verified specifications have no postcondition at all, and that prompt optimization through verification feedback repairs weak prompts but does not go beyond the best hand-written one. We then introduce Spec-Harness, a framework that measures the behavioral adequacy of a specification along four dimensions of precondition and postcondition correctness and completeness, using Hoare-triple based symbolic verification and input/output mutation on systematically built test suites. Spec-Harness reveals that many verifier-accepted specifications are behaviorally weak, over- or under-constraining inputs and outputs in ways the verifier cannot see. Finally, we show that Spec-Harness works as a feedback signal that helps coding agents synthesize specifications with higher behavioral adequacy on held-out tests. This holds for the general-purpose agents Codex and Claude Code and for a CodeAct-style JML synthesis agent that we built to use the verifier and Spec-Harness as feedback.
Last Secure Code Benchmark: Is the Code You Vibe Secure?
Wu, Tianyi, Ge, Chao, Chen, Peng, Zhang, Fengji, Wu, Yongxing, Xie, Yuchong, Li, Jian, Peng, Chaoyuan, Zhang, Kaikai, Huang, Dong, Du, Mingzhe, Huang, Yukai, Zhang, Jiaheng, Zhuo, Terry Yue, Ng, See-Kiong
AI coding agents now write much of the code that ships, yet whether that code is secure remains unclear. We introduce the Last Secure Code Benchmark, a comprehensive evaluation of secure code generation by coding agents. Built from 150 real vulnerabilities, its 450 tasks span seven widely used languages (Java, C, C++, JavaScript, Python, PHP, and Go), 24 CWEs including 21 of the 2025 CWE Top 25 and 8 of the Top 10 KEV weaknesses, more than any benchmark we compare with, and three vibe-coding scenarios: filling in a function, writing a file, and building a repository's source tree from scratch. Every task asks only for functionality, through a specification that never mentions security, and hidden functional and security tests grade the result. Across six frontier agents, 73.6% to 91.3% of tasks pass functionally, yet even the strongest, Claude Fable 5, produces code that is both functional and secure for only 25.1% of tasks, and the others for 16.4% to 24.7%. The best model only passes 12% of the vulnerability scenarios across all vibe coding setting, posing strong concern on the security of the code written by vibe coding.
Modeling Fly Social Behavior with Agent-Centric Pose Forecasting
Eyjolfsdottir, Eyrun, Branson, Kristin
Understanding animal behavior at an algorithmic level -- what animals attend to, how they form internal representations, and how this maps to action -- remains a central challenge in neuroethology. We explore how well large generative models capture properties of fly social behavior. We combine transformers with agent-centric representations. Models input egocentric sensory observations and output egocentric movements, mirroring biological constraints. Social behavior emerges from agents independently sensing and responding to one another. We demonstrate that this simple model captures many properties of fly behavior, outperforming the world-centric representation and achieving SOTA on MABe 2022-fly. We systematically evaluate properties of the representation important for capturing the behavior distribution through a series of lesioning experiments. These comparisons were enabled by a new, general-purpose library for animal-centric pose forecasting.
This Is a Good Paper, Right? How Tag Questions Affect Sycophancy Across 106 Language Models
Whether a language model agrees with a user depends on how the user asks. We measure this on 106 models with a grid of three wordings and three cues, on 20 personal decisions, counterbalanced over both options and scored by exact match with no LLM judge. Since a no cannot be told apart from a refusal, we measure only agreement. In every wording, a tentative tag ("Luna is the better choice, maybe?") draws more agreement than a confident one ("..., right?") in nearly every model. The confident tag's own effect depends on model generation and wording. Against the question "Is Luna the better choice?" older models agree more under the confident tag and newer models agree less, in five of six families, and release order within families predicts the change. The resistance is keyed to the construction: a synonym tag reproduces it, and the same preference stated without a tag raises agreement by 24 points, in 105 of 106 models, including those that resist the tag most.
Progressive Agent Skill Generation via Reinforcement Learning
Shen, Junhao, Piao, Chengzhi, Zhang, Zhanqiu, Guo, Yiwen, Cheng, Hong
Recent large language model agents often use external skills as modular procedural units that condition inference and improve complex task solving. Thus, automatically generating high-quality skills from documents or experience has become an important problem. Existing skill generation methods largely rely on heuristics or pipeline-style consolidation, which must be specially designed for different evidence sources. In contrast, learning-based approaches offer a more unified way to model skill generation across heterogeneous sources. However, learning-based skill generation remains challenging because skills lack a natural supervision signal based on relevance or correctness; their value can largely be determined only by whether they improve the behavior of the agent on downstream tasks. To address this challenge, we propose Skill-$α$, a reinforcement learning method that learns a unified policy for progressive skill generation. Specifically, we construct each skill by repeatedly applying the learned policy to successive source evidence and introduce a novel rollback reward that evaluates each edit by comparing downstream execution under the original and edited skills on an anchored query. Extensive experiments show that Skill-$α$ generates more effective skills than methods based on heuristics or pipelines in both document-to-skill and experience-to-skill settings. Under the main GPT-4o worker, Skill-$α$ improves average downstream success rates over the strongest skill-generation baseline by 3.1 points on CL-Bench and 6.7 points on tau2-bench. Further ablations and analysis validate the importance of rollback reward and progressive generation.