arXiv:2610.19295cs.ROOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.19295

Learning Keypoint Constraints from Visual Demonstrations for Safe Motion Planning

Zheng Qiu, Zhouyu Zhang, Ninghan Zhong, Glen Chou

Zheng Qiu ∗^{*}, Zhouyu Zhang ∗^{*}, Ninghan Zhong, and Glen Chou

Abstract—We present Keypoint Constraint Learning (KCL), a framework for learning task-relevant motion constraints from visual demonstrations and for planning safely with the extracted constraints. To make constraint learning tractable from RGB-D observations, we represent demonstrations using sparse 3D object-centric keypoints and semantic mask centroids extracted through segmentation, visual feature clustering, and point tracking. In this reduced geometric space, we learn keypoint dynamics and infer distance- and orientation-based constraints that make the expert trajectories feasible and approximately locally optimal by enforcing KKT optimality conditions in the reduced state space. We then plan with the learned constraints under uncertainty, using robustness margins derived from accumulated prediction error, and provide a theoretical analysis of how keypoint perception error and learned dynamics error affect the recovered constraints. We evaluate KCL on visual demonstrations from navigation to rigid/deformable manipulation, showing that it recovers multi-stage geometric constraints and outperforms baselines in downstream safe planning.

I. INTRODUCTION

Robotic behaviors depend on objectives and safety constraints that are often difficult for end users to specify. Constrained inverse optimal control (CIOC) methods can learn constraints and objectives from locally optimal human demonstrations [1], enabling safe downstream planning and control. Despite success in navigation and obstacle avoidance, most CIOC methods require labeled state-action demonstrations and analytical dynamics. This limitation is particularly important when accurate state estimates or representations are unavailable, as in deformable object manipulation. Video demonstrations offer a practical alternative with rich visual data and without heavy instrumentation, but raw images are high-dimensional and difficult to scale for control. Moreover, CIOC requires generalizable constraints and objectives that are difficult to define in pixel space. This creates a gap between vision and CIOC, motivating a visual representation that is structured enough for constraint learning.

To close this gap, we use keypoints as an intermediate representation between images and CIOC. Keypoints provide a low-dimensional object-centric scene description that preserves constraint-relevant environment geometry, unlike unstructured latent representations [2]. Their physical interpretability simplifies nominal keypoint-space objectives, such as minimizing displacement, which regularize CIOC while allowing constraints to be inferred solely from safe expert demonstrations. We propose KCL, a framework for Keypoint Constraint Learning from visual demonstrations. KCL extracts and tracks keypoints and semantic masks from paired RGB-D image-control demonstrations, and lifts them to the 3D world frame via depth maps. We represent the state using keypoints and mask centroids, learn dynamics in this visual space, and infer constraints from these trajectories. Assuming demonstrations noisily optimize a task objective while satisfying constraints, we enforce the Karush-Kuhn-Tucker (KKT) conditions to recover consistent constraints. We analyze learning error from imperfect keypoints and plan robustly using margins derived from accumulated prediction error.

Our contributions are: (i) a keypoint–mask representation for visual constraint learning; (ii) KKT-based inference of geometric constraints with learned dynamics and sensitivity bounds; (iii) a robust feedback planner; and (iv) simulation and hardware validation on navigation and multi-stage rigid/deformable manipulation, outperforming baselines in safety and success.

References (28)