A Hyper-network Based End-to-end Visual Servoing with Arbitrary Desired Poses

Hongxiang Yu, Anzhe Chen, Kechun Xu, Zhongxiang Zhou, Wei Jing, Yue Wang, Rong XiongarXiv 2023

TL;DR

This paper introduces HPN-NC, a hyper-network-based neural controller that enables robots to perform visual servoing to arbitrary target poses. By using a hyper-network to generate the parameters of a lightweight low-level controller on the fly, the system achieves high-precision 6-DOF positioning with minimal manual data and significantly better generalization than previous fixed-pose neural controllers.

What Problem Does This Paper Address?

Visual Servoing (VS) is the "eyes-to-hands" coordination that allows a robot to reach a target pose based on visual feedback. Traditional methods like Image-Based Visual Servoing (IBVS) often struggle with large initial offsets and local minima. While recent deep learning approaches have replaced manual controllers with neural networks to improve robustness, they typically suffer from a major flaw: they are designed for a fixed desired pose.

If you want the robot to reach a different target, you often have to retrain the entire controller. Training an infinite number of controllers for every possible pose is impossible, and simply feeding the desired pose as an extra input to a standard network often leads to bulky models and slow inference. The authors tackle this by framing arbitrary pose servoing as a multi-task learning problem.

Methods

The core innovation is the Hyper-network Based Neural Controller (HPN-NC). The architecture is split into two parts:

  1. The Hyper-network (HPN): A lightweight network that takes the 2D keypoints of the desired pose as input. Its job is to output the weights and biases for the last layer of the low-level controller.
  2. The Low-level Controller (NC): A very fast, three-layer fully connected network. It takes the error between current and desired 2D keypoints and outputs the 6-DOF camera velocity.
Fig. 1: The upper coordinate represents the camera’s frame and the lower represents the target object’s frame. Given the keypoints of desired poses, HPN generates an unique neural controller for each pose. For example, given the keypoints observed at desired Pose 1, HPN generates Controller 1 that helps the camera move to Pose 1 from arbitrary initial poses.

The authors use a three-stage training procedure:

  • Stage 1 (Simulation): The HPN-NC is trained in a Pybullet simulation using synthetic data, supervised by a traditional Position-Based Visual Servoing (PBVS) "teacher."
  • Stage 2 (Neural Observer): A separate Neural Observer (NO) is trained to detect 2D keypoints on real-world objects using a small set of manual annotations.
  • Stage 3 (End-to-End Fine-tuning): The entire system (Observer + Controller) is fine-tuned in the real world. Crucially, this stage uses self-supervision: the robot moves to random poses, records images, and uses its own internal geometry to generate training labels, drastically reducing the need for human labeling.
Fig. 2: The left part gives the pipeline of training HPN-NC in simulation. HPN-NC is supervised by PBVS to ensure a satisfactory servo performance. DAgger helps the model learn more quickly. The right part shows the detail of how HPN generates a NC for a given desired pose. To switch between different desired poses, HPN inferences the weights and biases of the low-level NC’s last layer with the 2D keypoints obtained at the desired pose.

Datasets

  • Synthetic Data: 1 million image/control tuples generated in Pybullet for initial controller training.
  • Manual Annotations: A very small set (10–300 images) of real-world objects (an electric vehicle charging port and a toy horse) where 2D keypoints were manually clicked.
  • Self-Supervised Data: 10,000 automatically collected tuples used during the end-to-end fine-tuning stage.

Key Insights and Ideas

  • Hyper-networks as Task Modulators: Instead of making one network learn every pose, the hyper-network "customizes" a simple controller for the specific task at hand. This keeps the real-time control loop extremely fast.
  • Differentiability is Key: Because the entire pipeline (from image to motor command) is differentiable, errors in the keypoint detector can be corrected by looking at the final control performance.
  • Self-Supervision for Adaptation: The "Stage 3" fine-tuning allows the robot to adapt to new, unseen environments (like different backgrounds) without a human having to label thousands of new images.

Key Results

  • Superior Performance: In simulation, HPN-NC achieved a 95% success rate, outperforming traditional IBVS (17.2%) and other neural architectures like DenseNet-based controllers (87%).
  • Efficiency: HPN-NC has a significantly shorter inference time (~0.158 ms) compared to DenseNet-based models (~1.32 ms), which is vital for high-frequency robotic control.
  • Real-World Robustness: In real-world tests on a UR5 robot, the system achieved a 98% success rate for the charging port task.
  • Minimal Labeling: Remarkably, the system reached a 92% success rate with only 30 manual annotations by leveraging self-supervised end-to-end training.
Fig. 3: The training procedure for real world VS. Image and control tuples are automatically collected to optimize the integrated model consisted of a neural observer and a neural controller. Through end-to-end training, the performance of integrated model could be improved. Note that manual annotations and the simulation data are respectively used as regularizer for observer and controller, so the amount of manual annotations can be significantly reduced.

Limitations and Future Work

  • Object Specificity: While the controller handles arbitrary poses, the Neural Observer and HPN-NC are still trained for a specific object. Moving to a completely new object requires a new (albeit small) set of annotations and retraining.
  • Keypoint Dependency: The system relies on the consistency of 2D keypoints. In environments with heavy occlusion or extreme lighting changes where keypoints might vanish, the performance could degrade.
  • Future Directions: The authors plan to explore using optical flow or more dense correspondences (like eye-to-hand VS) to further improve robustness and reduce the reliance on pre-defined 3D feature points.

Summary updated

BibTeX
@misc{yu2023hyper,
  author = {Hongxiang Yu and Anzhe Chen and Kechun Xu and Zhongxiang Zhou and Wei Jing and Yue Wang and Rong Xiong},
  title = {{A Hyper-network Based End-to-end Visual Servoing with Arbitrary Desired Poses}},
  year = {2023},
  eprint = {2304.08952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.08952},
}
Figure