A transformer structured weight generation method and generation system for robot body operation

By embedding physical priors into the Transformer model to generate a structured projection weight matrix, the problem of existing models lacking physical structure and causal world models is solved. This enables the extrapolation of physical laws and causal inference under small data conditions, improving the decision reliability of robot embodied operation and the strict conservation of physical laws.

CN123180221APending Publication Date: 2026-11-27SUZHOU BOTTLER ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611369632.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

When processing signals with defined physical coordinates, existing Transformer models lack prior knowledge of physical structure. The projected weights are unstructured free parameter matrices, which cannot effectively utilize the inherent relationships between input physical coordinates. This results in the need for massive amounts of data to learn the already defined physical laws. Furthermore, the lack of common sense in physics and causal world models leads to frequent errors that violate basic physical laws in scenarios such as embodied intelligence and robot control.

Method used

By embedding physical priors such as classical spacetime symmetry, gravitational anisotropy, and articulated kinematics as structural hard constraints into the Transformer weight generation process, a structured projected weight matrix is ​​generated. A learnable kernel function is used to generate query, key, and value matrices that depend on physical coordinates, multi-head self-attention calculation is performed, and the kernel function parameters are updated during training.

Benefits of technology

This invention enables the Transformer model to extrapolate physical laws, make causal inferences, and reason based on common sense about physics. It solves the problems of insufficient generalization ability and catastrophic forgetting in traditional models under small data conditions, and improves the decision reliability of robot embodied operation and the strict conservation of physical laws.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180221A_ABST
    Figure CN123180221A_ABST
Patent Text Reader

Abstract

The application provides a Transformer structured weight generation method and generation system for robot body operation, aiming at the problem of free parameter projection weight in the prior art, and proposes to replace the weight matrix with a parameterized matrix dynamically generated by a physical invariant through a kernel function. The method comprises the following steps: obtaining the physical coordinates of the word element; determining the physical prior and calculating the physical invariant; generating a structured projection weight matrix through a kernel function linear combination; performing multi-head self-attention calculation as a query, key and value projection matrix; and updating the kernel function parameters according to the training loss. The physical prior includes daily physical knowledge such as space-time symmetry, gauge symmetry, gravity anisotropy, articulated kinematics, material constitutive relation and functional availability. The application embeds the physical prior into the weight generation layer as a hard constraint, so that the model has physical reasoning ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of artificial intelligence technology, and in particular relates to a Transformer structured weight generation method and generation system for robot embodied operation. Background Technology

[0002] The Transformer architecture has become a core model in the field of artificial intelligence, and its multi-head self-attention mechanism utilizes queries ( ),key( ),value( Linear projection and scaled dot product calculations enable modeling of sequence dependencies. However, existing techniques suffer from the following significant drawbacks when processing signals with explicit physical coordinates: First, the projection weights lack prior knowledge of the physical structure. The projection matrix of a standard Transformer... , , It is an unstructured free parameter matrix, where each element is learned independently without utilizing the input. The inherent relationships between physical coordinates. This means that the model needs massive amounts of data to learn the already defined physical laws.

[0003] Second, the physics prior injection method is limited to "soft constraints." Existing methods for introducing physics priors into Transformers mostly involve adding bias terms to the attention scores, which is an additive soft constraint and cannot fundamentally change the structure of the projection matrix. Although the Physical Information Neural Network (PINN) uses the physics equations as loss terms, the physics constraints are still soft constraints, which the model can bypass.

[0004] Third, existing equivariant Transformer methods have not yet addressed the generation mechanism of QKV projected weights. Although existing equivariant Transformers such as SE(3)-Transformer, Geometric Algebra Transformer (GATr), Equiformer, and PlatonicTransformer have achieved equivariance of attention scores, the QKV projection matrix itself is still a free parameter matrix. Physical priors do not directly affect the weight generation process. Their equivariance is achieved by introducing an equivariant kernel function at the attention score calculation layer, rather than implementing physical constraints at the projected weight generation layer.

[0005] Fourth, existing technologies lack a unified framework for moving from "physical invariants" to "weight parameterization." While existing kernel methods (Gaussian processes, support vector machines) and Primal-Attention have explored parameterizing the weight matrix using kernel functions, the independent variables of their kernel functions are all similarity measures of data features or low-rank approximations of the attention matrix. The design goal of the kernel function is to measure data similarity or optimize computational efficiency, rather than to encode physical priors.

[0006] Fifth, existing AI architectures lack common sense about the physics of everyday activities. Current large language and vision models cannot understand common sense about the physics of everyday activities, such as gravity support relationships, articulated kinematics, material rigidity and flexibility identification, and the availability of functional properties of objects. This leads to frequent errors that violate basic physical laws in scenarios such as embodied intelligence, robot control, and autonomous driving, and cannot be fundamentally solved by increasing the scale of data.

[0007] Sixth, existing world models lack structural priors for physical causality. Recent research shows that purely data-driven Transformers cannot learn causal world models without physical priors; they can only fit trajectories but cannot infer the causal relationship between force and motion. True physical intelligence relies on causal abstraction—not only predicting future states but also understanding the underlying governing dynamics. However, existing methods rely on strong domain-specific symbolic priors to "bake" physical knowledge, lacking a general, pluggable mechanism to encode everyday physical laws into structural priors for Transformer weights. Summary of the Invention

[0008] In view of the problems existing in the prior art, the main objective of this invention is to provide a Transformer structured weight generation method and system for robot embodied operation. By embedding physical priors (including classical spatiotemporal symmetry, gauge symmetry, and gravitational anisotropy, articulated kinematics, material constitutive response, functional availability, causal arrow of time, object permanence, contact constraints, frictional anisotropy, energy conservation and dissipation, mass-inertia anisotropy, support chain stability transfer, functional availability geometry, kinematic chain articulation constraints, multibody causal emergence, etc.) as structural hard constraints into the Transformer weight generation process, the model is endowed with the ability to extrapolate physical laws, infer causality, strictly conserve laws, and reason based on common sense in everyday physics. This enables a paradigm shift from "pattern matching" to "physical cognition" in robot embodied operation, scientific computing, and complex system modeling.

[0009] The objective of this invention is achieved through the following technical solution: In a first aspect, the present invention provides a Transformer structured weight generation method for robot embodied manipulation, comprising the following steps: Get the input sequence And determine each of the input sequences In physical space Physical coordinates in ; Determine physical priors And based on the physical priors Determine the corresponding physical invariants ,in In the physical prior A function that remains unchanged under certain conditions; Based on learnable kernel functions With the aforementioned physical invariants Generate a structured projected weight matrix for the independent variable. The structured projection weight matrix Each element It is calculated using the following formula: in, These are the elements of the weight matrix; The order of the basis functions; , , These are learnable model parameters; , To adapt to the aforementioned physical priors basis functions; With the structured projection weight matrix As a query projection matrix Key projection matrix Sum projection matrix For the input sequence respectively Perform linear projection to obtain the query matrix. Key matrix Sum matrix The query matrix Bond matrix Each of the Projection represents the location of the physical invariants. Induced, physical coordinate-dependent In the curved space; Based on the query matrix Key matrix Sum matrix Construct a dual-kernel composite metric matrix And perform multi-head self-attention calculations in the curved space; Update the kernel function based on the training loss. Learnable parameters .

[0010] As a further description of the above technical solution, the kernel function It is at least one of the following: Markov kernel, trigonometric function kernel, Bessel kernel, spherical harmonic kernel, graph kernel, group representation kernel, Gaussian kernel, multi-scale Laplace kernel, and oscillatory decay kernel; the Gaussian kernel includes the standard Gaussian kernel, anisotropic Gaussian kernel, and adaptive scaling Gaussian kernel.

[0011] As a further description of the above technical solution, the physical prior... Including at least one of the following: translational symmetry, rotational symmetry, scaling symmetry, permutation symmetry, Lorentz symmetry, gauge symmetry, gravitational anisotropy support, articulated kinematic constraints, material strain constitutive response, functional availability potential energy landscape, causal time arrow, object permanence, contact constraints and penetration prohibition, frictional anisotropy, energy conservation and dissipation, mass-inertia anisotropy, support chain stability transfer, functional availability geometry, kinematic chain articulated constraints, and multibody causal emergence.

[0012] As a further description of the above technical solution, when the physical prior... When the input sequence is supported by gravitational anisotropy, each It also includes surface normal vectors. The physical invariants Includes horizontal radial distance Vertical height difference Alignment with surface normal The triplet, wherein the kernel function is an anisotropic Gaussian kernel: in, , , ;for; , This is the unit vector representing the direction of gravity. , , , , , These are learnable parameters; When the physical prior When the kinematic constraints are articulated, the physical invariants Geodesic distance along the bone tree path The kernel function is a multi-scale Laplace kernel: in, ; A learnable multi-scale decay parameter; When the physical prior The physical invariants are the constitutive response of the material to strain. The coupling distance between Euclidean distance and local strain The kernel function is an adaptive scaling Gaussian kernel: in, , For the right Cauchy-Green strain, the first invariant is... , , For learnable parameters, For local deformation gradient tensors; When the physical prior When the potential energy landscape is a functional availability, the physical invariants The weighted combination distance of spatial distance and functional potential energy difference The kernel function is a triangular kernel: in, , The potential energy at the center of mass is [value missing]. These are learnable weight parameters; These are learnable frequency parameters.

[0013] As a further description of the above technical solution, the physical prior... The a priori structure of everyday physical causality includes at least one of the following: causal time arrow kernel, physical constancy kernel, contact constraint kernel, friction anisotropy kernel, energy conservation kernel, mass-inertia anisotropy kernel, support chain stability transfer kernel, functional availability geometry kernel, kinematic chain hinge constraint kernel, and multibody causal emergence kernel.

[0014] As a further description of the above technical solution, the kernel function A weighted combination of kernel functions corresponding to multiple different physical priors: in, , For learnable parameters, For the first A kind of physical a priori.

[0015] As a further description of the above technical solution, the query projection matrix The structured projection weight matrix Generate by superimposing the standard projected weight matrix: in, This is a standard learnable query projection matrix.

[0016] As a further description of the above technical solution, the physical coordinates It can be at least one of one-dimensional coordinates, two-dimensional coordinates, three-dimensional coordinates, or four-dimensional coordinates; The physical space It can be at least one of the following: time axis, frequency axis, image plane, three-dimensional Euclidean space, Minkowski spacetime, joint configuration space, strain space or potential energy landscape space. The physical invariants It is at least one of the following: coordinate difference, coordinate difference norm, logarithmic distance, graph topological shortest path length, spacetime interval, group element difference, gravitational anisotropy triplet, hinge geodesic distance, strain coupling distance, potential energy difference weighted distance, time difference, object occlusion time, difference between contact distance and penetration depth, relative velocity quadratic form, energy difference, point of action relative to the center of mass quadratic form, support chain distance, distance between geometric feature and functional template, joint angle exceeding limit, and momentum non-conservation quantity.

[0017] Secondly, the present invention also provides a Transformer structured weight generation system for robot embodied manipulation, comprising: The physical coordinate acquisition module is used to determine the coordinates of each element in the input sequence. In physical space Physical coordinates in ; The physical prior determination module is used to determine the physical prior. And based on the physical priors Determine the corresponding physical invariants ,in In the physical prior A function that remains unchanged under certain conditions; A kernel function parameterization module, which is used to perform kernel function parameterization based on a learnable kernel function. With the aforementioned physical invariants Generate a structured projected weight matrix for the independent variable. The structured projection weight matrix Each element It is calculated using the following formula: in, These are the elements of the weight matrix; The order of the basis functions; , , These are learnable model parameters; , To adapt to the aforementioned physical priors basis functions; Projection module, the projection module being used to project the structured weight matrix As a query projection matrix Key projection matrix Sum projection matrix For the input sequence respectively Perform linear projection to obtain the query matrix. Key matrix Sum matrix The query matrix Bond matrix Each of the Projection represents the location of the physical invariants. Induced, physical coordinate-dependent In the curved space; The self-attention calculation module is used to calculate based on the query matrix. Key matrix Sum matrix Construct a dual-kernel composite metric matrix And perform multi-head self-attention calculations in the curved space; The training update module is used to update the kernel function based on the training loss. Learnable parameters .

[0018] As a further description of the above technical solution, the Transformer structured weight generation system is integrated into each layer of Transformer, and the kernel function parameters of each layer can be learned independently. The kernel function parameterization module generates at least one of the following kernel functions to obtain the structured projection weight matrix. The kernel is defined as at least one of the following: Markov kernel, trigonometric kernel, Bessel kernel, spherical harmonic kernel, graph kernel, group representation kernel, Gaussian kernel, multi-scale Laplace kernel, oscillation decay kernel, causal time arrow kernel, physical constancy kernel, contact constraint kernel, friction anisotropy kernel, energy conservation kernel, mass-inertia anisotropy kernel, support chain stability transfer kernel, functional availability geometry kernel, kinematic chain articulation constraint kernel, and multibody causal emergence kernel; the Gaussian kernel includes standard Gaussian kernel, anisotropic Gaussian kernel, and adaptive scale Gaussian kernel.

[0019] By employing the above technical solutions, the outstanding effects of this invention are as follows: 1. Strict physical conservation and geometric equivariance (hard constraints vs. soft constraints): Unlike PINN, which treats physical equations as soft penalty terms that can be "ignored", this invention directly encodes Noether's theorem into a mathematical structure of weights (Toeplitz / group equivariance), ensuring strict conservation of momentum and angular momentum from first principles, and completely eliminating the "energy drift" phenomenon caused by accumulated errors in traditional numerical solvers; 2. Unlocking Zero-Shot Physics Extrapolation Capability: Because the weights in this invention are entirely determined by physical invariants, the model learns the physical laws themselves rather than specific scenarios. Models trained on small-scale data can generalize to large-scale scenarios with zero shots, achieving a qualitative leap in "small models extrapolating large-scale physics." 3. From “Statistical Correlation” to “Causal Inference”: This invention forces the attention score to depend only on the absolute physical coordinate difference, forcing the model to remove spurious statistical correlations in the data and focus on causal physical interactions, significantly improving the decision reliability in long-tail scenarios; 4. Adaptive decoupling of multi-physics coupling (physical mode awakening): This invention utilizes the "multi-core adaptive combination" mechanism, in which the model automatically assigns different symmetry kernels to different physical processes during training, and can autonomously identify and decouple multi-physics coupling in complex systems without manual labeling. 5. Strict "light cone causal structure" and "locality": For the Lorentz kernel, the weights in this invention are in the spacelike interval ( < 0) naturally approaches zero, giving the Transformer a strict Minkowski spacetime causal structure; 6. "Immortality" of physical common sense and elimination of catastrophic forgetting: Since physical symmetry is solidified in the basis of the weight generation function, the model of this invention can maintain an accurate description of the basic physical laws without replaying old data during incremental learning or fine-tuning, thus completely solving the problem of "catastrophic forgetting" in continuous learning. 7. Intrinsic Modeling of Everyday Embodied Physical Common Sense: By introducing contact support core, articulated geodesic core, strain constitutive core and potential energy availability core, this invention enables Transformer to inherently possess gravity sensing, kinematic chain constraint, flexible body constitutive response and object functional safety prediction capabilities without the need for large-scale real robot data, fundamentally solving the problem of complete strategy failure in traditional Sim2Real transfer. 8. The essential difference from existing equivariant Transformers – the underlying level of constraint location: This invention sinks physical constraints to the generation layer of projected weights. , and Confined to a physical subspace, the learnable parameters are from Compressed to (2) R+1), physical priors are fixed in the domain of the weight matrix; 9. The unity of generalization of physical measurement - from Euclidean distance to physical Markovian / geodetic distance: This invention generalizes the concept of "distance" in the Gaussian kernel from Euclidean measurement to a physically induced Markovian / geodetic / strain / potential energy coupling measurement, which can simultaneously handle the distance concept in rigid geometry, articulated kinematics and continuum mechanics under a unified mathematical framework. 10. Fundamental improvement in parameter efficiency and generalization boundary: The standard Transformer has 3 parameters. KD The number of parameters in this invention is 3 (2) R +1), when =257, =768, When the compression ratio is 8, the compression ratio is 8. ≈11600 times. Simultaneously, this invention reduces the hypothesis space to a physically permissible subset of functions by forcing a specific physical structure. This directly reduces the VC dimension and tightens the upper bound of the generalization error. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the overall process of the Transformer structured weight generation method for robot embodied operation in an embodiment of the present invention; Figure 2 This is a schematic diagram of the Toeplitz structure of the structured weight matrix in an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the generation of trigonometric function kernel (translation symmetry) weights in an embodiment of the present invention; Figure 4 This is a schematic diagram of Gaussian kernel (rotational symmetry) weight generation in an embodiment of the present invention; Figure 5 This is a schematic diagram of the weight generation of the SE(3) equal-variable kernel (spherical harmonic function expansion) in an embodiment of the present invention; Figure 6 This is a schematic diagram of the general framework for group-equalized kernels in an embodiment of the present invention; Figure 7 This is a schematic diagram of multi-core adaptive combination in an embodiment of the present invention; Figure 8 This is a summary table comparing physical invariants and basis functions in the embodiments of the present invention; Figure 9 The gravity anisotropic contact support core in the embodiments of the present invention A schematic diagram illustrating the derivation of attention output; Figure 10 For the geodesic distance kernel of the articulated kinematic chain in the embodiments of the present invention A schematic diagram illustrating the derivation of attention output; Figure 11 The constitutive response core of the material strain in the embodiments of the present invention A schematic diagram illustrating the derivation of attention output; Figure 12 The functional availability potential landscape core in the embodiments of the present invention A schematic diagram illustrating the deduction of attention output. Detailed Implementation

[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] Please see Figures 1 to 12 This invention discloses a Transformer structured weight generation method and system for robot embodied manipulation. The disclosed system includes a physical coordinate acquisition module, a physical prior determination module, a kernel function parameterization module, a projection module, a self-attention calculation module, and a training module.

[0023] In one specific embodiment of the present invention, the method is deployed on an embodied intelligent robot platform. The output of the method is sent to the robot control head, decoded, and converted into at least one of the following motion commands: end effector action (including a six-dimensional pose target), joint action (including joint angle or angular velocity commands), gripper opening / closing amount (including opening percentage or gripping force), force control target (including desired contact force or torque), trajectory spectrum coefficients (including frequency component parameters of the end effector trajectory), or text response (including task status description, anomaly alarm, or operation suggestion). The Transformer structured weight generation method for embodied robot operation specifically includes the following steps: Step 1: Obtain the input sequence and determine the physical coordinates Get the input sequence The input sequence can originate from the robot's perception system, such as point cloud data acquired by the robot's RGB-D camera, joint state sequences acquired by joint angle sensors, or contact force distribution data acquired by force sensors. This corresponds to a sensing unit, such as a three-dimensional point in a point cloud, a joint angle value, or a contact force measurement value.

[0024] Determine each of the input sequences In physical space Physical coordinates in The physical space This refers to the actual physical space in which the robot operates, or its mathematical abstraction. In this embodiment, physical space... For three-dimensional Euclidean space Each physical coordinates This represents the three-dimensional spatial position of the point cloud in the camera coordinate system.

[0025] More specifically, when the input is point cloud data, the robot acquires color and depth images of the scene using an RGB-D camera. The depth image is then projected into a 3D point cloud using the camera's intrinsic parameter matrix. ,in For pixel coordinates, For depth value, This is the camera back-projection function. It performs voxel downsampling on the original point cloud (dividing the point cloud space into segments with sides of length...). voxel grid, typical value =5mm, retaining one representative point within each voxel), after statistical filtering and object segmentation, the point cloud of the target object is obtained. For each point in the point cloud ,structure : ,in For spatial location, For the surface normal vector (by searching its KD-tree for each point) Neighborhood (by performing principal component analysis on the set of neighborhood points, the eigenvector corresponding to the smallest eigenvalue is the normal vector). For local curvature. The physical coordinates. This is for subsequent calculations of physical invariants. The foundation.

[0026] Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors Physical priors refer to a priori information describing the inherent laws of a physical system, such as the direction of gravity, the support relationships between objects, and kinematic chain constraints. Determines physical invariants The mathematical form of .

[0027] According to the physical priors Determine the corresponding physical invariants The physical invariants refer to those in the physical prior... The quantity that remains unchanged, i.e., when the physical coordinates undergo the physical prior. During the corresponding transformation, The physical invariants remain unchanged. Independent of the input sequence The data feature distribution is determined solely by the physical coordinates. , and the physical priors Decide.

[0028] In one embodiment of the invention, the physical prior... It can include at least one of the following: translational symmetry, rotational symmetry, scaling symmetry, permutation symmetry, Lorentz symmetry, gauge symmetry, gravitational anisotropy support, articulated kinematic constraints, material strain constitutive response, functional availability potential energy landscape, causal time arrow, object permanence, contact constraints and penetration prohibition, frictional anisotropy, energy conservation and dissipation, mass-inertia anisotropy, support chain stability transfer, functional availability geometry, kinematic chain articulated constraints, and multibody causal emergence.

[0029] Corresponding to the above physical priors, the physical invariants It can be taken in the following forms: (1) Translational symmetry: In translation transformation The following remains unchanged; (2) Rotational symmetry: It remains unchanged under rotational transformation.

[0030] (3) Scaling symmetry: ,in The scale parameter is learnable and remains invariant under scaling transformations.

[0031] (4) Permutation symmetry: , which is the shortest path length in the graph topology.

[0032] (5) Lorentz symmetry: ;in At the speed of light, For the time difference, This represents the spatial distance difference.

[0033] (6) Standard symmetry: = ,in , for and Related group elements.

[0034] (7) Gravitational anisotropic support: in, , , for Surface normal vector and gravity direction unit vector The cosine of the included angle.

[0035] (8) Hinged kinematic constraints: = .

[0036] (9) Constitutive response of material strain: ,in, For the right Cauchy-Green strain, the first invariant is... For the local deformation gradient tensor, The coupling coefficients are learnable.

[0037] (10) Functional availability potential landscape: ,in, The potential energy at the center of mass is [value missing]. For attitude angle dependent The height of the center of mass, These are learnable weight parameters.

[0038] The above ten types of everyday physical causal kernel functions follow a unified form: ; in, ; For the corresponding physical invariants, Structured kernel functions adapted to this physical law. Together, they constitute the world model encoding of the causal structure of everyday physics—the model no longer relies solely on statistical pattern matching, but incorporates an inductive bias of physical causality.

[0039] Furthermore, when the physical prior... When it is a causal time arrow, for This kernel function has the same mathematical structure as the Green's function in the diffusion process—the bias decays quadratically with spatial distance and logarithmically with time, while encoding the locality and strict temporal causality of diffusion. >0 indicates that the future can focus on the past; ≤0 indicates that the past is not relevant to the future.

[0040] When the physical prior When the object is permanent, The time the object is occluded extrapolation confidence ∈[0,1], its kernel function is in, This is the attenuation rate parameter (which can be learned). There exists a visual threshold for objects. The physical meaning of this kernel function is: the shorter the time an object is occluded, the better. The higher the value, the more open the model's attention path remains for the object; the longer the object is occluded, the better. The decays at an exponential rate, and the model gradually "forgets" the object. This is a confidence-weighted term that enables the model to infer the position and state of occluded objects based on historical trajectories (velocity, direction). When an object is occluded, By extrapolating historical trajectories to maintain high values, the corresponding weight matrix maintains the attention path to the object, preventing... Token - based The problem of object duplication, disappearance, and deformation is common in world models. The essence of this kernel function is to encode the basic physical intuition of "object permanence" from developmental psychology into structural hard constraints of Transformer weights.

[0041] When the physical prior When contact is constrained and penetration is prohibited, the physical intuition is that "two solid objects cannot penetrate each other"; its physical invariants are... The difference between contact distance and penetration thickness ; There are gaps, and interaction is possible; This indicates that a penetration has occurred, and attention is disabled. This kernel function ensures that the attention matrix allows information to pass only when there are gaps between objects. Once a penetration is detected, the attention path is structurally cut off.

[0042] When the physical prior When friction is anisotropic, the physical intuition is that "the resistance to motion of an object on a rough surface depends on the direction of motion," and its physical invariants are... Including relative velocity vector and surface normal vector The kernel function is: in, As a learnable scale parameter, the physical meaning of this kernel function is: when an object moves along the direction of less friction... Token Attention is enhanced when friction is greater, but suppressed when friction is greater, thus encoding the physical law of frictional anisotropy as a structural hard constraint of weight.

[0043] When the physical prior When considering energy conservation and dissipation, the physical intuition states that "the total energy of an isolated system is conserved, and mechanical energy can be dissipated as heat energy through friction, damping, etc." Its physical invariants are... Including kinetic energy Potential energy The total energy difference is The energy conservation kernel function is: ;in For learnable scale parameters, The maximum allowable dissipation threshold, It is an indicator function. It violates the law of conservation of energy. The combination is structurally truncated, and the model does not "create" energy.

[0044] When the physical prior When the mass-inertia is anisotropic, the physical intuition is that "the mass distribution of an object determines its moment of inertia—driving translation of the center of mass and rotation of the edges." Its physical invariants are... Including quality Location of the center of mass and inertia tensor (3×3 symmetric positive definite matrix). The kernel function is: in, This is a learnable scale parameter. The physical meaning of this kernel function is: to push the scale near the center of mass... Gain high attention weights (clear translational response), push the edge. By obtaining low weights (complex rotational response), the physical law of mass-inertia anisotropy is encoded as a structural hard constraint of weights.

[0045] When the physical prior When considering the transmission of stability along a support chain, the physical intuition is that "stability is transmitted downwards along the support chain—if the bottom is unstable, the whole structure collapses." Its physical invariants... Including support diagrams (side ) express support ), support chain length (From base to) (support chain length), most recent common ancestor Support confidence level The kernel function is: in, This is a learnable scale parameter. The physical meaning of this kernel function is: on the same support chain... Maintain strong focus, cross-chain Attention is suppressed, thereby encoding the physical law of support chain stability as a structural hard constraint of weights.

[0046] When the physical prior When the geometry is a functional availability geometry, physical intuition (e.g., "the cup can hold water") depends on the geometry (concave side up), its physical invariants. Including objects geometric eigenvectors (This can be extracted from the shape descriptor, normal vector, or depth map convolutional network of the point cloud), and its functionality. Geometric template (Predefined ideal geometric features, such as "container" corresponding to concave geometry and "support surface" corresponding to flat geometry). The kernel function is: in, For the set of candidate functions, For the first The weight parameters for each function (can be learned) For the first The scale parameter corresponds to each function. The physical meaning of this kernel function is: [The kernel function is defined as] having the same functional availability. By forming a "functional semantic cluster", enhanced attention is obtained, thereby encoding the physical law of functional availability geometry as a structural hard constraint of weights.

[0047] When the physical prior When constraining a kinematic chain hinge, the physical intuition is, for example, that "the movement of the door is restricted to around the hinge axis." Its physical invariants... include Corresponding joint angles and joint physical limit angle The kernel function is: in, This is a learnable decay coefficient. The physical meaning of this kernel function is: attention automatically decays when the joint approaches its limit, and the model "instinctively" avoids outputting commands beyond the joint's range, thus encoding the physical law of kinematic chain hinge constraints as structural hard constraints of the weights.

[0048] When the physical prior When multi-body causality emerges, the physical intuition is that "energy and momentum are redistributed among multiple objects during a multi-body collision." Its physical invariants... Including momentum before the collision and momentum after the collision The kernel function is: ; in, For learnable scale parameters, for and The probability of a collision (based on spatial proximity and relative velocity direction). The collision trigger threshold, This is the indicator function. The physical meaning of this kernel function is: the model predicts the redistribution of momentum before a collision occurs, thereby encoding the physical law of multi-body causal emergence as a structural hard constraint of the weights.

[0049] Step 3: Generate a structured projection weight matrix based on the kernel function Based on learnable kernel functions With the aforementioned physical invariants Generate a structured projected weight matrix for the independent variable. .

[0050] The kernel function It is a learnable function with learnable parameters. superscript This indicates that the kernel function is adapted to physical priors. The input to the kernel function is a physical invariant. The output is the elements of the weight matrix. .

[0051] Specifically, the structured projection weight matrix Each element It is calculated using the following formula: in, Structured projection weight matrix The Middle Line number The element value of the column, which represents and The strength of the connection between them; represents the order of the basis functions, typically ranging from 4 to 16; , These are learnable model parameters; , To adapt to the aforementioned physical priors The basis functions are determined by different physical priors. Different physical priors correspond to different choices of basis functions. For example, for translational symmetry, the basis functions are trigonometric functions. For rotational symmetry, the basis functions are spherical harmonics. For scaling symmetry, the basis functions are log-Gaussian kernels; for permutation symmetry, the basis functions are graph kernels; for Lorentz symmetry, the basis functions are Minkowski kernels; for normal symmetry, the basis functions are group representation matrices. .

[0052] The kernel function It can be selected from at least one of the following: Mahalanobis kernel, trigonometric function kernel, Bessel kernel, spherical harmonic kernel, graph kernel, group representation kernel, Gaussian kernel, multi-scale Laplace kernel, and oscillatory decay kernel; the Gaussian kernel includes the standard Gaussian kernel (isotropic, single scale), the anisotropic Gaussian kernel (Madarabis distance form, independent scale in each direction), and the adaptive scale Gaussian kernel (scale adapts to the input).

[0053] At the formula level, The value is R The sum of +1 terms, where each term is a basis function value multiplied by its corresponding learnable coefficient. This linear combination form allows the kernel function to flexibly fit various physical laws while maintaining the structural integrity of physical constraints. Constrained by Zhang Cheng's 2 R In the dimensional function subspace, escape is impossible. That is to say, the weight matrix of this invention... ,in This structural hard constraint is fundamentally different from the soft constraints of methods such as PINN (where physical constraints are merely additional terms in the loss function and can be bypassed by the model).

[0054] In a specific embodiment, the kernel function It can also be a weighted combination of kernel functions corresponding to multiple different physical priors: in, , For learnable parameters, For the first This weighted combination allows the model to consider multiple physical priors simultaneously and automatically adjust the relative importance of each prior during training.

[0055] In this embodiment (gravitational anisotropic support), the kernel function is an anisotropic Gaussian kernel: in, , is the Gaussian radial basis function for the horizontal radial distance; , where is the Gaussian radial basis function of the vertical height difference. This is the mean offset parameter; , where is the Gaussian radial basis function for the alignment of the normal vector.

[0056] In the formula, , , This is the unit vector representing the direction of gravity. , , , , , These are learnable parameters.

[0057] When the physical prior When the kinematic constraints are articulated, the kernel function is a multi-scale Laplace kernel: in, , These are learnable parameters. The kernel function calculates the Euclidean distance within the Gaussian kernel. Replace with geodesic distance in the joint configuration space , is the Gaussian kernel on a non-Euclidean manifold.

[0058] When the physical prior When the material's strain constitutive response is given, the kernel function is an adaptive scaling Gaussian kernel: in, , , These are learnable parameters. When local strain... At its maximum, The rapid expansion of t and the rapid decay of the kernel function value physically correspond to "plastic fracture or softening of the material".

[0059] When the physical prior P is a functional availability potential landscape, the kernel function is a triangular kernel: in, This is a learnable frequency parameter. When two objects are spatially adjacent but have completely different potential energy functions... Extremely large, causing The kernel function is huge, causing oscillating decay and blocking attentional interaction.

[0060] From the perspective of a unified framework, the aforementioned anisotropic Gaussian kernel, multi-scale Laplace kernel, adaptive-scale Gaussian kernel, and triangular kernel can be summarized into a unified form of the physical generalization Gaussian kernel: in For the sake of physical a priori The induced distance function takes different forms depending on different physical priors: like For anisotropy measurement (Mahaviron distance): ; If G is a manifold metric (geodesic distance): ; like For strain coupling measurement: ; like Potential energy coupling metric (non-quadratic): .

[0061] This unified framework enables the present invention to address distance concepts in rigid geometry, articulated kinematics, and connected medium mechanics within the same mathematical framework.

[0062] The structured projection weight matrix It can also be generated by superimposing it with the standard projected weight matrix: in, This is a standard learnable query projection matrix.

[0063] Step 4: Linear projection yields the query matrix, key matrix, and value matrix. With the structured projection weight matrix As a query projection matrix Key projection matrix Sum projection matrix For the input sequence respectively Perform linear projection to obtain the query matrix. Key matrix Sum matrix : ; ; .

[0064] In this embodiment, for the sake of simplicity, let In a practical embodiment, , and Different learnable kernel parameters can be used to generate them.

[0065] The query matrix Bond matrix Geometric properties of the query matrix: Bond matrix Each of the Projection represents the location of the physical invariants. Induced, physical coordinate-dependent In the curved space. That is to say, after passing through the structured weight matrix After projection, The representation no longer resides in a globally flat Euclidean space, but rather in a space composed of physical invariants. Induced, physical coordinate-dependent In the curved space.

[0066] From the perspective of differential geometry, this invention constructs a physically dependent fiber bundle structure, which can be formally expressed as: Among them, the bottom manifold For physical space (such as three-dimensional Euclidean space) Joint configuration space Strain space (etc.); fibers For semantic feature space, ; Communication is handled by kernel functions Definition. Fibers at different physical locations. and There is no global isomorphism between them, which is the mathematical expression of "physical location dependence".

[0067] Step 5: Construct a dual-core composite metric matrix and perform multi-head self-attention calculation. Firstly, based on the query matrix Key matrix Sum matrix Construct a dual-kernel composite metric matrix .because and All are generated by physical kernel functions. It inherits the structural properties determined by physical invariants: ;Right now Each element is a physical invariant The function.

[0068] When the physical kernel function has locality For those with a long physical distance The exponential decay naturally achieves hard coding of spatial locality priors. In mathematics, it is a metric tensor, which is no longer a fixed identity matrix or a constant matrix, but depends on... physical coordinates , The field-dependent metric warps the “flat” semantic feature space into a “curved” physical-semantic joint space.

[0069] Then, multi-head self-attention calculations are performed in the curved space: because and All are structured physical weight matrices. Therefore, the calculation of attention scores is implicitly determined by physical invariants. Induced metric tensor control.

[0070] Overall, the above method has the following geometric essence: the structured projection weight matrix Will Projecting attention from a flat Hilbert space onto a curved manifold associated with physical coordinates transforms attention computation from angular similarity in a high-dimensional flat space to geodesic similarity on a joint physical-semantic manifold. Specifically, in the attention computation of the standard Transformer, (A flat Hilbert space), the attention score is two. The cosine of the included angle in a flat Hilbert space. In this invention, -- After being projected, it belongs to a curved space dependent on physical coordinates, and the attention score becomes ,in For physical invariants Induced metric tensor field. From a functional analysis perspective, this invention generalizes the attention inner product to a Sobolev inner product with physical weights, so that the attention score is no longer calculated as the inner product of two points in a flat space, but as a monotonic function of geodesic distance calculated on a curved manifold defined by physical invariants. This forms the mathematical foundation for the transition from "statistical pattern matching" to "physical cognitive inference".

[0071] Step 6: Update the kernel function parameters based on the training loss. Update the kernel function based on the training loss. Learnable parameters The training loss can include task loss (such as cross-entropy loss for grasp point classification, mean squared error loss for pose regression) and physical loss (such as strain energy functional residual). The task loss measures the difference between the model output and the true label; the physical loss measures the deviation of the model output from the physical equilibrium equation.

[0072] From the perspective of functional extrema, the training loss mentioned above can be reformulated as the transformation of the model from "fitting the data distribution" to "finding the stationary point where the global energy functional reaches its minimum value under physical constraints".

[0073] Specifically, the training loss of the standard Transformer is: ; That is, model parameters Minimize the training data using gradient descent. The empirical risk in this context is that physical laws are implicitly assumed to be learnable from data.

[0074] The training loss of this invention is: ;in, For standard task losses, For physical loss, The hyperparameters used to control the strength of physical constraints.

[0075] The physical loss Specifically, it consists of a weighted sum of the residuals from multiple physical formulas across multiple physical field instances: in The set of formulas that satisfy the existence condition of variables. For the first In the physical field instance, the th The learnable bias coefficients of each physical formula It is a dimensionless normalized function. This represents the residual of the corresponding physical formula.

[0076] This can be reinterpreted as a discrete form of a physical energy functional: ; in For the energy density functional of a physical field, its variational... = 0 corresponds to the Euler-Lagrange equations for the physical field as follows: = 0, therefore, the training process of this invention is equivalent to simultaneously minimizing the data fitting error and the energy functional of the physical field: ; when As the value approaches infinity, any output of the model must strictly satisfy the Euler-Lagrange equations of the physical field, corresponding to the equilibrium state of the physical system; when... When =0, the model degenerates into a standard Transformer. The value of is between the two, representing the trade-off between data fit and physical consistency in the model.

[0077] From the perspective of energy dissipation, a Lyapunov functional can be defined: The goal of training is to find the parameters. Make The gradient descent process can be interpreted as a discretization of the energy dissipation process of a physical system. The stability and convergence conditions require… That is, each step in the training process reduces the physical energy functional until the model reaches a stationary point. = 0.

[0078] After training converges, the model's output for any input physically corresponds to a stable configuration that satisfies the Euler-Lagrange equations of the physical field—the model transforms from "fitting the data distribution" to "solving the functional extrema of the physical field." This is a functional extrema interpretation where first-principles constraints are "hard-coded" into the model structure.

[0079] The kernel function Learnable parameters The gradient is calculated using the backpropagation algorithm and then updated using gradient descent optimizers (such as Adam and SGD). in, For learning rate, Training for total loss.

[0080] Through the training process described above, the model learns the "mapping rules from physical invariants to weight matrices," rather than data patterns under specific scenarios. Therefore, the model has the ability to reason based on physical laws under unseen physical conditions.

[0081] From the perspective of prediction mechanism, the standard Transformer differs fundamentally from this invention. The prediction mechanism of the standard Transformer is the extrapolation of data distribution: The model makes predictions by weighted averaging the outputs of similar samples in the training data. Its reasoning ability essentially depends on the coverage of the input space by the training set. The prediction mechanism of this invention, however, is based on the interpolation and extrapolation of physical laws. The model is looking for an output. This ensures that the output satisfies two conditions simultaneously: first, it closely approximates the model's response to the input. Prediction (Data consistency); secondly, it enables physical energy functionals Achieve a minimum value (physical consistency).

[0082] When input When the data falls outside the training data distribution, the extrapolation of the standard Transformer is unreliable—the model can only interpolate based on a finite number of training samples, and cannot guarantee the physical plausibility of the output outside the coverage of the training set. However, the model of this invention, by solving for the functional extrema of the physical field, can derive a reasonable output under unseen physical conditions using the principle of least action. This is the theoretical basis of the invention's "zero-sample physical extrapolation capability"—the generalization boundary of the model is determined by the effective range of the physical laws themselves, rather than by the distribution boundary of the training data.

[0083] Specifically, the present invention also provides a Transformer structured weight generation system for robot embodied manipulation, comprising: The physical coordinate acquisition module is used to determine the coordinates of each element in the input sequence. In physical space Physical coordinates in .

[0084] The physical prior determination module is used to determine the physical prior. And based on the physical priors Determine the corresponding physical invariants ,in In the physical prior The function remains unchanged. This module can automatically select physical priors based on the task scenario, or accept a user-specified physical prior type. The physical priors... Including at least one of the following: translational symmetry, rotational symmetry, scaling symmetry, permutation symmetry, Lorentz symmetry, gauge symmetry, gravitational anisotropy support, articulated kinematic constraints, material strain constitutive response, functional availability potential energy landscape, causal time arrow, object permanence, contact constraints and penetration prohibition, frictional anisotropy, energy conservation and dissipation, mass-inertia anisotropy, support chain stability transfer, functional availability geometry, kinematic chain articulated constraints, and multibody causal emergence.

[0085] A kernel function parameterization module, which is used to perform kernel function parameterization based on a learnable kernel function. With the aforementioned physical invariants Generate a structured projected weight matrix for the independent variable. The structured projection weight matrix Each element It is calculated using the following formula: in, These are the elements of the weight matrix; The order of the basis functions; , , These are learnable model parameters; , To adapt to the aforementioned physical priors The basis functions; the structured projection weight matrix The number of learnable parameters is (2 R +1), independent of the input sequence length K and feature dimensions D This module is the core of the system, ensuring that the entire Transformer weight generation process is controlled by the rigid structural constraints of physical priors. The kernel functions generated by this module include, but are not limited to, at least one of the following: Markov kernel, trigonometric kernel, Bessel kernel, spherical harmonic kernel, graph kernel, group representation kernel, Gaussian kernel, multi-scale Laplace kernel, oscillatory decay kernel, causal time arrow kernel, physical constancy kernel, contact constraint kernel, friction anisotropy kernel, energy conservation kernel, mass-inertia anisotropy kernel, support chain stability transfer kernel, functional availability geometry kernel, kinematic chain articulation constraint kernel, and multibody causal emergence kernel; the Gaussian kernel includes standard Gaussian kernel, anisotropic Gaussian kernel, and adaptive scaling Gaussian kernel. This module also supports weighted combinations of the multiple kernel functions, as well as the superposition generation of structured weights and standard learnable weights.

[0086] Projection module, the projection module being used to project the structured weight matrix As a query projection matrix Key projection matrix Sum projection matrix For the input sequence respectively Perform linear projection to obtain the query matrix. Key matrix Sum matrix .

[0087] The self-attention calculation module is used to calculate based on the query matrix. Key matrix Sum matrix Construct a dual-kernel composite metric matrix And perform multi-head self-attention calculations in the curved space.

[0088] The training update module is used to update the kernel function based on the training loss. Learnable parameters .

[0089] Specifically, the Transformer structured weight generation system is integrated into each layer of the Transformer, and the kernel function parameters of each layer are independently learnable. That is, each layer can have its own kernel function type and basis function order. R and learnable parameters This allows different layers of the model to focus on physical laws at different spatial scales—shallow layers focus on local physical constraints (such as contact constraints), while deeper layers focus on global physical laws (such as energy conservation).

[0090] The following specific embodiments illustrate in detail the implementation methods and application effects of the methods and systems of the present invention.

[0091] Step 1: Obtain the input sequence and determine the physical coordinates The robot acquires color and depth images of the scene using an RGB-D camera. The depth image is projected into a 3D point cloud using the camera's intrinsic parameter matrix. ; in, For pixel coordinates, For depth value, This is the camera back projection function.

[0092] Perform voxel downsampling on the original point cloud (side length is...) =5mm voxel mesh, retaining a representative point within each voxel), statistical filtering ( =50 neighborhood (points exceeding 2.0 times the global average distance are identified as outliers and removed) and object segmentation (extracting the point cloud mask of the target object using the semantic segmentation results in the RGB image) to obtain the point cloud of the target object. .

[0093] For each point in the point cloud ,structure : ;in,( ) represents spatial location; Let be the surface normal vector, and search its normal vector using a KD-tree for each point. Neighborhood ( =30), perform principal component analysis (PCA) on the neighborhood point set, and the eigenvector corresponding to the smallest eigenvalue is the normal vector; For local curvature, it is estimated from the mean of the angles between the neighborhoods of the normal vector. ,in ≤ ≤ These are the three eigenvalues ​​of principal component analysis.

[0094] Step 2: Determine the physical priors and calculate the physical invariants For any two p and q (Corresponding to two local patches on the object's surface), determine the physical priors. To capture stability priors, construct a difference vector of physical invariants: ; in, ; The angle between the normal vectors; This is the curvature difference.

[0095] Step 3: Generate a structured projection weight matrix based on the kernel function by Using the independent variable, a structured weight matrix is ​​generated through a learnable anisotropic triangular kernel function: ; The elements of the query, key, and value projection weight matrices are as follows: in, =8 is the order of the basis functions. , ∈ For learnable amplitude coefficients, ∈R 5 It is a learnable frequency vector.

[0096] The physical law encoded by this kernel function is: spatial proximity ( , , Small), normal vector relative ( Low curvature (small) It has high grasping stability.

[0097] Step 4: Linear projection yields the query matrix, key matrix, and value matrix. enter matrix ,by As , and Perform a linear projection to obtain , , The metric matrix is , element is .

[0098] Step 5: Perform multi-head self-attention calculation: Self-attention output Mapped to each via the output header Salience score for capture: ; Step 6: Generate a decision based on attention output Search all candidate grab point pairs on the object surface. Only retain those that satisfy the distance constraint For each pair of points (corresponding to the opening range of the two fingers of the end effector), select the two with the highest significance scores. As a point-to-point crawler: ; With optimal capture point Based on this, construct a coordinate system for the capture operation: the origin is the midpoint between the two points. The approach direction is along the line connecting the two points. ; Grasp the coordinate system along the z-axis direction, shaft edge Orientation. The grasping coordinate system is converted into the target pose (position + attitude) of the end effector. The angles of each joint are solved by inverse kinematics, and control commands are sent to execute the grasping.

[0099] Technical effect: The entire process requires no data capture or annotation. Physical laws (the geometric conditions for palm-based grasping—relative normal vectors, moderate distance, and low curvature) directly determine "what constitutes a reasonable grasp," which is then determined through kernel functions. The mathematical properties are hard-coded into the weight matrix. The self-attention mechanism evaluates all candidate point pairs simultaneously, guaranteeing global optimality.

[0100] Example 2: Gravitational Anisotropic Contact Support Core – Stable Placement in Embossed Grasping Scenario Description: A robotic arm performs the task of "stablely placing a cup on a table." The model needs to determine the physical support relationship between the bottom of the cup and the table, distinguish between the "effective support area" and the "suspended area," and output a stable placement action.

[0101] Step 1: Obtain input and determine physical coordinates As shown in Table 1 below, after desktop point cloud scanning, the input layer consists of the following 5 key elements. Composition, each Carry physical coordinates and surface normal vector (Calculated in real time by the visual perception module): Table 1 Input Layer Composition Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors Supported by gravitational anisotropy. Physical invariants. Includes horizontal radial distance Vertical height difference Triples for alignment with surface normal. (To query) The bottom of the cup is the reference point: → (Bottom of the cup vs. tabletop support area): (Perfect vertical alignment); =0-0.1=-0.1mm (the bottom of the cup is in micrometer-level contact with the tabletop); normal alignment: · =(0, 0, -1)·(0, 0, +1)=-1 (Perfect face-to-face contact). Criterion: Extremely stable support pair.

[0102] → (Bottom of the cup vs. the edge of the table that is hanging in the air): =150mm (large horizontal offset); =0-0=0mm; Normal alignment: -1 (direction is correct, but position is suspended). Judgment: No solid support.

[0103] → (Bottom of the cup vs. stem of the cup): ≈36mm; =0-30=-30mm (cup handle is suspended relatively high); Normal alignment: (0, 0, -1)·(0.7, -0.7, 0)=0. Judgment: Non-support force transmission path.

[0104] Step 3: Generate a structured projection weight matrix based on the kernel function The kernel function is an anisotropic Gaussian kernel. Substituting into the anisotropic Gaussian kernel formula, =5mm, =0.5mm: ≈1.0 × 0.98 × 1.0 = 0.98; ≈exp(-150 2 / (2×5 2 ))×1×1≈e -450 ≈0; ≈exp(-36 2 / 50) × exp(-30 2 / (2×0.5 2 ))× exp(-0 2 / (2σ_n 2 ))≈e^(-25.9) × e^(-1800) × 1 ≈ 0.

[0105] Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0106] Step 5: Perform multi-head self-attention calculation Comparison of attention layer outputs: As shown in Table 2 below, the output attention distribution of the standard Transformer (without physical prior) is as follows: ): Table 2. Standard Transformer (without physical prior) output attention distribution ( ) The model assigns the highest attention to areas outside the physically suspended edge of the desktop. ), while giving the cup handle ( 15% of attention is spent mistakenly believing that the bottom of the cup can be placed in the air or supported by the cup handle.

[0107] As shown in Table 3 below, the output attention distribution of this invention (contact support core hard constraint) is as follows: ): Table 3 Output attention distribution of the present invention (contact support core hard constraint) ) bottom of the cup Focus 96% of the attention on the desktop contact area that actually provides gravity support. Suspended ( ) and cup handle ( The attention weights are physically truncated to zero by the kernel function.

[0108] Step 6: Generate a decision based on attention output Feature vectors output by the attention layer It is fed into the control head of the robotic arm, and outputs the displacement of the end effector. =(0, 0, -2mm). The robotic arm precisely places the cup within the stable support area of ​​the table, and the physics simulator determines that the placement was successful.

[0109] Example 3: Geodesic Distance Core of Articulated Kinematic Chain - Joint Coordination in Drawer Pulling Operation Scenario Description: A robotic arm performs a "pull out a drawer" operation. The drawer is hinged to the cabinet via a slide rail, and its motion constraint is translation along the slide rail direction. The model needs to distinguish between "push force along the slide rail direction" (effective) and "pressure in the vertical direction" (ineffective or even jammed).

[0110] Step 1: Obtain input and determine physical coordinates As shown in Table 4 below, there are 6 key points near the end effector of the robotic arm and the drawer handle. Each Carry physical coordinates (3D spatial position) and joint angles (Angle relative to shoulder / elbow joint): Table 4 Six Key Points for Robotic Arm Endpieces and Drawer Handles information Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors For articulated kinematic constraints. (To query) Using the end effector of the robotic arm as a reference, along the skeletal tree path Path(4, j ) Accumulate joint angles to calculate physical invariants : → (End of arm → wrist joint): Path(4,3) is directly adjacent. = =π / 12≈0.262rad; but the Euclidean distance between the two is: = ≈34mm.

[0111] → (End of arm → Elbow joint): Path(4,2): End of arm → Wrist ( )+wrist→elbow( )= =π / 12 + π / 12 = π / 6 ≈ 0.524 rad; Euclidean distance: = ≈120mm.

[0112] → (End point → shoulder joint): Path(4,1): Sum of all joint differences = =π / 12+π / 12+π / 6=π / 3≈1.047rad.

[0113] → (End point → drawer handle): No kinematic chain connection. =∞ (blocks the transmission of attention).

[0114] Step 3: Generate a structured projection weight matrix based on the kernel function The kernel function is a multi-scale Laplace kernel. Substituting into the multi-scale Laplace kernel formula, R=3. =0.1, =1.0, =10.0: =0.993+0.933+0.502≈2.428 (High weight, maintaining joint coordination) =0.973+0.763+0.064≈1.800 (medium to high weight) =0.896 + 0.580 + 0.003 ≈ 1.479 (Medium weight) →0 (Block direct attention from the handle to avoid incorrect force direction) Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0115] Step 5: Perform multi-head self-attention calculation Comparison of attention layer outputs: As shown in Table 5 below, the standard Transformer (Euclidean distance) output attention distribution ( (End) Table 5 Standard Transformer (Euclidean distance) Output Attention Distribution (End) The model assigned the highest attention (45%) to the drawer handle. However, physically the robotic arm has not yet reached the handle position (there is a 34mm gap), and forcibly grabbing it will cause a collision or jamming.

[0116] As shown in Table 6 below, the output attention distribution of this invention (geodetic distance kernel) is as follows: (End) Table 6. Output attention distribution of the present invention (geodetic distance kernel) (End) Attention is correctly allocated to the shoulder along the kinetic chain. ,elbow ,wrist This prevents contact with untouched handles. The wrong focus.

[0117] Step 6: Generate a decision based on attention output The control head outputs joint torque commands: shoulder joint +0.5Nm, elbow joint -0.3Nm, wrist joint +0.1Nm. The robotic arm moves forward to the handle position with the correct kinematic chain posture and successfully pulls out the drawer.

[0118] Example 4: Material Strain Constitutive Response Core – Force Adaptation in Flexible Object Manipulation Scenario Description: When a robotic arm grasps an unknown object, it needs to predict slippage and deformation without damaging the object. The object's material is unknown (it could be a rigid metal block, a soft sponge, or fragile ceramic), and the model needs to adaptively adjust the force based on the local strain response.

[0119] Step 1: Obtain input and determine physical coordinates As shown in Table 7 below, there are 5 point clouds on the object surface. Each Carry physical coordinates and the local deformation gradient tensor calculated from the visual deformation field. strain invariants : Table 7 shows 5 point clouds of object surfaces. Corresponding information Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors This represents the constitutive response to material strain. Physical invariants. The coupling distance between Euclidean distance and local strain ( =1.0): → (Top of metal block → Side view): = ≈55.9mm; =max{0.001, 0.002}=0.002; =55.9×(1+0.002)≈56.0mm (basically equal to Euclidean distance).

[0120] → (Top of the sponge → Side): = ≈55.9mm; max{0.85, 1.20}=1.20; =55.9×(1+1.20)=55.9×2.2≈123.0mm (expanded to 2.2 times).

[0121] → (Top of the sponge → Bottom): = ≈55.9mm; max{0.85, 1.50}=1.50; =55.9×(1+1.50)=55.9×2.5≈139.8mm (expanded to 2.5 times).

[0122] Step 3: Generate a structured projection weight matrix based on the kernel function The kernel function is an adaptive scaling Gaussian kernel ( =50mm): (Inside the metal block): a·exp(-56.0) 2 / (2×50 2 ))≈a·exp(-0.627)≈0.534a (Medium weight, preserving rigid body transmission) (Within the sponge): a·exp(-123.0) 2 / (2×50 2 ))≈a·exp(-3.026)≈0.049a (Weight decayed significantly) (Large strain within the sponge): a·exp(-139.8) 2 / (2×50 2 ))≈a·exp(-3.908)≈0.020a (weight is almost zero) Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0123] Step 5: Perform multi-head self-attention calculation Comparison of attention layer outputs: As shown in Table 8 below, the output attention distribution of the standard Transformer (without strain sensing) is... (sponge top): Table 8. Standard Transformer (Strain-Free) Output Attention Distribution ( (sponge top) The model applies uniform attention to the top, sides, and bottom of the sponge, failing to distinguish areas of high strain. The control head outputs a uniform force, causing the sponge to be excessively compressed, deformed, or torn.

[0124] As shown in Table 9 below, the output attention distribution of the present invention (strain constitutive nucleus) is as follows: (sponge top): Table 9 Output attention distribution of the present invention (strain constitutive nucleus) (sponge top) Attention from high strain areas ( , ) Evacuation, focusing on low-strain areas ( The model instinctively judges that "this part is about to break / soften, and the applied force needs to be reduced."

[0125] Step 6: Generate a decision based on attention output The control head outputs gripping force commands: F=50N for the metal block (normal); F=5N for the sponge (significantly reduced to 1 / 10). In the physics simulator, the metal block is gripped stably, while the sponge only undergoes slight elastic deformation without tearing.

[0126] Example 5: Functional Availability Potential Landscape Core - Tool Use Safety Assessment Scenario Description: A home service robot needs to identify whether a knife can be used to cut vegetables and whether its current orientation is safe. It must distinguish between a knife held upright (safe for cutting vegetables) and a knife placed upside down (dangerous, unusable).

[0127] Step 1: Obtain input and determine physical coordinates As shown in Table 10 below, there are 6 near the tool. Each Carry physical coordinates Local attitude angle of the tool (Relative to the direction of gravity) and height of the center of mass : Table 10 Six items near the knife Carrying information Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors Potential energy landscape for functional availability. Physical invariants. The weighted combination distance of spatial distance and functional potential energy difference ( =2.0, with (Based on the blade tip): → (Knife → Handle facing forward): =150mm, =|0-10|=10; =150+2×10=170mm.

[0128] (blade tip → reverse handle): ≈150mm; =|0-(-5)|=5; However, when placed in reverse, the functional potential energy category is completely different, with the functional category difference term superimposed (category penalty=100): ≈150+2×5+100≈260mm.

[0129] Step 3: Generate a structured projection weight matrix based on the kernel function The kernel function is a triangular kernel ( =3): (Knife tip → Handle facing forward): ≈0.72 (High activation, establishing functional connections); (blade tip → reverse handle): Σ≈0.08 (low activation, blocked due to oscillation decay); (Knife tip → cutting board): Δ≈150+2×20=190mm, W≈0.55 (medium activation, establish tool-workbench connection).

[0130] Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0131] Step 5: Perform multi-head self-attention calculation Comparison of attention layer outputs: As shown in Table 11 below, the output attention distribution of the standard Transformer (without functional availability) is as follows: (knife tip): Table 11 Standard Transformer (without functional availability) output attention distribution ( (knife tip) The model cannot distinguish between forward-facing and reverse-facing tool holders, thus applying roughly uniform attention. The robot may grasp a tool placed upside down, posing a safety hazard.

[0132] As shown in Table 12 below, the output attention distribution of this invention (functional availability kernel) is as follows: (knife tip): Table 12 Output attention distribution of the present invention (functional availability kernel) (knife tip) Attention is highly focused on the forward-facing handle ( (Safe to grip), reverse tool holder ( The blade is physically severed and its position is reduced to zero. Simultaneously, the blade tip and the cutting board ( Maintain moderate attention to form a complete availability topology of "knife → anvil → cutting".

[0133] Step 6: Generate a decision based on attention output The robot control head outputs the safe operating command "Grab the forward-facing knife handle and align the blade with the anvil." Knives placed upside down are marked "Unavailable / Need to be rearranged," and the task in the physics simulator is completed safely.

[0134] Example 6: Causal Time Arrow and Energy Conservation – Causal Reasoning of Ball Collisions Scenario Description: In a physics simulation environment, two elastic balls move on a two-dimensional plane and change direction after a collision. The model needs to predict the post-collision motion state and understand the causal structure of "cause of collision → consequence of collision".

[0135] Step 1: Obtain input and determine physical coordinates Table 13 below shows the motion states of the two balls in a continuous time series. Each The information carried is as follows: Table 13 shows the motion states of two balls in a continuous time series. Carrying information Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors This is based on the causal arrow of time and the conservation of energy.

[0136] The causal-time arrow kernel encodes the physical intuition "cause precedes effect" as a weighted structural a priori—this kernel function has the same mathematical structure as the Green's function for diffusion processes, with biases that decay quadratically with spatial distance and logarithmically with time, while simultaneously encoding diffusion locality and strict temporal causality. Ball A_ followed by the query token: → (Future → Past): Δt = 0 - 0.5 = -0.5 ≤ 0, = 0 (prohibited); → (Future → Past): Δt = 0 - 0.5 = -0.5 ≤ 0, = 0 (prohibited); → (Future → the same future moment): Δt = 0.5 - 0.5 = 0, = 0 (no causality at the same time); Energy conservation core: Total system energy ( + = 2.0 + 0.5 = 2.5 J; Total system energy ( + ) = 0.5 + 0.5 = 1.0 J; = |2.5 - 1.0| = 1.5 J (Energy is not conserved!) Key Insight: A physical contradiction has emerged here—the total energy after the collision changes from 2.5J to 1.0J, violating the law of conservation of energy. This suggests either the collision is inelastic (energy dissipates as heat) or there is an anomaly in the sensor data.

[0137] Step 3: Generate a structured projection weight matrix based on the kernel function for (After ball A) as the query token: and The causal connection (before ball A) is truncated. = 0), because the future cannot focus on the past. and The attention weights (after ball B) are modulated by the energy-conserving kernel: = exp(-1.5 2 / ),like =1.0, then ≈ 0.105 (significant decay) Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0138] Step 5: Perform multi-head self-attention calculation Comparison of attention layer outputs: As shown in Table 14 below, the standard Transformer output attention distribution ( (After ball A) Table 14 Standard Transformer Output Attention Distribution ( (Ball A - after) The model cannot distinguish causal direction, gives uniform attention to tokens in the past and future, and cannot understand the causal structure of "the collision before determines the collision after".

[0139] As shown in Table 15 below, the output attention distribution of this invention (causal time arrow + energy conservation kernel) is... (After ball A) Table 15 Output Attention Distribution of the Invention (Causal Time Arrow + Energy Conservation Kernel) (Ball A - after) The causal time arrow core is truncated Regarding the past ( , The energy-conserving nucleus detected a total energy loss of 1.5 J after the collision. The attention (after ball B) decayed from 0.25 to 0.18 (relative value), and the model instinctively suspected that there were anomalies or inelastic collisions in the data.

[0140] Step 6: Generate a decision based on attention output The model outputs "Energy non-conservation detected. Possible causes: ① Inelastic collision (energy dissipation); ② Abnormal sensor data." This causal reasoning ability enables the model not only to predict trajectories but also to understand the underlying dominant dynamics.

[0141] Example 7: Contact Constraints and Support Chains – Stability Prediction of Stacked Objects Scenario Description: There are three objects stacked in front of the robot—a box on a table, a ball on top of the box. The model needs to determine whether the current stack is stable, and what will happen if the box is knocked over.

[0142] Step 1: Obtain input and determine physical coordinates Table 16 below shows the point clouds of four objects. Each Carrying location, geometry, and contact information: Table 16 Point cloud of 4 objects Each Carrying location, geometry and contact information Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors This is for the transfer of contact constraints and support chain stability.

[0143] Contact constraint core (penetration prohibited): (Desktop) and (Bottom of the box): = 0.1m - 0m = 0.1m > 0, = exp(-0.01 / ) ≈ 0.99 (effective contact) (Top of the box) and (ball): = 0.45m - 0.3m = 0.15m > 0, ≈0.96 (effective contact) Assuming the ball passes through the box: = -0.02m ≤ 0, = 0 (Disallow attention, structural truncation) Supporting core: (Ball) support chain: Ball → Top of box → Bottom of box → Tabletop, = 2 Support chain (at the top of the box): Top of box → Bottom of box → Tabletop. = 1 and Support chain distance: = 2 + 1 - 2×1 = 1 and Support chain distance: = 2 + 0 - 2 × 0 = 2 = · · exp (-1 / )(medium) = · · exp (-4 / )(Low) Step 3: Generate a structured projection weight matrix based on the kernel function for (ball) as a query : and Contact core (at the top of the box): ≈ 0.96 (strong connection) and (Contact core at the bottom of the box): If the ball does not penetrate the box, keep it medium; if it does penetrate, =0 and (Desktop) Support Chain Core: Low (indirect support, weak stability).

[0144] Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0145] Step 5: Perform multi-head self-attention calculation Comparison of attention layer outputs: As shown in Table 17 below, the standard Transformer output attention distribution ( ball): Table 17 Standard Transformer Output Attention Distribution ( ball) The model assigns uniform attention weights to the desktop, the bottom of the box, and the top of the box, and cannot distinguish the stability differences between direct support (top of the box) and indirect support (desktop).

[0146] As shown in Table 18 below, the output attention distribution of this invention (contact constraint + support chain core) is... ball): Table 18 Output Attention Distribution of the Invention (Contact Constraint + Support Chain Core) ball) The contact constraint core ensures that the ball only contacts the top of the box in direct contact. Maintain strong focus connection. The supporting chain core provides indirect support to the ball ( Attention to the desktop is suppressed, and the model instinctively understands that "the underlying object determines the stability of the upper layer" - if the box is pushed over, the ball will lose its support.

[0147] Step 6: Generate a decision based on attention output When the robot prepares to push the box, the model outputs: "Current stacking state: stable (the ball is directly supported by the top of the box); Predicted consequences of pushing the box over: the ball will lose support and fall along the direction of gravity; Suggested action: grab the ball first, then push the box."

[0148] If the sensor detects a penetration between the ball and the box ( > 0), the contact constraint core will immediately Setting the value to zero, the model outputs "Anomaly Detection: Ball penetrates box, physical state unreliable, stop operation." This achieves sensor data verification based on physical consistency.

[0149] Example 8: Physical Consistency Reasoning for Stacked Objects on a Desktop - Complete Derivation of attention output Scenario Description: There is a table in front of a robot, on which sits a box, and on top of the box is a ball. The robot needs to determine whether the current stack is physically consistent and predict what will happen if the box is pushed.

[0150] Step 1: Obtain input and determine physical coordinates As shown in Table 19 below, there are 6 Four of them are physical entities. (Desktop, bottom of box, top of box, ball), these two are interactive relationships. (Contact, support) Table 19 (6 items) The information carried Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors This addresses contact constraints, support chain stability transfer, and energy conservation.

[0151] Minimum distance between the surfaces of two objects : desktop( ) and the bottom of the box ( ): =50-0=50mm>0 (There is a gap, but effective contact); Bottom of the box ( ) and the top of the box ( ): =100-50=50mm>0 (there is a gap); Top of the box ( ) and ball ( ): =120-100- =20-10=10mm>0 (sphere radius 10mm, effective contact); (No penetration) =0, all >0).

[0152] Support chain: Support diagram → → → (The bottom of the box is supported by the desktop → The bottom of the box supports the top of the box → The top of the box supports the ball) =0, =1, =2, =3.

[0153] Support confidence level (Based on the contact area and coefficient of friction, simplified values ​​are used here): =1.0, =0.95, =0.90, =0.85 For example (Top of the box) and (Ball) support chain distance: =2+3-2×2=1; Energy conservation: =(0+0)+(0+0.49)+(0+0.98)+(0+0.59)=2.06J. The system is static, and energy is conserved. =0 for all (Regarding its establishment).

[0154] Step 3: Generate a structured projection weight matrix based on the kernel function Pick =50, =2.0, =0.5, =0.3, =0.2: (Top of the box → Ball): 0.5 × 0.961 + 0.3 × 0.596 + 0.2 × 1.0 = 0.4805 + 0.1788 + 0.2 = 0.859 (Top of box → Bottom of box): 0.5 × 0.368 + 0.3 × (0.95 × 0.90 × 1) + 0.2 × 1.0 = 0.184 + 0.2565 + 0.2 = 0.641 (Top of box → Desktop): 0.5 × 0.003 + 0.3 × 0.331 + 0.2 × 1.0 = 0.0015 + 0.0993 + 0.2 = 0.301 (Ball → Table): 0.5 × 0.003 + 0.3 × 0.089 + 0.2 × 1.0 = 0.0015 + 0.0267 + 0.2 = 0.228 Complete weight matrix (let) = = = ): = [ [1.00, 0.301, 0.301, 0.228, 0.50, 0.50],[0.301, 1.00, 0.641,0.550, 0.50, 0.50],[0.301, 0.641, 1.00, 0.859, 0.50, 0.50],[0.228, 0.550,0.859, 1.00, 0.50, 0.50],[0.50, 0.50, 0.50, 0.50, 1.00, 0.70],[0.50, 0.50, 0.50, 0.50, 0.70, 1.00] ] Step 4: Obtain by linear projection / / With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0155] Step 5: Perform multi-head self-attention calculation right Attention distribution (at the top of the box), unnormalized for =[0.301, 0.641, 1.0, 0.859, 0.5, 0.5], after... After normalization: =[0.094, 0.200, 0.312, 0.268, 0.063, 0.063]; Complete attention matrix: Standard Transformer (no physical prior) attention matrix: = [ [0.17, 0.17, 0.17, 0.17, 0.16, 0.16],[0.17, 0.17, 0.17, 0.17, 0.16, 0.16],[0.17, 0.17, 0.17, 0.17, 0.16, 0.16],[0.17, 0.17, 0.17, 0.17, 0.16, 0.16],[0.17, 0.17, 0.17, 0.17, 0.16, 0.16] ]; This invention (physical weight hard constraint) attention matrix: = [ [0.312, 0.145, 0.145, 0.110, 0.144, 0.144],[0.145, 0.260,0.190, 0.170, 0.118, 0.118],[0.094, 0.200, 0.312, 0.268, 0.063, 0.063],[0.068, 0.164, 0.268, 0.312, 0.094, 0.094],[0.144, 0.144, 0.144, 0.144,0.212, 0.212],[0.144, 0.144, 0.144, 0.144, 0.212, 0.212] ] The physical structure as represented in the attention matrix: =0.268> =0.094, the top of the box focuses more on the ball (direct contact) and less on the tabletop (indirect support). =0.268> =0.068, the ball focuses more on the top of the box (direct support) and less on the tabletop (indirect support, weak stability). =0.190 and =0.200, the bottom and top of the box are connected to each other, forming a "rigid body" connection; the diagonal elements are larger, reflecting the object's permanence.

[0156] Step 6: Generate a decision based on attention output based on The model outputs "Current stack is stable (support chain intact, no penetration, energy conservation); ball is supported by box, box is supported by table; if box is pushed, ball will lose support and fall; action suggestion: grab ball first, then operate box".

[0157] Example 9: Physical Prior Transformer in Microdistributable Material Operations Scenario Description: A single robotic arm folds a long-sleeved shirt laid flat on a table into a neat rectangle. The deformation of the fabric is governed by a strain energy functional, and its dynamics are infinite-dimensional. The discrepancy between the simulation and reality stems from the unknown fabric stiffness parameters (Young's modulus, bending stiffness, coefficient of friction), and the fact that real fabric exhibits effects that are difficult to model, such as hysteresis and nonlinearity.

[0158] Task Objective: Given the current cloth configuration (point cloud observations), predict the optimal gripping-stretching trajectory of the robotic arm to bring the cloth to the target state. Cloth manipulation involves two different levels of functional extremum problems: geodesic distance functional (geometric invariants, encoding "how far away is the cloth surface") and strain energy functional (physical constraints, encoding "how much effort is required to deform the cloth"). Together, they form the mathematical foundation for encoding physical priors into Transformer weights.

[0159] Step 1: Obtain input and determine physical coordinates -- two levels change Shirts are defined as two levels Structure – Component Level (8 semantic components: left collar point, right collar point, left shoulder, right shoulder, left cuff, right cuff, left placket, right placket) and Level (each component is subdivided into 4×4=16 patches). Each Carry physical coordinates (3D position), surface normal vector and spindle orientation spindle orientation PCA can be used for local Point cloud analysis yields the eigenvector corresponding to the largest eigenvalue, used to describe... The main direction.

[0160] Step 2: Determine the physical priors and calculate the physical invariants Determine physical priors For the constitutive response of the fabric strain and the geodesic distance functional.

[0161] Geodesic distances between components (fixed lookup table): Geodesic distance matrix determined by shirt cutting dimensions. It remains unchanged under any deformation state, and its values ​​are exactly the same in simulation and real environments.

[0162] Intra-component geodesic distance (real-time solution): 16 for each component There is no fixed distance defined by the cutting dimensions, and the same component will bend and twist under different postures. The geodesic distances between them vary accordingly. During inference, the system runs the Fast Marching Method in parallel on the local triangular meshes of the eight components, with approximately 50 to 80 vertices and 16 source points for each component, calculating the internal... The geodesic distance matrix between them.

[0163] For two components that belong to different parts and The geodesic distance components are directly derived from a fixed matrix. Read from: in It is the component in the geodesic distance matrix between components. To components A fixed value.

[0164] For two belonging to the same component and The geodesic distance components are solved in real time using the fast travel method: in It is in the The results were obtained by fast traversal method on the local mesh of each component. arrive The geodetic distance.

[0165] Step 3: Generate a structured projection weight matrix based on the kernel function For each pair Construct the difference vector of physical invariants ;in It is the square of the geodesic distance (obtained by solving for the extreme value). It is the difference in strain tensor (encoding the degree of local deformation). It is the difference in normal vectors (the degree of curvature of the encoded surface). It is Euclidean distance (encoding spatial proximity).

[0166] The kernel function is a learnable triangular kernel: Similarly generated and The three sets of parameters can be learned independently.

[0167] Step 4: Obtain Q / K / V through linear projection With structured projection weight matrix As , and For the input sequence Perform a linear projection to obtain , , .

[0168] Step 5: Perform multi-head self-attention calculation Input sequence X∈ ( Each time step (Number of vertices). Attention score ,in Attention output .

[0169] Simultaneously, physical loss is introduced as a training constraint. The hidden state output by the model. (Predicted fabric vertex position) is input into the physical loss calculation module. The predicted strain field is calculated. Calculate strain energy density Calculate the Euler-Lagrange residuals (physical loss). For strain energy functional, The displacement field predicted by the model (from the attention output) Export): ; when When the value reaches →0, the model output automatically satisfies the physical equilibrium equation of the fabric, i.e. =0, this equation is the discrete form of the Euler-Lagrange equation for cloth deformation, corresponding to the equilibrium state of the cloth. The total loss is The task loss is .

[0170] Step 6: Generate a decision based on attention output Training phase: Offline preprocessing is performed in the simulator (calculating the geodesic distance for each pair of vertices and storing the geodesic distance matrix). As part of the dataset), online training reads sequence and the pre-calculated geodesic distance matrix ,structure Kernel function generation , , Forward propagation computation Calculate the task loss and physical loss, and then backpropagate to update the kernel parameters.

[0171] Inference phase: Using real fabric point clouds, the system identifies and infers the actual material parameters. Recalculate the geodesic distance matrix Using trained kernel parameters , , generate , , Forward propagation .

[0172] The technical effects are compared in Table 20 below: Table 20 Comparison of technical performance between standard Transformer, pure PINN, and this method (physical prior kernel Transformer) Core Advantage: This method simultaneously applies functional extrema to three levels—feature extraction (geodetic distance calculation), architecture design (kernel function independent variables), and training constraints (physical loss)—forming a complete closed loop from physical laws to model parameters. The model learns not data patterns under specific material parameters, but rather the physical laws governing fabric deformation—this is the fundamental guarantee for cross-domain generalization.

[0173] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any changes, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A Transformer structured weight generation method for robot embodied manipulation, characterized in that, Includes the following steps: Get the input sequence And determine each of the input sequences In physical space Physical coordinates in ; Determine physical priors And based on the physical priors Determine the corresponding physical invariants ,in In the physical prior A function that remains unchanged under certain conditions; Based on learnable kernel functions With the aforementioned physical invariants Generate a structured projected weight matrix for the independent variable. The structured projection weight matrix Each element It is calculated using the following formula: in, These are the elements of the weight matrix; The order of the basis functions; , , These are learnable model parameters; , To adapt to the aforementioned physical priors basis functions; With the structured projection weight matrix As a query projection matrix Key projection matrix Sum projection matrix For the input sequence respectively Perform linear projection to obtain the query matrix. Key matrix Sum matrix The query matrix Bond matrix Each of the Projection represents the location of the physical invariants. Induced, physical coordinate-dependent In the curved space; Based on the query matrix Key matrix Sum matrix Construct a dual-kernel composite metric matrix And perform multi-head self-attention calculations in the curved space; Update the kernel function based on the training loss. Learnable parameters .

2. The Transformer structured weight generation method for robot embodied operation according to claim 1, characterized in that, The kernel function It is at least one of the following: Markov kernel, trigonometric function kernel, Bessel kernel, spherical harmonic kernel, graph kernel, group representation kernel, Gaussian kernel, multi-scale Laplace kernel, and oscillatory decay kernel; the Gaussian kernel includes the standard Gaussian kernel, anisotropic Gaussian kernel, and adaptive scaling Gaussian kernel.

3. The Transformer structured weight generation method for robot embodied manipulation according to claim 1, characterized in that, The physical prior Including at least one of the following: translational symmetry, rotational symmetry, scaling symmetry, permutation symmetry, Lorentz symmetry, gauge symmetry, gravitational anisotropy support, articulated kinematic constraints, material strain constitutive response, functional availability potential energy landscape, causal time arrow, object permanence, contact constraints and penetration prohibition, frictional anisotropy, energy conservation and dissipation, mass-inertia anisotropy, support chain stability transfer, functional availability geometry, kinematic chain articulated constraints, and multibody causal emergence.

4. The Transformer structured weight generation method for robot embodied operation according to claim 1, characterized in that, When the physical prior When the input sequence is supported by gravitational anisotropy, each It also includes surface normal vectors. The physical invariants Includes horizontal radial distance Vertical height difference Alignment with surface normal The triplet, wherein the kernel function is an anisotropic Gaussian kernel: in, , , ; , , This is the unit vector representing the direction of gravity. , , , , , These are learnable parameters; When the physical prior When the kinematic constraints are articulated, the physical invariants Geodesic distance along the bone tree path The kernel function is a multi-scale Laplace kernel: in, ; , These are learnable parameters; When the physical prior The physical invariants are the constitutive response of the material to strain. The coupling distance between Euclidean distance and local strain The kernel function is an adaptive scaling Gaussian kernel: in, , For the right Cauchy-Green strain, the first invariant is... , , For learnable parameters, For local deformation gradient tensors; When the physical prior When the potential energy landscape is a functional availability, the physical invariants The weighted combination distance of spatial distance and functional potential energy difference The kernel function is a triangular kernel: in, , The potential energy at the center of mass is [value missing]. These are learnable weight parameters; These are learnable frequency parameters.

5. The Transformer structured weight generation method for robot embodied manipulation according to claim 1, characterized in that, The physical prior The a priori structure of everyday physical causality includes at least one of the following: causal time arrow kernel, physical constancy kernel, contact constraint kernel, friction anisotropy kernel, energy conservation kernel, mass-inertia anisotropy kernel, support chain stability transfer kernel, functional availability geometry kernel, kinematic chain hinge constraint kernel, and multibody causal emergence kernel.

6. The Transformer structured weight generation method for robot embodied manipulation according to claim 1, characterized in that, The kernel function A weighted combination of kernel functions corresponding to multiple different physical priors: in, , For learnable parameters, For the first A kind of physical a priori.

7. The Transformer structured weight generation method for robot embodied operation according to claim 1, characterized in that, The query projection matrix The structured projection weight matrix Generate by superimposing the standard projected weight matrix: in, This is a standard learnable query projection matrix.

8. The Transformer structured weight generation method for robot embodied operation according to claim 1, characterized in that, The physical coordinates It can be at least one of one-dimensional coordinates, two-dimensional coordinates, three-dimensional coordinates, or four-dimensional coordinates; The physical space It can be at least one of the following: time axis, frequency axis, image plane, three-dimensional Euclidean space, Minkowski spacetime, joint configuration space, strain space or potential energy landscape space. The physical invariants It is at least one of the following: coordinate difference, coordinate difference norm, logarithmic distance, graph topological shortest path length, spacetime interval, group element difference, gravitational anisotropy triplet, hinge geodesic distance, strain coupling distance, potential energy difference weighted distance, time difference, object occlusion time, difference between contact distance and penetration depth, relative velocity quadratic form, energy difference, point of action relative to the center of mass quadratic form, support chain distance, distance between geometric feature and functional template, joint angle exceeding limit, and momentum non-conservation quantity.

9. A Transformer structured weight generation system for robot embodied manipulation, characterized in that, include: The physical coordinate acquisition module is used to determine the coordinates of each element in the input sequence. In physical space Physical coordinates in ; The physical prior determination module is used to determine the physical prior. And based on the physical priors Determine the corresponding physical invariants ,in In the physical prior A function that remains unchanged under certain conditions; A kernel function parameterization module, which is used to perform kernel function parameterization based on a learnable kernel function. With the aforementioned physical invariants Generate a structured projected weight matrix for the independent variable. The structured projection weight matrix Each element It is calculated using the following formula: in, These are the elements of the weight matrix; The order of the basis functions; , , These are learnable model parameters; , To adapt to the aforementioned physical priors basis functions; Projection module, the projection module being used to project the structured weight matrix As a query projection matrix Key projection matrix Sum projection matrix For the input sequence respectively Perform linear projection to obtain the query matrix. Key matrix Sum matrix The query matrix Bond matrix Each of the Projection represents the location of the physical invariants. Induced, physical coordinate-dependent In the curved space; The self-attention calculation module is used to calculate based on the query matrix. Key matrix Sum matrix Construct a dual-kernel composite metric matrix And perform multi-head self-attention calculations in the curved space; The training update module is used to update the kernel function based on the training loss. Learnable parameters .

10. The Transformer structured weight generation system for robot embodied manipulation according to claim 9, characterized in that, The Transformer structured weight generation system is integrated into each layer of the Transformer, and the kernel function parameters of each layer can be learned independently. The kernel function parameterization module generates at least one of the following kernel functions to obtain the structured projection weight matrix. The kernel is defined as at least one of the following: Markov kernel, trigonometric kernel, Bessel kernel, spherical harmonic kernel, graph kernel, group representation kernel, Gaussian kernel, multi-scale Laplace kernel, oscillation decay kernel, causal time arrow kernel, physical constancy kernel, contact constraint kernel, friction anisotropy kernel, energy conservation kernel, mass-inertia anisotropy kernel, support chain stability transfer kernel, functional availability geometry kernel, kinematic chain articulation constraint kernel, and multibody causal emergence kernel; the Gaussian kernel includes standard Gaussian kernel, anisotropic Gaussian kernel, and adaptive scale Gaussian kernel.