Device and method for controlling robot device
By employing a series of encoding stages with fusion layers and transformer-based architecture, the method addresses the inefficiencies in robotic control by efficiently fusing multiple sensor data types, enhancing performance and generalization in robotic manipulation tasks.
Patent Information
- Application Number
- JP2024018659
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-13
- Filing Date
- 2024-02-09
- Publication Date
- 2024-08-23
AI Technical Summary
Conventional robotic control methods face inefficiencies due to the redundant and confusing nature of image data, which hinders effective fusion with other sensor data types, such as tactile and proprioceptive data, thereby reducing the quality of training processes.
A method involving a series of encoding stages with fusion layers that integrate multiple sensor data types, utilizing a transformer-based architecture for efficient feature fusion across encoding layers, allowing for improved control tasks in robotic manipulation.
This approach enhances the performance of robotic control by effectively fusing diverse sensor data, reducing computational costs and improving generalization through meaningful encoding and regularization, particularly in deep reinforcement learning scenarios.
Smart Images

Figure 2024114664000001_ABST
Abstract
Description
[Technical field]
[0001] Prior Art The present invention relates to an apparatus and method for controlling a robotic device. [Background technology]
[0002] The control of the robotic device can take into account environmental state information (e.g., sensor data about the robotic device's environment) as well as state information derived from the robot's proprioception. Both kinds of state information (i.e., sensor data types) can be important for training an autonomous robotic device. For example, two-dimensional images, along with state information derived from proprioception or haptic data, can also provide information for the robotic device to be properly trained.
[0003] However, images often contain a lot of redundant and even confusing information, which can degrade and worsen the training process. Therefore, an approach that effectively learns using image data together with state information of other sensor data types is desirable, for example an approach that allows for the improvement of pixel-based deep reinforcement learning using additional sensor data. This means that such training should allow efficient fusion of different data modalities (i.e. sensor data types), for example visual data, haptic data, proprioceptive data. In this context, a successful fusion technique allows for efficient extraction of relevant information (including sensor data according to multiple sensor data types) from the input sensor data regarding the state of the robotic device and the environment of the robotic device to realize a given task (such as the manipulation of an object).
[0004] “Ashish Vaswani et al., “Attention is all you need.” Proceedings of NeurIPS, pp. 5998-6008, 2017” (hereinafter referred to as Reference 1) describes a transformer network architecture. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Ashish Vaswani et al., “Attention is all you need.” Proceedings of NeurIPS, pp. 5998-6008, 2017. Summary of the Invention [Means for solving the problem]
[0006] Disclosure of the Invention According to various embodiments, a method for controlling a robotic device is presented, the method comprising: receiving sensor data for each of a plurality of sensor data types; Processing sensor data of a plurality of sensor data types with an encoding and fusion model, the encoding and fusion model comprising: a series of encoding stages, each encoding stage including a coding layer for each sensor data type generating features for the sensor data of the sensor data type; a plurality of fusion layers, each fusion layer combining features of the multiple sensor data types generated by each encoding stage to generate inputs for each subsequent encoding stage in the sequence of encoding stages; an output stage generating an output from the output of the last encoding stage in the series of encoding stages; and Selecting an action to be performed by the robotic device using the generated output; and Controlling the robotic device to perform a selected action; Includes.
[0007] The above-mentioned method allows to improve the performance in control tasks by fusing feature information at multiple layers in the overall multi-modality encoding process, which can be used, for example, in the context of deep reinforcement learning for robot manipulation tasks.
[0008] Thus, fusion is performed at multiple coding stages (possibly after each coding stage in a sequence of coding stages). Thus, there is a high degree of information flow between the encoders (i.e., coding paths for different sensor data types, i.e., a sequence of coding layers), which allows coding that is meaningful in terms of control. In particular, there may be a trainable fusion layer after at least two layers (possibly all layers) of the "intermediate" coding layers, i.e., the coding layers that are not the last coding layer (i.e., the coding layer at the last stage in the sequence). Thus, for at least one intermediate coding layer, there may be a fusion layer before the intermediate coding layer (i.e., the fusion layer that provides an output on which the input of the intermediate coding layer depends). The intermediate coding layers refer to trainable neural network layers, i.e., layers that contain neurons, e.g., convolutional layers or fully connected layers. The last coding layer for each sensor data type may be a coding layer that performs pooling and smoothing and may be trainable or non-trainable.
[0009] Various examples are described below.
[0010] Example 1 is a method for controlling the robotic device described above.
[0011] Example 2 is the method of example 1, wherein each fusion layer includes at least one cross-attention layer.
[0012] This allows an efficient combination of features relevant for a given task, i.e., control: for example, each fusion layer contains a transformer encoder (e.g., fusion layers can be implemented in this way in a plug-and-play manner, as described in Ref. 1).
[0013] Example 3 is the method of example 1 or example 2, wherein for at least one of the fusion layers, the features of the complex sensor data type include complex components, and the fusion layer masks some of the components before combining the features.
[0014] This allows us to reduce the size of the cross-attention layer of the fusion layer, especially in the case of early coding layers where the feature dimensionality is typically still very high (assuming that the feature dimensionality is reduced over a series of coding stages, as is typically the case), and therefore reduces the computational cost. Furthermore, masking improves generalization and has a regularization effect.
[0015] Example 4 is the method of any one of Examples 1 to 3, wherein at least a coding layer of a coding stage except for a last coding stage in the series of coding stages includes (or is) a multi-layer perceptron or a convolutional layer.
[0016] The coding layers of the final coding stage may be multi-layer perceptron or convolutional layers, or may not be multi-layer perceptron or convolutional layers (they may simply be pooling and smoothing layers). For example, image data may be coded by a convolutional layer, while haptic data or proprioceptive data may be coded by a multi-layer perceptron. This allows for efficient coding.
[0017] Example 5 is the method of any one of examples 1 to 4, wherein the output stage includes an additional fusion layer that combines features of the multiple sensor data types generated by a last encoding stage in the series of encoding stages.
[0018] In other words, a late fusion layer may be provided in addition to the fusion layer to perform final fusion of the encoded sensor data (e.g., after the outputs of the last encoding layer of the last encoding stage in the series of encoding stages are concatenated).
[0019] Example 6 is the method of any one of examples 1 to 5, including training an encoding and fusion model.
[0020] The encoding and fusion model (e.g., including one or more neural networks) may be trained (before or during use of this model for control) together with a control strategy (which may be, for example, a further neural network) that uses the generated outputs and according to which actions to be performed are selected, for example using reinforcement learning. In particular, the encoding and fusion model and other related models (such as models implementing the control strategies) may be trained together in an end-to-end manner.
[0021] Example 7 is a controller configured to implement the method of any one of examples 1 to 6.
[0022] In particular, the controller is configured to implement an encoding and fusion model and a control strategy for selecting an action to be performed by the robotic device using the output of the encoding and fusion model.
[0023] Example 8 is a computer program comprising instructions for causing a computer to carry out a method according to any one of Examples 1 to 6 when executed by a computer.
[0024] Example 9 is a computer-readable medium comprising instructions that, when executed by a computer, cause the computer to perform a method according to any one of Examples 1 to 6.
[0025] In the drawings, like reference characters generally refer to like parts throughout the different views. The drawings are not necessarily to scale, emphasis instead generally being placed upon illustrating the principles of the invention. In the following description, various aspects are described with reference to the following drawings: [Brief description of the drawings]
[0026] [Figure 1] FIG. 2 illustrates a control scenario according to one embodiment. [Diagram 2] FIG. 1 shows late fusion. [Diagram 3] FIG. 1 illustrates transformer-based fusion. [Figure 4] FIG. 2 illustrates the architecture of a transformer. [Diagram 5] FIG. 2 illustrates the functionality of a transformer encoder. [Figure 6] FIG. 1 illustrates transformer-based fusion according to one embodiment. [Figure 7] FIG. 1 illustrates an architecture of a masked multimodal fusion transformer according to one embodiment. [Figure 8] FIG. 1 shows a flowchart illustrating a method for controlling a robotic device, according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] The following detailed description refers to the accompanying drawings, which show, by way of example, specific details and aspects of the present disclosure in which the present invention may be practiced. Other aspects may be utilized, and structural, logical, and electrical changes may be made without departing from the scope of the present invention. Various aspects of the present disclosure are not necessarily mutually exclusive, as some aspects of the present disclosure may be combined with one or more other aspects of the present disclosure to form new aspects.
[0028] Various examples are explained in more detail below.
[0029] FIG. 1 shows a robot 100 .
[0030] The robot 100 includes a robot arm 101, e.g. an industrial robot arm for handling or assembling a workpiece (or one or more other objects). The robot arm 101 includes manipulators 102, 103, 104 and a base (or support) 105 that supports the manipulators 102, 103, 104. The term "manipulator" refers to a movable member of the robot arm 101, the movement of which allows a physical interaction with the environment, e.g. the execution of a task. For control, the robot 100 includes a (robot) controller 106, which is configured to implement the interaction with the environment according to a control program. The last of the manipulators 102, 103, 104 (the one furthest from the support 105), also referred to as the end effector 104, may include one or more tools, e.g. a welding torch, a gripping tool, a painting device, etc.
[0031] Further manipulators 102, 103 (closer to the support 105) can form a positioning device, which together with an end effector 104 provide a robotic arm 101 with an end effector 104 at its end. The robotic arm 101 is a mechanical arm that can provide similar functionality to a human arm (possibly with a tool at the end).
[0032] The robotic arm 101 may include articulation elements 107, 108, 109 that interconnect the manipulators 102, 103, 104 with each other and to a support 105. The articulation elements 107, 108, 109 may have one or more joints, each capable of providing rotational (i.e., rotation) and / or translational (i.e., movement) motion to the associated manipulator. The motion of the manipulators 102, 103, 104 may be initiated by actuators controlled by a controller 106.
[0033] The term "actuator" may be understood as a component adapted to affect a mechanism or process in response to an actuation. The actuator may implement an instruction (so-called activation) issued by the controller 106 into a mechanical movement. The actuator, for example an electromechanical converter, may be configured to convert electrical energy into mechanical energy in response to an actuation.
[0034] The term "controller" may include, for example, circuitry and / or a processor capable of executing software stored in a storage medium, firmware, or a combination thereof, and may be understood as any type of logic-implemented entity capable of outputting instructions, for example, to an actuator in this example. The controller may be configured, for example, by program code (e.g., software) to control the operation of a system, which in this example is a robot.
[0035] In this example, the controller 106 includes one or more processors 110 and a memory 111 that stores code and data based on which the processor 110 controls the robotic arm 101. According to various embodiments, the controller 106 controls the robotic arm 101 based on a machine learning model 112 stored in the memory 111.
[0036] According to various embodiments, the machine learning model 112 is configured and trained to make the robot 100 perform a specific task, for example an insertion task, such as inserting a plug 113 into a corresponding socket 114. To this end, the controller 106 takes images of its environment, here the plug 113 and the socket 114, by means of the cameras 117, 119. The robot 100 (and in particular the robot's controller 106) obtains a visual observation of its environment.
[0037] Additionally, the robot 100 may have information from proprioception, i.e., proprioceptive and haptic states (such as from a sensor in the end effector that may detect when an object has been grasped).
[0038] The controller 106 has at its disposal data of multiple modalities, which in this example are images, data from proprioception, and further sensor data (eg tactile data).
[0039] Modality generally refers to a particular manner of doing or experiencing something, and multimodality refers to the combination of two or more modalities. Modality refers to a source or form of information in the context of machine learning. Each modality has different information and perspectives on the surrounding environment (in the example of FIG. 1, the robot's workspace including the plug 113 and the socket 114). Some modalities share redundant information (crossover), some modalities provide information missing from one modality (complementarity), and some modalities have various different information interactions between modalities. For this reason, if multimodal information can be appropriately fused, rich information of the environment (e.g., in the form of one or more features determined by a neural network) can be obtained.
[0040] There are three categories of fusion techniques: early fusion, late fusion, and mid-fusion. Early fusion: This naive method is often used in tasks where the input modalities are RGB images and depth. By fusing them early, the result is an RGB-D input with four channels. Late fusion: This family of methods often encodes each modality separately and then fuses all the encoded features in the final latent layer. Mid-term fusion: Information can also be fused in intermediate layers. Information between modalities can thus be communicated and exchanged at (possibly all) coding layers, which can help learn better latent representations of the input data, so that a suitable implementation of mid-term fusion may outperform other fusion techniques. According to various embodiments, this approach is applied to applications in robot learning, where fusion is performed before the intermediate layers for at least one intermediate layer.
[0041] In the example given above with reference to FIG. 1, as mentioned above, each element of the input data may be subjected to a visual observation, e.g., an RGB-D image.
number
number
number
number
[0042] The fusion operation can be abstractly formulated as follows: A fusion function f converts the input data elements (I, x, y) including all modalities into a D-dimensional fused feature set.
number
number
number
[0043] Note that here the fusion function means to include the encoding of the input data. Therefore, it is also referred to as the encoding and fusion function (or model, pipeline, module, or (neural) network). According to various embodiments, two MLPs can be used to encode the proprioceptive input x and the tactile input y, respectively, and a neural network in the convolutional layer encodes the visual input I. All these neural networks (MLPs and convolutional neural network) may be part of the machine learning model 112. The result of the encoding is the visual features
number
number
number
[0044] FIG. 2 shows late fusion.
[0045] As explained above, an input image 201 (here an RGB image) is encoded into visual features 205 by a convolutional neural network 202 (image or vision encoder) that includes a convolutional layer 203 as an (intermediate) encoding layer, and an average pooling and smoothing layer 204 (which can be interpreted as the final encoding layer).
[0046] The proprioceptive state 206 (including, for example, the position of the end effector and the width of the gripper) is encoded into proprioceptive features 209 by an MLP 207 (proprioceptive encoder) that includes a series of MLP layers (particularly hidden layers) 208 as (intermediate) coding layers, and a flattening layer 212 (which may be interpreted as the final coding layer). The encoding of the haptic state information into haptic features is omitted for simplicity, but may be performed by the haptic encoder in a similar manner to the proprioceptive state 206.
[0047] A late fusion operation 210 (after the last coding layer) fuses visual features 205 and proprioceptive features 209 (and may fuse tactile features as well). The result of the fusion is one or more fused features 211, which are input to function h in equation (1).
[0048] The late fusion operation 210 may require that all features to be fused (also called latent features) contain flattened features of equal length. Thus, the average pooling and flattening layer 204 flattens the features output by the preceding convolutional layer 203. Alternatively, an additional MLP may be used for mapping the D×N×N features to D, e.g., using pooling. This mapping converts the (flattened) visual features 205 into, e.g.,
number
[0049] Examples of late fusion operations 210 include: Average Pooling and Max Pooling: These two types of fusion have similar operations. The fused features are
number
number
number
number
number
number
number
number
[0050] FIG. 3 shows transformer-based late fusion.
[0051] 2, an input image 301 is encoded into visual features 305 by a convolutional neural network 302 including convolutional layers 303 and average pooling and smoothing layers 304, and proprioceptive sensory states 306 are encoded into proprioceptive features 309 by an MLP 307 including a series of MLP layers (in particular hidden layers) 308 and a smoothing layer 312. Again, the encoding of haptic state information for haptic features has been omitted for simplicity.
[0052] The architecture of FIG. 3 differs from that of FIG. 2 in that it includes transformers 313 between the average pooling and smoothing layer 304 and the preceding convolutional layer 303, and between the smoothing layer 312 and the preceding MLP layer 308.
[0053] Further, as in FIG. 2, the features 305 and 309 are processed by a late fusion operation 310 that produces one or more fused features 311 .
[0054] FIG. 4 shows the architecture of the transformer 313.
[0055] The Transformer takes visual features (i.e., feature map) 401 and proprioceptive features 402 and arranges them into a vector of tokens 403 which is then processed by the Transformer Encoder 404 into a result vector 405 which is split into a visual feature result vector (output to the average pooling and flattening layer 304) and a proprioceptive feature result (output to the flattening layer 312).
[0056] The visual features, proprioceptive features, and visual features are output by the last convolutional layer or MLP layer, respectively.
number
number
[0057] The transformer 313, and in particular the transformer encoder 404, may be configured, for example, as described in Reference [1].
[0058] FIG. 5 illustrates the functionality of the transformer encoder 404.
[0059] Token Vector
number
[0060] Multi-head attention (as shown in the right-hand side of Figure 5) is determined by a set of queries, keys and values, denoted as (Q,K,V), which are weighted
number
number
[0061] The scaled dot product attention module 509:
number
[0062] The output of the transformer decoder is finally
number
[0063] Multiple projection heads or multiple transformer layers may also be used. out is the input
number
number
[0064] According to various embodiments, in order to fully exploit information communication across modality encoders, information communication is permitted across all (or at least a relatively large number) of the coding layers.
[0065] FIG. 6 illustrates transformer-based fusion according to one embodiment.
[0066] 2, an input image 601 is encoded into visual features 605 by a convolutional neural network 602 including a convolutional layer 603 and an average pooling and smoothing layer 604, and a proprioceptive sensory state 606 is encoded into proprioceptive features 609 by an MLP 607 including a series of MLP layers (in particular hidden layers) 608 and a smoothing layer 612. Again, the encoding of haptic state information for haptic features has been omitted for simplicity.
[0067] The architecture of Figure 6 differs from that of Figure 2 in that, for multiple coding layers, a Transformer 613 is included after each coding layer (of all encoders). The Transformer 613 combines the features output by the coding layers. This means that the output of a particular (intermediate) coding stage, e.g. the i-th coding layer of each encoder, is fed to the Transformer 613 to be fused.
[0068] The Transformer 613 may in particular be located before an intermediate encoding stage (such as before the third encoding stage in FIG. 6), for such an encoding stage, for each encoder, the result of the fusion by the Transformer 613 is added to the output of the preceding encoding layer, and this additional result is fed to the encoding layer of the encoder.
[0069] The layers of the modality encoder have the following shape: Visual Encoder: (D1×H1×W1),…,(D L ×H L ×W L ) Proprioceptive encoder: (D1),…,(D L ) Tactile Encoder: (D1),…,(D L ) It is assumed that the
[0070] For example, the features output by the encoding layer of the ith stage are fused by each transformer 613 using a cross-attention operation as described with reference to Figure 5. The fused output after encoding stage i is a feature of shape
number
number
number
[0071] The transformer 613 may be configured similarly to the transformer 313 described with reference to Figure 5. However, according to various embodiments, the transformer is a masked multimodal fusion transformer (MMFT).
[0072] Figure 7 shows the architecture of the MMFT613.
[0073] 3, the MMFT 613 receives visual features (i.e., a feature map) and proprioceptive features 702. However, the visual features are transformed by a masking operation 706 into partially masked visual features 701 (i.e., a partially masked feature map in which the features for a particular patch are set to zero, e.g., D i The visual and proprioceptive features 702 are then partially masked into a vector of tokens 703, which is then processed by a transformer encoder 704 into a result vector 705, which is split into a visual feature result vector (output to average pooling and flattening layer 704) and a proprioceptive feature result (output to flattening layer 612).
[0074] That is, random patches of the visual feature map are masked by the MMFT 613 (for each stage i where an MMFT exists). Thus, fusion at each stage operates only on visible patches. Masking with a high proportion of features can reduce the computational cost of attention operations on high-dimensional inputs, especially in early layers, while at the same time providing better performance through strong regularization.
[0075] Each MMFT 613 may mask visual features by a predetermined ratio. The visual features remaining after masking (i.e., features of the unmasked patches) are flattened and concatenated with the proprioceptive features 702 as input to a Transformer Encoder 704. The output of the Transformer Encoder 704 is then rearranged such that the results for the unmasked patches are stored in their corresponding patch locations and the masked patches are zeroed out in the result vector 705.
[0076] The transformer encoder 704 may be configured as described with reference to FIG.
[0077] All the above fusion techniques are related to the function f in Equation (1). Therefore, any actor-critic algorithm can be used to learn the end-to-end policy π as defined in Equation (1). For example, the off-policy algorithm soft actor-critic (SAC) may be used to optimize π.
[0078] In summary, according to various embodiments, a method is provided as shown in FIG.
[0079] FIG. 8 shows a flowchart 800 illustrating a method for controlling a robotic device, according to one embodiment.
[0080] At 801, sensor data is received for each of a plurality of sensor data types.
[0081] At 802, sensor data of a plurality of sensor data types is processed by an encoding and fusion model. The encoding and fusion model may include: a series of encoding stages, each encoding stage including a coding layer for each sensor data type generating features for the sensor data of the sensor data type; a plurality of fusion layers, each fusion layer combining features of the multiple sensor data types generated by each encoding stage to generate inputs for each subsequent encoding stage in the sequence of encoding stages; an output stage for generating an (output stage) output (i.e. the encoded sensor data, or in other words a latent representation of the sensor data) from the (encoding stage) output of the last encoding stage of the series of encoding stages; Includes.
[0082] At 803, the generated (output stage) output (i.e., the output of the output stage) is used to select an action to be performed by the robotic device.
[0083] At 804, the robotic device is controlled to perform the selected behavior.
[0084] The approach of Figure 8 can be used to compute control signals for controlling technical systems, such as computer-controlled machines, e.g. robots, vehicles, household appliances, power tools, manufacturing machines, personal assistants or access control systems, etc. According to various embodiments, policies for controlling the technical system may be learned, and the technical system may then behave accordingly.
[0085] Various embodiments can receive and use image data (i.e., digital images) from various visual sensors (cameras), e.g., video, radar, LiDAR, ultrasound, thermal imaging, motion, sonar, etc., as well as other sensor data types such as pressure, force, etc.
[0086] According to one embodiment, the method is computer implemented.
[0087] Although specific embodiments have been illustrated and described herein, it will be understood by those skilled in the art that various alternative and / or equivalent implementations may be substituted for the specific embodiments illustrated and described without departing from the scope of the invention. This application is intended to cover any adaptations or variations of the specific embodiments described herein. It is therefore intended that the invention be limited only by the claims and the equivalents thereof.
Claims
1. 1. A method for controlling a robotic device, comprising: receiving sensor data for each of a plurality of sensor data types; processing the sensor data of the plurality of sensor data types with an encoding and fusion model, the encoding and fusion model comprising: a series of encoding stages, each encoding stage including a coding layer for each said sensor data type generating features for said sensor data of said sensor data type; a plurality of fusion layers, each fusion layer combining features of multiple sensor data types generated by each of the encoding stages to generate inputs for each subsequent encoding stage in the sequence of encoding stages; an output stage generating an output from an output of a last encoding stage in the series of encoding stages; and selecting an action to be performed by the robotic device using the generated output; and controlling the robotic device to perform the selected behavior; The method includes:
2. The method of claim 1 , wherein each fusion layer includes at least one cross-attention layer.
3. 3. The method of claim 1, wherein for at least one of the fusion layers, the features of the complex sensor data type include complex components, and the fusion layer masks some of the components before combining the features.
4. The method of claim 1 , wherein the coding layers of at least the coding stages except for the last coding stage of the sequence of coding stages comprise multi-layer perceptrons or convolutional layers.
5. 5. The method of claim 1, wherein the output stage includes an additional fusion layer that combines features of the composite sensor data types produced by the last encoding stage of the series of encoding stages.
6. The method of claim 1 , further comprising training the encoding and fusion model.
7. A controller configured to carry out the method according to any one of claims 1 to 6.
8. A computer program comprising instructions which, when executed by a computer, cause the computer to carry out a method according to any one of claims 1 to 6.
9. A computer readable medium comprising instructions which, when executed by a computer, cause the computer to carry out the method of any one of claims 1 to 6.
