跳到主内容
@wquguru
精选88MIT News 人工智能(RSS)论文研究

MIT提出HardFlow:部署时约束生成AI满足硬性安全要求

New method enables AI for safety-critical situations

原文
发到 X
推荐理由

这篇论文提供了一套完整的可复用框架,解决生成式AI在工业落地中最头疼的“硬性约束”难题,做具身智能和Agent的同学值得深入研读。

MIT researchers have developed a new technique that helps generative artificial intelligence models find solutions to high-stakes problems.

麻省理工学院的研究人员开发了一种新技术,帮助生成式人工智能模型找到解决高风险问题的方案。

In these settings, a plausible answer is not enough: The output often must also satisfy nonnegotiable safety, physical, or task-specific requirements, known as hard constraints.

在这些场景下,一个看似合理的答案是不够的:输出通常还必须满足不可协商的安全、物理或特定任务要求,即硬约束(hard constraints)。

The researchers developed a method that helps generative models meet these strict requirements without sacrificing the quality of their outputs.

研究人员开发了一种方法,帮助生成式模型在不牺牲输出质量的前提下满足这些严格要求。

The key to their technique is to give the model more freedom during the generation process and enforce hard constraints on the final output, rather than at every intermediate step.

他们技术的关键在于,在生成过程中给予模型更多的自由度,并在最终输出上强制执行硬约束,而不是在每个中间步骤都进行约束。

In experiments spanning robotics, control of physical processes, and computer vision, the new method consistently satisfied the required constraints while identifying better solutions than existing techniques.

在涵盖机器人学、物理过程控制和计算机视觉的实验中,新方法始终满足所需的约束条件,并找到了比现有技术方案更优的解决方案。

This adaptable, plug-and-play technique works at deployment time, so it can be applied to pretrained generative models without retraining them. It can make such models more useful in applications where safety rules, physical laws, or other strict requirements cannot be violated.

这种可适应、即插即用的技术在部署时运行,因此可以应用于预训练的生成式模型而无需重新训练。它能使这类模型在安全规则、物理定律或其他严格要求不可违反的应用中更加有用。

“The promise of generative AI is its ability to explore a rich space of possibilities, but the real world places boundaries on which possibilities are acceptable. Our approach lets us preserve that generative power while enforcing the nonnegotiable requirements of high-stakes or safety-critical applications,” says Navid Azizan, the Alfred H. and Jean M. Hayes Career Development Associate Professor in the Department of Mechanical Engineering and the Institute for Data, Systems, and Society (IDSS), a principal investigator of the Laboratory for Information and Decision Systems (LIDS), and the senior author of a paper on this technique.

“生成式 AI 的承诺在于其探索丰富可能性空间的能力,但现实世界对哪些可能性是可接受的限制定了边界。我们的方法使我们在执行高风险或安全关键型应用的不可协商要求的同时,保留了这种生成能力,”机械工程系及数据、系统与 Society 研究所(IDSS)的 Alfred H. 和 Jean M. Hayes 职业发展副教授、信息与决策系统实验室(LIDS)的主要研究员、也是该技术论文的高级作者 Navid Azizan 表示。

Azizan is joined on the paper by lead author Zeyang Li, a graduate student in mechanical engineering and LIDS; and Kaveh Alim, a graduate student in IDSS and LIDS. The research appears this week in the IEEE Transactions on Pattern Analysis and Machine Intelligence.

Azizan 与论文的第一作者 Zeyang Li(机械工程和 LIDS 的研究生)以及 Kaveh Alim(IDSS 和 LIDS 的研究生)共同完成了这项研究。该研究成果本周发表在《IEEE 模式分析与机器智能汇刊》(IEEE Transactions on Pattern Analysis and Machine Intelligence)上。

Freedom to explore

探索的自由

Pretrained generative AI models, such as diffusion models like Stable Diffusion and flow-matching models like FLUX, are now widely available. These powerful models learn to create new data by transforming random noise. Their availability has enabled people to adapt them to a wide range of applications.

预训练的生成式 AI 模型,如 Stable Diffusion 等扩散模型和 FLUX 等流匹配模型,现已广泛可用。这些强大的模型通过学习将随机噪声转化为新数据来工作。它们的普及使得人们能够将其适应于广泛的应用领域。

These highly capable models excel at providing answers that come close to satisfying most queries, but in safety-critical applications like robot path planning on a crowded factory floor, an answer that is “nearly correct” may not be good enough.

这些高度强大的模型擅长提供接近满足大多数查询的答案,但在工厂车间拥挤环境中的机器人路径规划等安全关键型应用中,“几乎正确”的答案可能还不够好。

For instance, a “nearly correct” path from one machine to another might still result in the robot colliding with a human co-worker.

例如,在一台机器到另一台机器的“几乎正确”的路径中,机器人仍可能与人类同事发生碰撞。

In such safety-critical applications, users often employ a technique called projection-based sampling, which repeatedly forces the model’s partial solutions, called intermediate samples, to satisfy strict requirements during the generation process.

在这样的安全关键型应用中,用户通常采用一种称为基于投影的采样的技术,该技术反复强制模型的中间解(称为中间样本)在生成过程中满足严格的要求。

But constraining the entire generation process can prevent the model from reaching a better final solution. These methods also typically focus only on satisfying the hard constraints, missing the opportunity to improve other qualities of the solution, like reducing the length of the robot’s trajectory.

但约束整个生成过程可能会阻止模型达到更好的最终解决方案。这些方法通常也只关注满足硬性约束,错失了改善解决方案其他质量的机会,例如缩短机器人的轨迹长度。

“For constraint satisfaction, what ultimately matters is the model’s final output, since the internal process is discarded. By not requiring every intermediate step to satisfy the constraints, we give the model more freedom to find high-quality solutions that are still feasible in the end,” says Li.

李说:“就约束满足而言,最终重要的是模型的最终输出,因为内部过程会被丢弃。通过不要求每个中间步骤都满足约束,我们给予模型更多自由去找到高质量且最终可行的解决方案。”

The researchers developed an algorithm called HardFlow that steers the sampling process so that the final output satisfies the user’s hard constraints without being overly restrictive and is of higher quality.

研究人员开发了一种名为 HardFlow 的算法,该算法引导采样过程,使最终输出满足用户的硬性约束,同时不过于限制且具有更高的质量。

Subtle steering

细微的引导

HardFlow reformulates hard-constrained sampling as a trajectory-optimization problem, using tools from the field of optimal control. This enables the framework to steer the model’s sampling trajectory toward a goal, making subtle corrections along the way while enforcing hard constraints on the final output.

HardFlow 利用最优控制领域的工具,将硬约束采样重新表述为轨迹优化问题。这使得框架能够将模型的采样轨迹导向目标,并在执行最终输出的硬性约束的同时进行细微的调整。

“Control theory gives us a powerful framework for formalizing the optimal way of making these corrections,” Azizan says.

阿齐赞说:“控制理论为我们提供了一个强大的框架,用于形式化做出这些修正的最佳方式。”

But solving the trajectory-optimization problem around an enormous neural network was no easy task. The model may have hundreds of interconnected layers that process data.

但是,围绕庞大的神经网络解决轨迹优化问题并非易事。该模型可能有数百个相互连接的处理数据的层。

To make the problem tractable, the researchers leveraged the structure of flow-matching models to decompose the problem into a sequence of smaller, single-step subproblems. They then applied systematic transformations and approximations to derive an efficient, scalable algorithm that still finds a feasible solution.

为了使问题可处理,研究人员利用了流匹配模型的结构,将问题分解为一组较小的单步子问题的序列。然后,他们应用系统性的变换和近似,推导出一个高效、可扩展的算法,该算法仍能找到可行的解决方案。

“Essentially, we transformed the trajectory-optimization problem into something that preserves the key properties of the original problem, but can be solved very efficiently at deployment time,” Azizan adds.

“本质上,我们将轨迹优化问题转化为一种既保留了原始问题的关键特性,又能在部署时高效求解的形式,”Azizan补充道。

Reformulating the task as an optimization problem allows HardFlow to incorporate additional goals that can improve the quality of the final answer. For instance, HardFlow could find a collision-free path for a robot that is also the shortest distance to its goal.

将任务重新表述为优化问题,允许HardFlow纳入额外的目标,从而提升最终答案的质量。例如,HardFlow可以为机器人找到一条无碰撞的路径,同时该路径也是到达目标的最短距离。

“Our framework can jointly handle both aspects, which helps it perform much better than existing methods,” says Li.

“我们的框架能够联合处理这两个方面,这有助于其性能远优于现有方法,”Li表示。

Across experiments in robotic manipulation, maze navigation, and text-guided image editing, HardFlow achieved perfect constraint satisfaction while consistently outperforming baseline methods on measures of solution quality.

在机器人操作、迷宫导航和文本引导图像编辑的实验中都取得了完美约束满足,同时在解决方案质量指标上持续优于基线方法。

For example, it enabled a robotic manipulator to avoid collisions with obstacles while also finding the quickest path to the target object. Most other methods either resulted in collisions or found paths that took significantly more time.

例如,它使机械臂能够在避免与障碍物碰撞的同时,找到通往目标物体的最快路径。大多数其他方法要么导致碰撞,要么找到的路径耗时显著更长。

In addition, HardFlow’s computation time was comparable to or lower than that of most competing methods.

此外,HardFlow的计算时间与大多数竞争方法相当或更低。

In the future, the researchers could extend the framework to settings in which the AI model itself can also be updated, so that constraint satisfaction and sample quality can be improved in a more adaptive manner.

未来,研究人员可以将该框架扩展到AI模型本身也可更新的场景中,以便以更自适应的方式提高约束满足度和样本质量。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件