前情提要: 我自己写了一个用于服务器监控运维的的项目,能查看服务器状态,日志解析,自动运维等功能 项目中存储了服务器的 ssh 密钥,运维功不让 ai 直接 ssh 到服务器,写了一个中间层 ai 想操作服务器给中间层申请,中转获取命令执行结果,中间层查看类命令全部放行,修改命令需要审核 ai 越权操作 然后因为之前有项目配置了负载均衡导致日志分析出问题了,所以在运维项目的 codex 工作窗口询问是什么原因,有什么差异,还给贴了出问题项目的 nginx 配置文件,然后 ai 跑了半天告诉我改好了,我想去服务器修改一下配置文件呢,一看和 ai 修改的一模一样,当场愣住了,回去看 ai 的回复才发现他妈的把重载都做了,这幸亏修改的没问题,一阵后怕
经常听到朋友,包括 v 友说自己用这几个从开发到部署,一条龙弄完,或者互相监督一条龙上架。 我自己也做过一些项目,但是感觉稍微复杂点的项目,还是比较累,要不停的确认需求和验收文档去对齐。过程中测试和部署也没那么丝滑。反正就是写代码确实牛逼,但是还挺费人的,包括架构层面、验收层面,部署层面。 所以看到别人经常说一条龙丝滑搞定,所以蛮好奇的,就想找一些类似的最佳实践视频看看。看看是不是自己用的有问题。
最近在研究 GIF 制作,发现传统工具大多还是以视频转换、多图合成为主,于是尝试结合 AI 做了一个 GIF Maker。 目前支持四种生成方式: Text to GIF :通过文字描述生成 GIF Image to GIF :让静态图片动起来 Images to GIF :多张图片合成 GIF Video to GIF :视频转换成 GIF 生成后还可以进行一些简单的编辑和调整。 网站: https://gif-maker.org/ 目前刚上线 MVP 版本,分享给大家体验一下,欢迎交流建议。
在本文中,我们探讨了在机械工程中应用生成式 AI 的机遇。一方面,近期已有基于可逆神经网络的生成式方法被提出用于求解逆向设计问题,能够从性能标签推断设计参数。另一方面,生成式 AI 模型已证明其可作为基于物理的仿真的实时代理模型。在此,我们建议将这两条技术路线结合到一个统一框架中:利用 INN 从客户需求的角度控制设计过程,而系统物理的生成式仿真则增加一层可解释性,说明所提出的设计为何满足需求。由于生成式设计容易产生幻觉,我们提出采用不确定性量化来抵御物理上不可行的请求。最后,使用经典工具进行验证是生成式设计流程的必要环节。为展示这一新型生成式设计范式的能力,我们开发了两个交互式环境:一个基于仿真器数据的翼型设计环境,以及一个基于实测数据的燃烧室设计空间探索环境。
We study episodic adversarial MDPs with unknown dynamics and full-information rewards and achieve regret with leading term $\widetilde O(\sqrt{H^3SAK})$. Here $H$ is the horizon, $S$ the total number of states across decision layers, $A$ the number of actions, and $K$ the number of episodes. This improves the two incomparable prior leading terms by factors $\sqrt{S/H}$ and $\sqrt{H^3}$, leaving a factor $\sqrt H$ to the lower-bound scale. We give a reduction from unknown to known dynamics for \emph{downstream-dependent} algorithms, whose policy at step $h$ is computed only from information at steps $h+1$ and onward. This reduces the remaining leading-order gap to finding a downstream-dependent known-dynamics algorithm with $\widetilde O(H\sqrt K)$ regret, which would yield the tight $\widetilde O(H\sqrt{SAK})$ leading term for unknown dynamics. We instantiate the reduction with VOPO, a policy optimization (PO) algorithm. Its improved guarantees follow from a variance-aware analysis enabled by a novel bonus, which we call the Stability-Matching Bonus (SMB). VOPO achieves $\widetilde O(\sqrt{H^3K})$ regret under known dynamics with full information; its $\sqrt H$ gap to the target $H\sqrt K$ rate is inherited by our unknown-dynamics guarantee. We also show that with known dynamics and trajectory bandit feedback, VOPO achieves $\widetilde O(\sqrt{H^2SAK})$ regret. Both known-dynamics guarantees improve the corresponding state-of-the-art PO bounds by a factor $\sqrt H$. A matching lower bound establishes that the full-information rate is tight in one parameter regime.
谄媚和幻觉等高层行为对应于模型激活空间中的方向(Chen et al., 2025)。这些方向被称为人格向量,可通过两种方式抑制不良特质:在推理时于生成过程中减去该向量,或通过预防性引导在微调期间加入该向量,使优化器无需将该特质编码进权重,然后在评估时移除该向量。Chen et al. (2025) 推荐预防性引导,因为它能保持 Massive Multitask Language Understanding(MMLU)的准确率,但对这一推荐的验证仅测量了能力方面。我们主要评估了在三个模型上对谄媚向量和幻觉向量进行预防性引导的结果,测量了三个安全基准以及特质表达、连贯性和 MMLU。我们的发现表明,预防性引导仍会改变拒答行为,但改变程度取决于具体特质,这并不能证明预防性人格引导是安全中性的,引导方法应在多个安全基准上进行评估。
前情提要: 我自己写了一个用于服务器监控运维的的项目,能查看服务器状态,日志解析,自动运维等功能 项目中存储了服务器的 ssh 密钥,运维功不让 ai 直接 ssh 到服务器,写了一个中间层 ai 想操作服务器给中间层申请,中转获取命令执行结果,中间层查看类命令全部放行,修改命令需要审核 ai 越权操作 然后因为之前有项目配置了负载均衡导致日志分析出问题了,所以在运维项目的 codex 工作窗口询问是什么原因,有什么差异,还给贴了出问题项目的 nginx 配置文件,然后 ai 跑了半天告诉我改好了,我想去服务器修改一下配置文件呢,一看和 ai 修改的一模一样,当场愣住了,回去看 ai 的回复才发现他妈的把重载都做了,这幸亏修改的没问题,一阵后怕
知识蒸馏(KD)是一种高效范式,可将大语言模型(LLM)的能力迁移到更小、更专业化的学生模型中。在商业部署中,前沿模型被限制在黑盒 API 之后,序列级蒸馏仍然是竞争对手以极低开发成本克隆专有能力的有效途径。现有防御大多依赖代理模型来操纵下一个词元的采样,这会增加计算开销和实时推理延迟。在本工作中,我们提出了一种轻量级防御方法,在遇到恶意查询时动态向教师模型的激活中注入风格引导向量。该框架具有出色的灵活性,允许部署方自定义目标防御风格并动态混合它们,以最大化风格差异。关键在于,这种推理时干预在恶意查询期间保留了语义效用和流畅性,使对手误以为他们正在提取原始的教师模型输出,而普通用户则继续接收未经修改的原始响应。我们的实验表明,该框架成功干扰了学生模型的学习,在开销可忽略且保持文本自然度的情况下,实现了显著的抗蒸馏性能。我们的代码可在 https://anonymous.4open.science/r/distill-resist-38C6/ 获取。
Phase-field simulation of thermally driven fracture requires resolving localized crack bands whose paths are unknown in advance and thermal boundary layers whose thickness evolves during the transient. Neural energy-based computations of thermal fracture have so far started from defects placed in advance. This paper proposes a mesh-free deep energy method based on multiresolution neural representations that predicts spontaneous crack nucleation, crack spacing, and selective crack propagation and arrest under transient thermal loading. Two networks, each with its own multiresolution encoding, represent the displacement and phase fields and the transient temperature, and the mechanical energy and the incremental functional of the backward Euler heat equation are estimated on integration points redrawn at every iteration. Restricting irreversibility to the crack set, carrying the optimizer state across load steps and decaying the learning rates within each step help prevent spurious damage accumulation. On two notched plates the initiation peak loads agree closely with an independent finite element reference. On a quenched glass strip under an analytical temperature field the crack path changes from straight to oscillatory and then to branched, with an oscillation threshold close to the linear stability prediction. Under a prescribed boundary temperature a quenched ceramic slab forms a crack array of the type observed in experiment, with a spacing close to that of a published benchmark. On the slab and a quenched annulus the arrays are denser than those of a finite element computation on the same material field. No crack paths, nucleation sites or crack-adapted meshes are prescribed.
Before an LLM agent cancels a reservation or deletes a folder for a user, what stops it from acting on a false assumption: what its tools show, or what the user says? In this work, we study this gap with presupposition theory from linguistics: an agent may act only if each claim behind the act (e.g., one reservation fits the name) is seen to hold, answered by the user, or disclosed while the act can be undone. A simple bound shows that when lookups cannot tell one record from two, any agent acts without asking first as often with two records as with one. We then vary whether a search lists, counts, or omits a second match, and whether the user states a claim that a record refutes (e.g., "It is empty"). Under a role-only prompt, a count of a second record leaves most of 36 earlier agents acting on the one they see, whereas listing both stops most. When the user says a record such as a folder is empty, however, a count of its one item stops agents about as often as a listing, and stating the claim mostly cuts acting when it is false. The newest Claude and GPT models always open a counted second record, then never act. When we add a same-name, same-zip customer to a retail benchmark, a lookup returning that customer first led to wrong-account writes in about a quarter of conversations, and one that checks a street the user knows kept completion near the one-customer level. Safe writes therefore need lookups that list or check competing records, and evaluations that vary what tools show.
Behavioral clusters learned over user or item interactions drift as behavior evolves: some fragment into sub-behaviors, some converge, some disappear, and new patterns emerge. Two paradigms dominate the maintenance of evolving clusterings. Threshold triggers fire a pre-specified action when a hardcoded statistic crosses a cutoff; refit-and-track (MONIC-style) re-clusters every window and infers transitions from how the new clusters align with the previous window's. Both hardwire the decision into a threshold or a re-clustering rule. We study an alternative in which a large language model (LLM) makes the lifecycle decision in place. Given a threshold-free, whole-population view of the current cluster set (statistical health, labels, member texts, residual mass), the LLM decides per cluster whether and how to act (split, merge, retire, create, or no-action) without re-clustering. Because the useful signal channel depends on how informative the labels are, we fix a richness-conditioned policy in advance: statistics when label distinctiveness is low, fused statistics+semantics when it is high. On three public datasets spanning label richness (YooChoose 0.17, MOOC 0.50, News-Category 0.70), the policy-selected LLM mode obtains the highest F1 on all three, with far fewer interventions and stronger restraint than tuned threshold heuristics and a MONIC steelman (paired Wilcoxon p <= 0.003, bootstrap 95% CIs excluding zero). The gain is concentrated more in precision than recall. The useful modality shifts from statistics to semantics/fusion as richness rises. Semantics hurt on YooChoose, fusion is roughly neutral on MOOC, and the semantic channel is required on News. One base prompt template and one fixed policy serve all three datasets, whereas the tuned baseline collapses when moved between them. We treat this shift as a practitioner diagnostic observed on three datasets, not a validated law.