<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>constraint satisfaction &#8211; Science</title>
	<atom:link href="https://scienmag.com/tag/constraint-satisfaction/feed/" rel="self" type="application/rss+xml" />
	<link>https://scienmag.com</link>
	<description></description>
	<lastBuildDate>Sun, 04 Oct 2026 19:03:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://scienmag.com/wp-content/uploads/2024/07/cropped-scienmag_ico-32x32.jpg</url>
	<title>constraint satisfaction &#8211; Science</title>
	<link>https://scienmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">73899611</site>	<item>
		<title>MIT&#8217;s HardFlow algorithm steers generative AI around hard constraints without retraining</title>
		<link>https://scienmag.com/mits-hardflow-algorithm-steers-generative-ai-around-hard-constraints-without-retraining/</link>
		
		<dc:creator><![CDATA[Reid Dalton]]></dc:creator>
		<pubDate>Sun, 04 Oct 2026 19:03:24 +0000</pubDate>
				<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[advanced AI algorithms for safety-critical applications]]></category>
		<category><![CDATA[AI safety in industrial automation]]></category>
		<category><![CDATA[collision avoidance in robotics]]></category>
		<category><![CDATA[constraint satisfaction]]></category>
		<category><![CDATA[diffusion and flow-matching models]]></category>
		<category><![CDATA[diffusion models]]></category>
		<category><![CDATA[flow-matching models]]></category>
		<category><![CDATA[generative AI]]></category>
		<category><![CDATA[generative AI safety]]></category>
		<category><![CDATA[hard constraints]]></category>
		<category><![CDATA[HardFlow]]></category>
		<category><![CDATA[HardFlow algorithm for constraint satisfaction]]></category>
		<category><![CDATA[Mit]]></category>
		<category><![CDATA[MIT AI research]]></category>
		<category><![CDATA[optimal control]]></category>
		<category><![CDATA[physical limit adherence in AI systems]]></category>
		<category><![CDATA[physical process control AI]]></category>
		<category><![CDATA[real-time constraint handling in AI]]></category>
		<category><![CDATA[retraining-free generative model modification]]></category>
		<category><![CDATA[robotics]]></category>
		<category><![CDATA[safety-critical AI]]></category>
		<category><![CDATA[sampling algorithms]]></category>
		<category><![CDATA[trajectory and signal generation accuracy]]></category>
		<category><![CDATA[trajectory optimization]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=235422</guid>

					<description><![CDATA[MIT researchers have developed HardFlow, a plug-and-play algorithm that lets pretrained generative AI models satisfy strict safety and physical constraints while improving solution quality, without any retraining.]]></description>
										<content:encoded><![CDATA[<p>Generative artificial intelligence has become remarkably good at producing answers that are almost right. Diffusion models paint images that closely match a text prompt, and flow-matching models generate trajectories, designs, and signals that land near what a user asked for. But in the settings where AI could matter most — a robot navigating a crowded factory floor, a controller managing a physical process, a vision system guiding machinery — almost right can be dangerously wrong. A path that is nearly collision-free is still a collision. A control input that approximately respects a physical limit can still break the machine. A new algorithm developed at the Massachusetts Institute of Technology, called HardFlow, tackles precisely this gap, and it does so without requiring the underlying generative model to be retrained at all.</p>
<p>The research, led by senior author Navid Azizan, the Alfred H. and Jean M. Hayes Career Development Associate Professor in MIT&#8217;s Department of Mechanical Engineering and the Institute for Data, Systems, and Society, appears in the journal IEEE Transactions on Pattern Analysis and Machine Intelligence. Azizan, who is also a principal investigator in the Laboratory for Information and Decision Systems, worked with lead author Zeyang Li, a graduate student in mechanical engineering and LIDS, and Kaveh Alim, a graduate student in IDSS and LIDS. Their central insight is deceptively simple: when it comes to satisfying hard constraints, what matters is the model&#8217;s final output, not the intermediate steps along the way. Yet most existing methods do exactly the opposite, clamping the model at every step of generation and, in doing so, strangling its ability to find good solutions.</p>
<p>To understand why this matters, it helps to look at how pretrained generative models actually work. Models such as Stable Diffusion and FLUX learn to create new data by transforming random noise into structured output through a sequence of denoising steps. This iterative process is what gives them their creative power: they explore a rich space of possibilities before settling on an answer. When users need those answers to obey strict requirements — safety rules, physical laws, task-specific limits known as hard constraints — the standard approach is a technique called projection-based sampling. At each intermediate step, the partial solution is forcibly projected onto the set of constraint-satisfying values, dragging the sample back into the feasible region over and over again.</p>
<p>The problem, as the MIT team recognized, is that constraining the entire generation process is both wasteful and counterproductive. The internal trajectory of a generative model is discarded once the final output is produced, so there is no reason every intermediate sample must be feasible. Forcing feasibility at every step removes degrees of freedom the model could otherwise use to explore, and it can prevent the sampler from ever reaching a better final solution. Worse, projection-based methods typically focus solely on constraint satisfaction, ignoring the opportunity to improve other qualities of the answer — for instance, shortening a robot&#8217;s trajectory while keeping it collision-free. An answer that merely avoids crashing is not the same as a good answer.</p>
<p>HardFlow flips the logic. Instead of enforcing constraints at every intermediate step, the algorithm gives the model freedom to roam during generation and enforces the hard constraints only on the final output. The trick is in how it steers the process. The researchers reformulated hard-constrained sampling as a trajectory-optimization problem, borrowing tools from optimal control theory. This framing treats the sequence of denoising steps as a controlled trajectory that can be nudged toward a goal, with subtle corrections applied along the way and the constraints imposed at the destination. Control theory, Azizan notes, provides a powerful framework for formalizing the optimal way to make those corrections — turning what might otherwise be ad hoc clamping into a principled steering problem.</p>
<p>Of course, formulating the problem is easier than solving it. The trajectory-optimization problem wraps around an enormous neural network, potentially hundreds of interconnected layers deep, and optimizing over such a structure directly would be computationally intractable at deployment time. The MIT team&#8217;s solution was to exploit the mathematical structure of flow-matching models, which allowed them to decompose the global trajectory problem into a sequence of smaller, single-step subproblems. Through systematic transformations and carefully chosen approximations, they derived an efficient, scalable algorithm that preserves the key properties of the original optimization problem while remaining fast enough to run when the model is actually being used. Essentially, as Azizan describes it, the team transformed the trajectory-optimization problem into something that can be solved very efficiently at deployment time.</p>
<p>This deployment-time operation is one of HardFlow&#8217;s most practical advantages. The technique is plug-and-play: it can be applied to any pretrained generative model without retraining, fine-tuning, or modifying the network&#8217;s weights. In an era when powerful foundation models are widely available and constantly being updated, a method that layers constraint satisfaction on top of existing models — rather than baking it in through expensive retraining — dramatically lowers the barrier to deploying generative AI in safety-critical contexts. Hospitals, factories, and autonomous systems do not need to rebuild their models; they simply need a smarter sampler.</p>
<p>The reformulation as an optimization problem also buys something projection methods cannot offer: the ability to jointly optimize for quality. Because HardFlow treats constrained generation as an optimization, additional objectives can be folded directly into the framework. A robotic path planner using HardFlow, for example, does not merely find any collision-free route from one machine to another — it can find the shortest or quickest collision-free route. Li emphasizes that this joint handling of feasibility and quality is what allows the framework to perform substantially better than existing methods, which typically treat constraint satisfaction as the sole goal and leave solution quality to chance.</p>
<p>The experimental evidence spans three domains: robotic manipulation, maze navigation, and text-guided image editing. Across all of them, HardFlow achieved perfect constraint satisfaction — every single output met the required constraints — while consistently outperforming baseline methods on measures of solution quality. In the robotics experiments, the algorithm enabled a robotic manipulator to avoid collisions with obstacles while simultaneously finding the quickest path to a target object. Most competing methods, by contrast, either produced collisions outright or found paths that took significantly more time to execute. Notably, HardFlow&#8217;s computational cost was comparable to or lower than that of most rival techniques, meaning the gains in quality and safety did not come at the price of impractical runtimes.</p>
<p>The implications reach well beyond the lab. Generative models are increasingly being proposed for roles in which their outputs must obey nonnegotiable rules: robots sharing space with human co-workers, controllers governing physical infrastructure, and vision systems whose errors carry real consequences. HardFlow offers a way to preserve the exploratory power that makes generative AI valuable while guaranteeing that the final answers respect the boundaries the real world imposes. As Azizan puts it, the promise of generative AI lies in its ability to explore a rich space of possibilities, but the real world places limits on which possibilities are acceptable — and his team&#8217;s approach is designed to preserve that generative power while enforcing the nonnegotiable requirements of high-stakes applications. The researchers note that future work could extend the framework to settings where the AI model itself is also updated during use, allowing constraint satisfaction and sample quality to improve in a more adaptive, closed-loop manner. For now, HardFlow stands as a demonstration that the path to trustworthy generative AI may not run through bigger models or more training data, but through smarter control of the generation process itself.</p>
<p><strong>Subject of Research:</strong> Hard-constrained sampling for pretrained generative AI models via trajectory optimization</p>
<p><strong>Article Title:</strong> New method enables AI for safety-critical situations</p>
<p><strong>Article References:</strong> New method enables AI for safety-critical situations. (n.d.). <a href="https://www.eurekalert.org/news-releases/1143884" rel="noopener noreferrer">Original publication</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> Not provided</p>
<p><strong>Keywords:</strong> HardFlow, generative AI, diffusion models, flow-matching models, hard constraints, trajectory optimization, optimal control, robotics, constraint satisfaction, MIT, safety-critical AI, sampling algorithms</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">235422</post-id>	</item>
		<item>
		<title>New AI debugging method pinpoints faulty rules thousands of times faster</title>
		<link>https://scienmag.com/new-ai-debugging-method-pinpoints-faulty-rules-thousands-of-times-faster/</link>
		
		<dc:creator><![CDATA[Denise Maddox]]></dc:creator>
		<pubDate>Sun, 20 Sep 2026 21:01:18 +0000</pubDate>
				<category><![CDATA[Technology and Engineering]]></category>
		<category><![CDATA[advanced algorithms for configuration knowledge base diagnostics]]></category>
		<category><![CDATA[AI configuration knowledge base debugging]]></category>
		<category><![CDATA[AI-driven debugging of knowledge bases]]></category>
		<category><![CDATA[automated constraint testing in product configurators]]></category>
		<category><![CDATA[automated identification of invalid feature combinations]]></category>
		<category><![CDATA[automated testing]]></category>
		<category><![CDATA[complex software configuration rule troubleshooting]]></category>
		<category><![CDATA[configuration knowledge bases]]></category>
		<category><![CDATA[constraint satisfaction]]></category>
		<category><![CDATA[direct diagnosis]]></category>
		<category><![CDATA[efficient detection of faulty configuration rules]]></category>
		<category><![CDATA[fast fault pinpointing in complex configuration systems]]></category>
		<category><![CDATA[fault localization]]></category>
		<category><![CDATA[feature models]]></category>
		<category><![CDATA[improving accuracy in software and product configurator rule correction]]></category>
		<category><![CDATA[intelligent debugging methods for knowledge-based configuration systems]]></category>
		<category><![CDATA[knowledge base debugging]]></category>
		<category><![CDATA[knowledge engineering]]></category>
		<category><![CDATA[large-scale product configuration constraint validation]]></category>
		<category><![CDATA[model-based diagnosis]]></category>
		<category><![CDATA[MSSDirect]]></category>
		<category><![CDATA[MSSDirect algorithm for fault localization]]></category>
		<category><![CDATA[QuickXPlain]]></category>
		<category><![CDATA[software product lines]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=202328</guid>

					<description><![CDATA[Researchers have developed MSSDirect, a direct diagnosis algorithm that identifies faulty constraints in large configuration knowledge bases up to four orders of magnitude faster than existing methods.]]></description>
										<content:encoded><![CDATA[<p>Every time you configure a car online, assemble a custom computer, or select options in a complex software product, an invisible engine of logic is working behind the scenes. These systems, known as configurators, rely on configuration knowledge bases: formal collections of constraints that define which combinations of features and components are allowed and which are forbidden. When those constraints are correct, the configurator behaves exactly as engineers intended. But when even a handful of rules go wrong, the consequences can be subtle, frustrating, and expensive, producing configurations that should be possible but are mysteriously rejected, or invalid combinations that slip through the net. A new study published in the Journal of Intelligent Information Systems tackles this problem head-on with an algorithmic innovation that promises to transform how engineers find and fix faulty constraints.</p>
<p>The research team, led by Alexander Felfernig of Graz University of Technology together with Viet-Man Le, Damian Garber, Sebastian Lubos, and Thi Ngoc Trang Tran, presents MSSDirect, a direct diagnosis approach for the automated testing and debugging of configuration knowledge bases. Configuration knowledge bases encode the commonality and variability properties of physical products and software artifacts, and they can grow to extraordinary sizes and complexity. The study&#8217;s experimental benchmarks ranged from compact knowledge bases of 64 constraints to industrial-scale models containing 13,972 constraints, including feature models drawn from real software ecosystems. As these artifacts grow, maintaining them becomes increasingly error-prone, driven by cognitive overload among knowledge engineers, gaps in product domain knowledge, and constraints that quietly become outdated as products evolve.</p>
<p>The core idea behind the new approach is elegantly simple in conception but technically demanding in execution. Engineers test knowledge bases using suites of test cases, some positive and some negative. Positive test cases specify configurations that the knowledge base must accept; negative test cases specify configurations that must be rejected. When a positive test case turns out to be inconsistent with the knowledge base, or a negative test case is unexpectedly accepted, something in the constraint set is wrong. The debugging task is to identify the minimal set of faulty constraints responsible for the observed misbehavior, since these constraints must be deleted or adapted to restore agreement between the knowledge base and its intended behavior.</p>
<p>Traditional methods follow a two-phase process rooted in the classical theory of model-based diagnosis introduced by Raymond Reiter in 1987. First, a conflict detection algorithm such as QuickXPlain identifies minimal conflict sets, which are groups of constraints that cannot all be satisfied together with a given test case. Second, a hitting set directed acyclic graph, or HSDAG, enumerates diagnoses as minimal sets of constraints that resolve all detected conflicts. This two-phase architecture has served the field for decades, but it carries a structural cost: the algorithm must repeatedly invoke conflict detection, and the coordination of sequential QuickXPlain calls and HSDAG navigation introduces overhead that grows painfully as knowledge bases and test suites expand. In the study&#8217;s benchmarks, this overhead frequently pushed the baseline approach past a 400-second timeout limit.</p>
<p>MSSDirect eliminates the intermediate conflict detection step entirely. Building on the concept of direct diagnosis, which the same research community pioneered in earlier work, the algorithm determines diagnoses directly using a divide-and-conquer strategy. It partitions the consideration set of constraints, checks which positive test cases remain inconsistent with each partition combined with background knowledge, and recursively narrows down the search. The output is a maximal satisfiable subset of the knowledge base, a set of constraints that cannot be extended without violating a test case. The diagnosis is simply the complement of this subset: the constraints excluded from the maximal satisfiable subset are exactly those held responsible for the faulty behavior. Because the method never constructs explicit conflict sets, it sidesteps the sequential bottleneck that plagues the classical approach.</p>
<p>The empirical results are striking. Across six real-world configuration knowledge bases, MSSDirect substantially outperformed the hitting-set baseline in the majority of evaluated scenarios. At a 20 percent rate of inconsistency-inducing test cases, speedups reached up to three orders of magnitude, and at higher inconsistency rates of 30 and 50 percent, they climbed to four orders of magnitude. In one representative scenario on a 233-constraint knowledge base with 500 test cases, the baseline required roughly 370 seconds while MSSDirect completed the same diagnosis in 179 milliseconds, a speedup exceeding 2,000 times. On larger models such as a CNN architecture with 1,637 constraints and a Linux kernel feature model with 13,972 constraints, the baseline timed out entirely for test suites of 250 or more cases, while MSSDirect returned results within milliseconds to seconds. Across 72 evaluated configurations, MSSDirect never exceeded the timeout, whereas the baseline did so in 15.</p>
<p>Importantly, the study also documents where the classical method retains an edge. For very large knowledge bases combined with small test suites, the baseline remains competitive, because its targeted conflict detection can resolve conflicts with fewer and more focused solver invocations when per-check costs dominate. The authors are candid about this complementary strength, noting that the advantage of direct diagnosis scales with the number of violated test cases: as more tests fail, joint divide-and-conquer diagnosis becomes increasingly efficient compared with sequential conflict resolution. This nuanced picture gives practitioners a practical decision rule rather than a blanket replacement recommendation.</p>
<p>Beyond raw speed, the researchers introduced a tunable parameter, lambda, that lets engineers explicitly trade off diagnosis minimality against computational efficiency. When lambda equals one, the algorithm returns subset-minimal diagnoses, the smallest possible explanations of the faulty behavior. Larger values of lambda cut runtime further by relaxing minimality guarantees. The team quantified this trade-off with a cognitive-load analysis measuring minimality, accuracy, and relevance of the extra constraints introduced. Their findings are reassuring on one front: the extra constraints almost never omit anything from the true minimal diagnosis, with accuracy values between 0.976 and 1.000. However, roughly three quarters of the added constraints appear in no subset-minimal diagnosis at all, meaning they are largely irrelevant noise. The authors therefore recommend lambda equal to one as the safe default, reserving lambda equal to two for interactive, time-critical debugging sessions on large knowledge bases where rapid feedback matters more than strict minimality, and advising against values above two.</p>
<p>Correctness was verified by cross-checking the diagnoses produced by MSSDirect against the enumeration of minimal diagnoses generated by the baseline. In 30 of 37 comparable scenarios, the two methods agreed on the first diagnosis, and in all remaining cases the MSSDirect diagnosis appeared later in the baseline&#8217;s enumeration, confirming that every answer was a valid minimal diagnosis rather than an approximation. The small divergence reflects a deliberate design choice: MSSDirect ranks diagnoses lexicographically by input constraint ordering, a preference previously validated in user studies where engineers favored diagnoses biased toward constraints they perceived as less essential to the product.</p>
<p>The implications extend well beyond constraint-based configuration. The authors emphasize that their approach is not tied to any single knowledge representation and is equally applicable to answer set programming, Boolean satisfiability solving, and description logic reasoning, formalisms that underpin feature models in software product lines, ontology debugging, and industrial configuration systems in domains ranging from telecommunications and automotive engineering to railway interlocking. Future research directions include learning-based constraint ordering, automated repair suggestions that go beyond fault localization, direct SAT and CSP encodings, and evaluation on test suites collected from real industrial projects. With source code and datasets publicly available, the work lowers a long-standing barrier in knowledge engineering: the diagnosis of large, complex knowledge bases that was once measured in minutes or hours, or simply abandoned as intractable, can now be accomplished in a fraction of a second.</p>
<p><strong>Subject of Research:</strong> Automated testing and debugging of configuration knowledge bases using direct diagnosis algorithms</p>
<p><strong>Article Title:</strong> Automated testing and debugging of configuration knowledge bases with direct diagnosis</p>
<p><strong>Article References:</strong> Felfernig, A., Le, V.-M., Garber, D., Lubos, S., &amp; Tran, T. N. T. (2026). Automated testing and debugging of configuration knowledge bases with direct diagnosis. <em>Journal of Intelligent Information Systems</em>. <a href="https://doi.org/10.1007/s10844-026-01090-3" rel="noopener noreferrer">https://doi.org/10.1007/s10844-026-01090-3</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1007/s10844-026-01090-3" rel="noopener noreferrer">10.1007/s10844-026-01090-3</a></p>
<p><strong>Keywords:</strong> configuration knowledge bases, direct diagnosis, automated testing, knowledge base debugging, model-based diagnosis, constraint satisfaction, software product lines, feature models, MSSDirect, QuickXPlain, fault localization, knowledge engineering</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">202328</post-id>	</item>
	</channel>
</rss>
