Apparatus and method for predictive computer modeling

Learning potential confounding factors and predicting counterfactual scenarios in reinforcement learning through the causal world model solves the difficulty of predicting counterfactual scenarios and unencountered future problems in the existing technology, achieving more accurate and efficient decision-making, reducing bias and Sample complexity.

CN116685963BActive Publication Date: 2024-09-06HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202080108157.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2024-09-06
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

Existing techniques are difficult to effectively predict counterfactual scenarios and unencountered alternative futures in reinforcement learning, and causal models are biased under continuous intervention settings and cannot effectively consider the impact of confounding factors on state transition dynamics.

Method used

A Causal World Model (CWM) is proposed, which directly optimizes the latent space by learning estimators of potential confounding factors and using graph neural networks to model the relationship between intervention observations and alternative futures in an unsupervised manner. energy hinge losses in the model, predict counterfactual scenarios, and reduce bias using counterfactual risk minimization methods.

Benefits of technology

Reduces the sample complexity of reinforcement learning tasks, improves counterfactual physical reasoning capabilities, can predict alternative futures not encountered in the real world in a completely unsupervised manner, solves credit allocation problems and bias problems, and improves decision-making accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116685963B
    Figure CN116685963B
Patent Text Reader

Abstract

A device for generating a predictive model of a real-world environment in which multiple objects change states. The device includes one or more processors, the one or more processors being configured to: receive state information representing one or more changes in states of multiple training objects over a corresponding time period; and train a neural network to estimate a variable factor (u) for each training object. The variable factor is estimated based on a series of states of the training object over a time period defined by the state information. The variable factor (u) is estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information, and (ii) a second state of the training object estimated by a first model at the given time based on a state of the training object defined by the state information at a time prior to the given time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the creation of learnable world models for exploitation by machine agents. Background Art

[0002] The task of discovering causal effects from observations in physical reality often involves predicting the effects of various types of interventions, including the physical laws of the environment (inertia, velocity, gravity, or friction), the actions performed by the agent itself, and the decisions of other agents in a multi-agent system. While causal reasoning has received mainstream attention in machine learning in recent years, the existing literature has mostly focused on discovering causal effects between variables in static environments. In addition, visual reasoning in static environments has also been extensively studied. While previous work has considered deconfounding in reinforcement learning scenarios, it was assumed to cover only the confounding between observations, actions, and rewards.

[0003] Understanding intuitive physics through visual perception has attracted great attention in the fields of machine learning and reinforcement learning. Many existing models require supervised modeling of object definitions by comparing activation spectra generated by neural network filters with existing types, or leveraging bounding boxes generated by standard object detection algorithms in computer vision. While previous work has used relational mechanisms to discover and reason about related entities, the models require additional supervision to label entities with location information. In contrast, CWM uses a completely unsupervised approach to extract object abstractions. Another existing approach is to consider counterfactual scenarios when learning physical dynamics. However, this approach uses direct supervision of object locations and therefore only performs counterfactual predictions in a low-dimensional setting.

[0004] As the problem of object discovery from visual data has been studied recently, various object-based world models (WMs) have been proposed. By leveraging the forward thinking and planning capabilities of WMs, model-based reinforcement learning algorithms have been shown to be more effective than model-free alternatives in certain tasks. However, these models often suffer from the credit assignment problem bottleneck: these models usually optimize prediction or reconstruction objective functions in pixel space, which may ignore visually small but informative features (e.g., bullets in Atari games) for predicting the future. In contrast, CWM learns a set of object-centric abstract state variables and models transitions using graph neural networks by directly optimizing an energy-based hinge loss in the latent space.

[0005] Counterfactual Risk Minimization (CRM) is an instance of causal reasoning that is closely related to offline policy evaluation. Since factual and counterfactual distributions are not completely consistent, causal models built on historical data will be biased. Therefore, existing work considers unbiased learning through inverse propensity score (IPS) methods. Most existing literature focuses on scenarios with binary or finite discrete interventions, including the popular doubly robust framework. To address the problem of propensity scores being zero in the continuous intervention setting, Kallus and Zhou use kernel functions to achieve a smooth policy learning process, while Swaminathan and Joachims regularize the empirical risk through variance penalties.

[0006] A framework needs to be developed to anticipate counterfactual scenarios and possible outcomes. Summary of the invention

[0007] According to one aspect, a device for generating a predictive model of a real-world environment is provided, in which multiple objects change states in the real-world environment, the device comprising one or more processors, the one or more processors being used to: receive state information, the state information representing one or more changes in states of multiple training objects within a corresponding time period; train a neural network to estimate a variable factor (u) of each training object based on a series of states of the training object within a time period defined by the state information, the variable factor (u) being estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information, and (ii) a second state of the training object estimated by a first model at the given time based on a state of the training object defined at a time prior to the given time by the state information.

[0008] The neural network may be a recurrent neural network having a series of states for each training object (k) The gated recurrent unit (f φ ), the apparatus may be used to employ the last hidden state of the neural network as the variable factor of the object.

[0009] The apparatus may be configured to implement the neural network as a graph neural network for predicting a sequence of initial object states for each object in a set of objects at a given time (t) and a sequence of future states for each object in the set of objects

[0010] The loss function can be defined to score positive and negative samples differently.

[0011] The loss function can be defined such that the loss and Perform consistent calculations, where γ is a hyperparameter, is the energy corresponding to two consecutive states, is the energy corresponding to the negative samples.

[0012] The processor or each processor may be configured to: receive further state information (real world / o), the further state information representing the state of a plurality of active objects; estimate the future state of the active objects based on the first model and the variable factors;

[0013] The processor or each processor may be configured to: form an intermediate estimate(s) of the future state using the first model; and estimate the future state by varying the intermediate estimate according to the variable factors. The training object and / or the active object may be a vehicle.

[0014] The processor or each processor can be used to: receive state information, the state information representing the state of multiple objects; estimate the future state of the objects based on the first model and the variable factors; and train another neural network model to predict the estimated future state of the objects based on the received state information.

[0015] The apparatus may be used to store the variable factors, and further includes an upload device, the upload device being used to store the variable factors and / or the other neural network model in each of a plurality of mobile devices, each of the mobile devices having one or more sensors and one or more processors, the one or more processors being capable of implementing the variable factors and / or the other neural network model so as to predict the future states of the objects based on the state information representing the states of the objects sensed by the sensors. The mobile device may be a vehicle or a mobile phone.

[0016] On the other hand, a computer-implemented method for generating a predictive model of a real-world environment is provided in which multiple objects change states, the method comprising: receiving state information, the state information representing one or more changes in states of multiple training objects within a corresponding time period; training a neural network to estimate a variable factor (u) for each training object based on a series of states of the training object within a time period defined by the state information, the variable factor (u) being estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information, and (ii) a second state of the training object estimated by a first model at the given time based on a state of the training object defined at a time prior to the given time by the state information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The present invention will now be described by way of example with reference to the accompanying drawings, in which:

[0018] Figure 1a The typical transfer model of traditional WM is shown;

[0019] Figure 1b and Figure 1c A typical transfer model with the addition of confounding factor u is shown;

[0020] Figure 2a A graphical model of a world model is shown;

[0021] Figure 2b A graphical model of the causal world model is shown;

[0022] Figure 2c A graphical model of the proposed causal world model after the do operation is shown;

[0023] Figure 3 The proposed causal world model is shown in more detail, where the three main parts of the proposed method are shown: the object extractor and encoder, the transition estimator, and the confounding factor estimator. DETAILED DESCRIPTION

[0024] The ability to imagine internally through mental models of the world is essential to human cognition. If a machine agent can learn a world model to create a "dream" environment, it can internally ask what-if questions, simulate alternative futures that have not yet been experienced in the past, and make optimal decisions accordingly. Typically, the existing world model is built by learning spatiotemporal regularities embedded from past sensory signals, without considering confounding factors that affect the dynamics of state transitions. Therefore, the key counterfactual question, "what would have happened" if a certain action policy was taken, cannot be answered. The proposed method uses a causal world model (CWM), which enables modeling the relationship between intervention observations and alternative futures in an unsupervised manner by learning estimators of potential confounding factors. The proposed method reduces the sample complexity of reinforcement learning tasks and improves counterfactual physical reasoning.

[0025] Human-level intelligence relies on the ability to build simulations of the physical world, thereby creating human-like thinking, reasoning, and decision-making capabilities. This mechanism has been the core motivation for several recent studies of learning world models (WMs), which aim to predict future sensory data based on the agent's current motor actions. One of the ultimate goals of WMs is to create fantasy environments in which the agent can internally simulate alternative futures that are not encountered in the real world. However, this requires the WM to predict plausible outcomes of various interventions observed. Methods for building a WM that can create fantasy environments to predict counterfactuals that will occur are discussed below.

[0026] Traditional world models typically aim to learn spatiotemporal regularities from past data to predict future frames based on one or more past frames, without considering the causal effects of interventions. Model-based reinforcement learning (MBRL) algorithms are able to effectively learn world models (WMs) from a few examples, and have been shown to be more effective than model-free alternatives due to their forward thinking and planning capabilities. One of the ultimate goals of WMs is to create fantasy environments where the agent can internally simulate alternative futures that are not encountered in the real world. The proposed method explores: 1) constructing a causal WM that is able to create the fantasy environment to predict counterfactuals that will occur; 2) applying the generated fantasy environment to MBRL to make decisions more accurately and efficiently.

[0027] Therefore, according to the method proposed in this article, there is provided a device for generating a predictive model of a real-world environment, in which multiple objects change states. The device includes one or more processors, and the one or more processors are used to: receive state information, the state information representing one or more changes in the state of multiple training objects in a corresponding time period; train a neural network to estimate a variable factor (u) for each training object. The estimation is performed based on a series of states of the training object in a time period defined by the state information. The variable factor (u) is estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information, and (ii) a second state of the training object estimated by a first model at the given time based on the state of the training object defined at a time before the given time by the state information. The first state of the training object at the given time is a state of the real world, that is, a known observed state. The second state estimated at the given time is the state of the training object in the fantasy world, that is, an imaginary state that may occur if the conditions in the real world are different or change.

[0028] Figure 1a The typical transfer model of traditional WM is shown, where the variable s is considered. t 102 observations, focusing on s t +1 104. This estimate will provide us with the observation condition p(s t+1 |s t ). While making predictions based on past data is crucial, in WM, more emphasis is placed on controlling said states. t , in order to create the fantasy environment and promote imagination. In other words, it is intended to understand the do operator in causal reasoning. (i.e., intervention condition ) The world state s t Set to a specific value Scenarios that will occur in the event of t+1 .

[0029] In most practical situations, the two quantities, the observed condition and the intervention condition, are different due to the presence of confounding factors. Figure 1b and Figure 1c Shown with Figure 1a The same transfer model, but with these confounders added. The confounder denoted u106 is the factor that affects the intervention s t and the results t+1 The hidden variables of . Figure 1aExisting problem definitions used by traditional world models are shown. Figure 1b It is shown how the proposed method takes this into account by explicitly adding the confounding factor u. Figure 1b As shown, the world model that follows the problem definition is therefore called a causal world model (CWM). Figure 1c It is shown how these CWMs can be solved by employing the do operation.

[0030] To illustrate the impact, some simple calculations for the described observation conditions are provided below

[0031]

[0032] And if Figure 1c As shown, the intervening condition after the do operator 108 is factored.

[0033]

[0034] Obviously, due to the confounding factor u:p(s t |u), the two cases above are different. This result is also known as Simpson's paradox, which is a classic example of the existence of confounding in medical scenarios and will be explained in more detail below.

[0035] Therefore, the above observations suggest that Figure 1bThe world model is constructed based on the transition graph in , which enables the world model to show the true impact of the intervention on the observation. The proposed method introduces the causal world model (CWM) to predict the impact of the intervention that may occur, that is, it is expected to predict the subsequent observation trajectory as if the initial observation was changed by performing the do intervention, which is defined as the observable change at the object level applied to the initial observation. CWM aims to model the relationship between the variables for which the intervention is performed and the variables whose alternative future should be predicted. The proposed model starts with learning a set of abstract state variables for each object in a specific observation and models the transition using a graph neural network operating on the latent abstract representation. Then, the proposed method develops the CWM by estimating the latent representation of the confounding factors (i.e., a set of static but visually unobservable quantities that may affect the observation in other ways). In the proposed method, the deconfounding process can be understood as an extension of the traditional world model. The deconfounding method helps to construct time-invariant functions beyond the transition function, which can more accurately describe the environment because the mechanism can preserve global information in time changes, such as gravitational acceleration in physical systems. Then, alternative futures are predicted based on past changes and estimates of confounding factors. To further reduce the inherent bias due to inadequate counterfactual records, a counterfactual risk minimization method based on CWM historical observations is also proposed.

[0036] The proposed model uses counterfactual learning to alleviate the problem of bias in historical data. The model focuses on the distribution of interventions in a continuous space rather than measuring the causal relationship of interventions in a discrete event space. Although different from existing methods, the bias weights in the proposed method are not determined by the state of the environment, but by the historical sampling strategy.

[0037] An environment is defined by a tuple The partially observable Markov decision process (POMDP) ​​represented by are the state space, action space, observation space, and horizon respectively. For an agent taking an action in this environment, the variable representing the observation it receives at time step t is represented by o t , while the actual observed values ​​are given by Specify. At each time step t, s t Used to indicate variables that represent abstract states of the world, Indicates the actual value of the variable. t It can usually be viewed as a potential static component of the world to represent the observations, such as the shape, size, and color of an object.t The environment is distributed in the observation After that, when the environment receives the When the action is executed, it will be transferred to the distribution Then enter the new state s t+1 , and according to Return Reward t .

[0038] like Figure 1c As shown, in order to create the dream world, the do operator or do intervention is applied to the abstract state variable. in is the counterfactual value in the dream environment. Then, through the conditional observation distribution Presenting the abstract state of intervention as t (e.g., object displacement or removal) of an object-level observable change applied, where represents the value of the counterfactual observation. Learning the causal world model aims to answer the following questions:

[0039] Suppose we observe o in the real world t:T =o t:T ,

[0040] If in the dream world o t for Then t+1:T for What are the possibilities?

[0041] Specifically, upon observing the tuple Afterwards, we want to predict the position and pose of all objects in the scene at time t = T′. Consider the offline policy setting for model training, which operates only on the offline historical memory area obtained from the exploration policy. In the proposed method described in this paper, we focus on building an internal dream environment to use any given dream policy p(a t |s t ) simulates a future that has not been encountered in the past. Therefore, in the rest of this specification, The proposed method focuses on identifying the intervention distribution in the continuous space and Instead of recovering the individual treatment effect (ITE), the ITE measures the causal effect when the intervention occurs in a discrete event space.

[0042] Definition 1. Variable u is related to variable s tiff:p(s t )=∫ u p(s t |u=u)p(u=u)du's distribution is factorized.

[0043] Assumption 1. There exist unobserved variables u such that: (i) u prevents the change from s t to t+1 All backdoor paths 2 ; (ii) there is no abstract state s t To the observation o t The backdoor path.

[0044] Theorem 1. Under Assumption 1, if there exists u, The estimator of Then the intervention distribution and is recognizable.

[0045] Proof. Figure 1b Apply do calculus to the causal diagram in Figure 1c The intervention distribution is then identified by the following equation:

[0046]

[0047]

[0048] This completes the proof, since we can see from the observed distribution p(o t:T )and and the estimator Identify the quantities in the final expression of Equation 1.

[0049] As mentioned above, u is treated as a confounding factor. In other words, u is treated as a set of static but visually unobservable quantities, such as object mass, friction coefficient, direction and magnitude of gravity. To estimate the latent representation of u, we develop CWM. Then, and In the case of

[0050] Figure 2a to Figure 2c Shown with Figure 1a to Figure 1c The graphical model of WM, CWM and CWM after do operation is shown. In other words, Figure 2a to Figure 2c When the environment is considered as the partially observable Markov decision process (POMDP) Figure 1a to Figure 1c The corresponding expansion includes the action variable a t 206 and the observed variable o t 202. Therefore, Figure 1a to Figure 1c should be considered as display models, which are Figure 2a to Figure 2c However, the proposed method focuses on Figure 1a to Figure 1c The transfer function is shown in the model. Figure 1a to Figure 1c Except for the arrows in the model, the proposed method does not focus on learning Figure 2a to Figure 2c Other arrows in the model.

[0051] Figure 3 The proposed causal world model is shown. Specifically, Figure 3 The three main parts of the proposed method are shown: object extractor and encoder, transfer estimator and confounding factor estimator. The object extractor and encoder steps are as follows Figure 3 The top row of is shown, corresponding to the real world in the left box 302 and the fantasy world in the right box 304. The transfer estimator step Figure 3 The middle row of is shown, corresponding to the real world in the left frame 302 and the fantasy world in the right frame 304. The implementation of the object extractor and encoder and the transition estimator will now be described in more detail.

[0052] The starting point of model design is to learn a set of object-oriented state abstractions and model the transitions using graph neural networks, which helps capture the structural properties of the physical system and solves the credit assignment problem faced by most traditional generative WMs. To further improve the difference between state abstractions, an energy-based hinge loss is used to perform the CWM training, positive and negative experiences are scored in the form of transition dynamics, and the transition dynamics are proposed to be learned directly in the latent space. Finally, a confounding factor estimator using a set of recurrent neural networks is introduced.

[0053] To avoid the credit assignment problem introduced by generative world models, which optimize prediction or reconstruction targets in pixel space and thus can ignore visually small but informative features for predicting the future (e.g., bullets in Atari games), the CWM learns A set of abstract state values ​​for each object in Formally, there is an encoder The encoder maps observations to K abstract state representations. The choice of K is a hyperparameter and details of an ablation study of its impact can be found below.

[0054] f enc A simple implementation consists of two modules:

[0055] 1) CNN, which converts o t As input, there are K feature maps in the last layer, corresponding to the K object slots;

[0056] 2) MLP, which takes each feature map as input and produces the corresponding abstract state representation Where k∈{1,2,…K}.

[0057] It should be noted that for f enc The selection of other high-level unsupervised object representation learning methods is a possible additional option. For example, one possible choice could be a transporter neural information processing system for learning concise geometric object representations with respect to image space coordinates in a completely unsupervised manner.

[0058] The transition model of CWM is represented as an abstract state representation s t f to perform the operation trans :K×S→K×S. In the proposed method, f trans is implemented as a graph neural network that allows modeling pairwise interactions between object states while being invariant to changes in the order of object representations. The transition model f trans Representing abstract objects tuple as input, and the prediction is used to pass the combination function f comb (.,.) Obtain updates to subsequent abstract state representations In this implementation, only f is selected comb As an addition function, that is, f comb (s t ,f trans (s t ))=s t +Δs t Alternatively, other graph embedding methods can be used to model the combination. The graph neural network consists of a node update function f trans-node and the edge update function f trans-edge All nodes and edges have shared parameters. These functions are implemented as MLPs, and the message passing update is chosen as in is the intermediate representation of the interaction between nodes i and j. The output of the transfer model for the kth object is represented in the following description as

[0059] In other words, the neural network may be a recurrent neural network having a series of states for each training object k The gated recurrent unit fφ The above apparatus can then be used to take the last hidden state of the neural network As the variable factor of the object. The apparatus may be used to implement the neural network as a graph neural network. The graph neural network is used to predict a series of initial object states for each object in a set of objects at a given time t and a sequence of future states for each object in the set of objects

[0060] In order to further improve the difference between state abstractions, the CWM training can be performed using an energy-based hinge loss to score positive and negative samples in different directions. This scoring has been widely used in the field of graph representation learning. In the proposed method, the energy of two continuous state variables and the energy of the negative sample can be defined as:

[0061]

[0062] Among them, d(.,.) represents the squared Euclidean distance, Indicated by Use a random sample from the history memory area The goal of CWM can then take the form of an energy-based hinge loss as follows:

[0063]

[0064] Among them, the margin γ is a hyperparameter. The total loss should be understood as the above expectation for samples from the historical memory area.

[0065] In combination with the processor or each processor of the above apparatus, the processor or each processor may be configured to receive further state information (i.e. from the real world o), the further state information representing the state of a plurality of living objects. The processor or each processor may be configured to: estimate the future state of the living objects, i.e. the dream world, based on the first model and the variable factors The processor or each processor may also be configured to: form an intermediate estimate (s) of the future state by using the first model; and estimate the future state by changing the intermediate estimate according to the variable factor. For example, the training object and / or the active object may be a vehicle.

[0066] As will be described in more detail below, the confounding factor estimator steps along the lines of Figure 3 The bottom row shows that the real world in the left frame 302 is fed into Figure 3 The dream world on the right.

[0067] To remove the confusion, we learn an estimator To approximate the confounding factor u for each object k k The CWM is developed by optimizing the counterfactual prediction loss through a recurrent neural network to optimize the estimator Perform end-to-end training, where the recurrent neural network abstracts the state variables Specifically, for each object trajectory Run the GRU f φ A dedicated RNN, and the last hidden state Keep as an estimate of the potential representation of the confounding factor, i.e. hTk. Follows sharing f on K objects φ The parameters are agreed so that the model does not change with the number of subjects. Then, by comparing the transfer estimator with the previous s t Cascade, feeding the confounding factor estimates to the dream world model to predict alternative futures after the do intervention. Figure 3 Indicated as [:].

[0068] In real-world scenarios, models that attempt to approximate the counterfactual distribution are biased by inadequate counterfactual records. For example, in a physical dynamics scenario with a continuous intervention space, the historical trajectories satisfy a certain but unknown distribution corresponding to the historical sampling strategy. However, since unavoidable variance may be involved, it cannot be considered discretely as in the propensity score in the traditional IPS function. In order to minimize the counterfactual risk when training the CWM, the propensity score is chosen as the density function of the selected intervention p(s 0 ) historical sampling strategy. Inspired by the doubly robust (DR) estimator, the proposed estimator is set as follows.

[0069] Definition 2. Use p(s 0 ) represents the historical observation distribution (propensity score) at t0, O(s|t) = δ(s = s t ) represents the observation index function, that is, when s = s t When O(s|t)=1, s t+1 The double robust prediction is

[0070]

[0071] Proposition 1. Given the propensity score p(s 0 ), the dual-robust language machine will not observe the true trajectory (i.e., ) produces bias.

[0072] Use s t represents the tth latent state of trajectory k.

[0073]

[0074] Then, the dual-robust objective function of CWM is expressed as:

[0075]

[0076] Among them, γ is a free parameter, is the energy of the negative sample, as described in Equation 3.

[0077] Therefore, this paper proposes a causal world model (CWM) that can predict alternative future fantasy worlds that are not encountered in the real world in a completely unsupervised manner. By learning a latent confounding factor estimator and optimizing directly in the abstract state space, the CWM outperforms the state-of-the-art world models in reinforcement learning tasks and physical simulation environments. To further reduce the inevitable bias of counterfactual datasets, a counterfactual risk minimization method for CWM is also proposed.

[0078] In addition, in combination with the above-mentioned device, the processor or each processor can be used to: receive state information, wherein the state information represents the state of multiple objects; estimate the future state of the objects based on the first model and the variable factors; and train another neural network model to predict the estimated future state of the objects based on the received state information.

[0079] Additionally or alternatively, the apparatus may be used to store the variable factors and further include an upload device for storing the variable factors and / or the other neural network model in each of a plurality of mobile devices. Each mobile device may have one or more sensors and one or more processors, the one or more processors being capable of implementing the variable factors and / or the other neural network model so as to predict the future state of the objects based on state information representing the state of a plurality of objects sensed by the sensors. The mobile device may be a vehicle or a mobile phone.

[0080] Based on the above concepts, a method for generating a predictive model of a real-world environment is proposed, in which multiple objects change states. The method includes: receiving state information, the state information representing one or more changes in the state of multiple training objects within a corresponding time period; then, training a neural network to estimate a variable factor (u) for each training object based on a series of states of the training object within a time period defined by the state information. The variable factor (u) is estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information, and (ii) a second state of the training object estimated by a first model at the given time based on the state of the training object defined by the state information at a time before the given time.

[0081] The proposed CWM is a model-based trajectory prediction method combined with causal reasoning, which can estimate possible future outcomes through counterfactual reasoning. Using the proposed method, simulators for complex environments can be created, which enables in-depth analysis of the system under study, allowing interventions on the object to analyze its behavior under hypothetical conditions.

[0082] The proposed method is applicable to offline policy evaluation in a partially observable Markov Decision Process (POMDP) ​​environment. The proposed method estimates the state transition model by considering the confounding policies of the system. Confounding factors are prevalent in real-world scenarios such as sequential recommendation systems and autonomous driving. If the effects of the confounding are not eliminated, the model performance will be biased or unstable. Using the proposed method, a robust de-confounding simulator or system can be estimated, which enables (1) unbiased policy evaluation based on offline data instead of expensive online data for recommendation systems, or (2) improving the safety of autonomous driving (if applied to these scenarios).

[0083] Compared to existing methods in the deconfounded reinforcement learning setting, the proposed CWM considers confounding factors between state transitions and can therefore internally predict alternative futures that have not been encountered in the past.

[0084] Furthermore, in contrast to existing methods that learn intuitive physics from visual perception, CWM operates in a fully unsupervised manner to extract object abstractions, build state transition models, and estimate latent representations of confounding factors.

[0085] To address the credit assignment problem existing in traditional object-based world models, CWM learns a set of object-centric abstract state variables and models the transitions using graph neural networks by directly optimizing the energy-based hinge loss in the latent space.

[0086] As mentioned above, this article cites the typical example of Simpson's paradox in the medical scenario described by Pearl to prove the widespread existence of confounding. Consider the following example, where y is the observed cure rate and x is the drug being taken for treatment. Pearl shows that the overall cure rate of all patients after treatment increases from 40% to 50%, while the drug seems to be harmful to both male patients (the cure rate drops from 70% to 60%) and female patients (the cure rate drops from 30% to 20%). Simply using the causal chain of the traditional world model (WM) will lead to the above-mentioned Simpson's paradox, that is, a phenomenon in which a certain trend appears in several different sets of data, but when these groups are combined, the trend disappears or reverses. The intuitive explanation for this phenomenon is that women are more susceptible to the disease and are much more likely to die if they do not receive treatment, making it seem worse to not receive any treatment than to take the drug. This intuitive explanation prompts us to assume that the true potential causal graph is a causal graph that takes into account the confounding factor u, because gender affects treatment and cure.

[0087] In summary, it is proposed that:

[0088] 1) The Causal World Model (CWM) framework, which considers confounding factors between state transitions and can therefore internally predict alternative futures that have not been encountered in the past;

[0089] 2) Implementing CWM in a physical simulation scenario to predict subsequent observation trajectories as if the initial observations were altered by performing a do intervention, which is defined as an object-level observable change applied to said initial observations.

[0090] To develop a CWM, a world model containing causal relationships is first constructed by estimating a latent representation of the confounders (i.e., a set of static but visually unobservable quantities that may affect the observations in other ways). Alternative futures in the dream environment are then predicted based on past changes and the estimates of the confounders. The generated dream environment is then applied to MBRL to make decisions more accurately and efficiently. To further reduce the inherent bias caused by insufficient counterfactual records, a counterfactual risk minimization method based on historical observations of the CWM is also proposed.

[0091] Applicants hereby disclose separately each individual feature described herein and any combination of two or more such features, to the extent that such features or combinations can be performed according to the common general knowledge of those skilled in the art based on this specification as a whole, regardless of whether such features or combinations of features solve any problems disclosed herein, and without limiting the scope of the claims. Applicants indicate that aspects of the present invention may include any such individual features or combinations of features. In view of the above description, it will be apparent to those skilled in the art that various modifications may be made within the scope of the present invention.

Claims

1. An apparatus for generating a predictive model of a real-world environment, characterized in that A plurality of objects change states in the real-world environment, the apparatus comprising one or more processors configured to: receiving state information, the state information representing one or more changes in states of a plurality of training objects within a corresponding time period; A neural network is trained to estimate a variable factor (u) of each training object based on a series of states of the training object within a time period defined by the state information, wherein the variable factor (u) is estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information; and (ii) a second state of the training object estimated by a first model at the given time based on the state of the training object defined at a time prior to the given time by the state information.

2. The device according to claim 1, characterized in that The neural network is a recurrent neural network having a series of states for each training object (k) The gated recurrent unit (f φ ), the device is used to adopt the last hidden state of the neural network as the variable factor of the object.

3. The device according to claim 1 or 2, characterized in that: The apparatus is configured to implement the neural network as a graph neural network, wherein the graph neural network is configured to predict a series of initial object states for each object in a set of objects at a given time (t) and a sequence of future states for each object in the set of objects 4. The device according to claim 1 or 2, characterized in that: The loss function is defined to score positive and negative samples differently.

5. The device according to claim 4, characterized in that The loss function is defined such that the loss and Perform consistent calculations, where γ is a hyperparameter, is the energy corresponding to two consecutive states, is the energy corresponding to the negative samples.

6. The device according to any one of claims 1 to 2 or 5, characterized in that: The or each processor is configured to: receiving further state information, the further state information representing states of the plurality of active objects; The future state of the active object is estimated based on the first model and the variable factors.

7. The device according to claim 6, characterized in that The or each processor is configured to: forming, by means of the first model, an intermediate estimate(s) of the future state; The future state is estimated by changing the intermediate estimate according to the variable factor.

8. The device according to claim 7, characterized in that The training object and / or the activity object is a vehicle.

9. The device according to any one of claims 1-2 or 5 or 7-8, characterized in that: The or each processor is configured to: receiving state information, the state information representing states of a plurality of objects; estimating the future state of the object according to the first model and the variable factors; Another neural network model is trained to predict the estimated future state of the object based on the received state information.

10. The device according to claim 9, characterized in that The apparatus is used to store the variable factors and also includes an uploading device, wherein the uploading device is used to store the variable factors and / or the other neural network model in each of a plurality of mobile devices, each of which has one or more sensors and one or more processors, wherein the one or more processors are capable of implementing the variable factors and / or the other neural network model so as to predict the future states of the objects based on state information representing the states of the objects sensed by the sensors.

11. The device according to claim 10, characterized in that The mobile device is a vehicle or a mobile phone.

12. A computer-implemented method for generating a predictive model of a real-world environment, characterized in that: A plurality of objects change states in the real world environment, the method comprising: receiving state information, the state information representing one or more changes in states of a plurality of training objects within a corresponding time period; A neural network is trained to estimate a variable factor (u) of each training object based on a series of states of the training object within a time period defined by the state information, wherein the variable factor (u) is estimated by repeatedly optimizing a loss function between: (i) a first state of the training object at a given time defined by the state information, and (ii) a second state of the training object estimated by a first model at the given time based on the state of the training object defined at a time prior to the given time by the state information.

Citation Information

Patent Citations

  • Batched reinforcement learning

    CN110753936A

  • State space probabilistic multi-time sequence prediction method based on graph neural network

    CN111079931A

  • Meta-learning for multi-task learning for neural networks

    CN111328400A

  • Mixture distribution estimation for future prediction

    WO2020245066A1