Density-based Feasibility Learning with Normalizing Flows for Introspective Robotic Assembly

Jianxiang Feng, Matan Atad, Ismael Rodríguez, Maximilian Durner, Stephan Günnemann, Rudolph TriebelarXiv 2023 · OpenReview

Abstract

Machine Learning (ML) models in Robotic Assembly Sequence Planning (RASP) need to be introspective on the predicted solutions, i.e. whether they are feasible or not, to circumvent potential efficiency degradation. Previous works need both feasible and infeasible examples during training. However, the infeasible ones are hard to collect sufficiently when re-training is required for swift adaptation to new product variants. In this work, we propose a density-based feasibility learning method that requires only feasible examples. Concretely, we formulate the feasibility learning problem as Out-of-Distribution (OOD) detection with Normalizing Flows (NF), which are powerful generative models for estimating complex probability distributions. Empirically, the proposed method is demonstrated on robotic assembly use cases and outperforms other single-class baselines in detecting infeasible assemblies. We further investigate the internal working mechanism of our method and show that a large memory saving can be obtained based on an advanced variant of NF.

Introduction

In Robotic Assembly Sequence Planning (RASP), a robot must determine the optimal order and physical trajectory for joining components. A significant hurdle in current AI-driven planning is "overconfidence": models often predict sequences that are physically impossible due to geometric constraints or robot kinematics.

To mitigate this, robots require introspection—the capacity to evaluate the feasibility of a proposed assembly before execution. Traditionally, training such feasibility checkers requires balanced datasets of both successful (feasible) and failed (infeasible) examples. However, in real-world manufacturing, generating a comprehensive set of failure cases is prohibitively expensive and time-consuming. This research addresses this gap by proposing a method to learn feasibility using only feasible examples, treating infeasibility as an Out-of-Distribution (OOD) detection problem.

Methodology

The proposed framework utilizes a density-based approach centered on Normalizing Flows (NF) to model the distribution of successful assemblies.

Overview of the proposed density-based feasibility learning framework using Normalizing Flows.

Feature Extraction

The process begins with a pre-trained Graph Assembly Processing Network (GRACE). This network converts complex 3D assembly structures into 94-dimensional feature embeddings, capturing the essential geometric and relational data of the parts.

Density Estimation with Normalizing Flows

Normalizing Flows are generative models that learn to map complex data distributions to a simple base distribution (typically a Gaussian) through a series of invertible, differentiable transformations. The model is trained using Maximum Likelihood Estimation (MLE) exclusively on feasible assembly data. By learning the "shape" of successful assemblies in the feature space, the model can assign a likelihood score to any new input.

Inference and OOD Detection

During inference, the model calculates the likelihood of a proposed assembly. If the likelihood falls below a predefined threshold, the assembly is classified as Out-of-Distribution, signaling that it is likely infeasible. The researchers specifically employed Real-NVP (Real-valued Non-Volume Preserving) flows for these transformations.

Experimental Setup

The method was evaluated using a custom dataset generated via MediView simulation software. The setup included:

  • Components: Synthetic assemblies consisting of 5 or 6 aluminum profile parts.
  • Robot System: A dual-armed KUKA LBR Med system.
  • Scale: The dataset comprised 6,036 assemblies with 5 parts and 2,865 assemblies with 6 parts.
  • Validation: While training was restricted to feasible cases, validation and test sets were balanced with both feasible and infeasible cases (verified via brute-force simulation) to rigorously measure detection performance.

Results and Analysis

The proposed NF-based method demonstrated superior performance compared to standard single-class baselines. It achieved an AUROC of 0.85 for 5-part assemblies and 0.83 for 6-part assemblies, significantly outperforming One-Class SVM (0.74) and naive sequencing networks (0.61).

t-SNE visualization of the Flow Latent Space, demonstrating the separation between feasible (yellow) and infeasible (purple) assemblies.

Latent Space Visualization

Visualization via t-SNE (as seen above) confirms that the NF model effectively "clusters" feasible examples into a compact region in the latent space, while infeasible examples are pushed to the periphery. This spatial separation is the key to the model's high OOD detection accuracy.

Jacobian Dominance and Efficiency

Analysis revealed that the log-determinant of the Jacobian—representing how the transformation stretches or compresses the space—was the primary factor in identifying infeasible assemblies. Furthermore, by adopting a Resampling base distribution, the researchers achieved similar accuracy with a significantly shallower network (109 layers vs. 749 layers), offering substantial memory savings for deployment on mobile robots.

Conclusion and Future Work

This work demonstrates that Normalizing Flows provide a robust mechanism for robotic introspection without the need for negative training data. Future research will focus on closing the "semantic gap" in feature extraction to better capture physical constraints and developing "counter-factual explanations" to help users understand why a specific assembly was flagged as infeasible. Finally, transitioning from simulation to physical hardware remains a critical next step to account for real-world sensor noise and physics.

Summary updated

Abstract

Machine Learning (ML) models in Robotic Assembly Sequence Planning (RASP) need to be introspective on the predicted solutions, i.e. whether they are feasible or not, to circumvent potential efficiency degradation. Previous works need both feasible and infeasible examples during training. However, the infeasible ones are hard to collect sufficiently when re-training is required for swift adaptation to new product variants. In this work, we propose a density-based feasibility learning method that requires only feasible examples. Concretely, we formulate the feasibility learning problem as Out-of-Distribution (OOD) detection with Normalizing Flows (NF), which are powerful generative models for estimating complex probability distributions. Empirically, the proposed method is demonstrated on robotic assembly use cases and outperforms other single-class baselines in detecting infeasible assemblies. We further investigate the internal working mechanism of our method and show that a large memory saving can be obtained based on an advanced variant of NF.
BibTeX
@misc{feng2023density,
  author = {Jianxiang Feng and Matan Atad and Ismael Rodríguez and Maximilian Durner and Stephan Günnemann and Rudolph Triebel},
  title = {{Density-based Feasibility Learning with Normalizing Flows for Introspective Robotic Assembly}},
  year = {2023},
  eprint = {2307.01317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.01317},
}
Figure