Object-centered learning with slot attention
The slot attention module generates slot vectors through neural network storage units and function transformations, which solves the problem that existing models are difficult to generate entity representations when processing perceptual representations. It realizes feature sharing and resource optimization between tasks, and improves the efficiency and efficiency of the model. flexibility.
Patent Information
- Application Number
- CN202110619117.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-07-13
- Filing Date
- 2021-06-03
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-06-03
AI Technical Summary
When existing machine learning models deal with perceptual representations, it is difficult to effectively generate entity-centered representations, and it is difficult to share feature vectors between different tasks, resulting in long model training time and high resource consumption.
The slot attention module is used to generate slot vectors through neural network storage units and function transformations, key, query, and value functions are used to calculate attention matrices and update matrices, and the slot vectors are updated to generate permutation-invariant entity representations.
The slot attention module can share feature vectors between different tasks, reduce training time and resource consumption, improve the flexibility and efficiency of the model, and is suitable for various tasks such as image reconstruction and text translation.
Smart Images

Figure CN113486924B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 034,003, filed on June 3, 2020, which is hereby incorporated by reference as if fully set forth in this specification. Technical Field Background Art
[0003] Machine learning models can be used to process various types of data, including images, time series, text, and / or point clouds, among other possibilities. Improvements in machine learning models allow the models to perform processing of data faster and / or utilize fewer computing resources for processing. Summary of the invention
[0004] In a first example embodiment, a computer-implemented method is provided, comprising receiving a perceptual representation comprising a plurality of feature vectors. The computer-implemented method further comprises initializing a plurality of slot vectors represented by a neural network storage unit. Each of the plurality of slot vectors may be configured to represent a corresponding entity contained in the perceptual representation. The computer-implemented method further comprises determining an attention matrix based on the product of (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of slot vectors transformed by a query function. Each of a plurality of values along each of a plurality of dimensions of the attention matrix may be normalized relative to the plurality of values along each of the dimensions. The computer-implemented method further comprises determining an update matrix based on (i) the plurality of feature vectors transformed by a value function and (ii) the attention matrix. The computer-implemented method further comprises updating, by the neural network storage unit, the plurality of slot vectors based on the update matrix.
[0005] In a second example embodiment, a system is provided, comprising a processor and a non-transitory computer-readable storage medium having stored thereon instructions, the instructions, when executed by the processor, causing the processor to perform operations. The operations include receiving a perceptual representation including a plurality of feature vectors. The operations also include initializing a plurality of slot vectors represented by a neural network storage unit. Each of the plurality of slot vectors may be configured to represent a corresponding entity contained in the perceptual representation. The operations also include determining an attention matrix based on the product of (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of slot vectors transformed by a query function. Each of a plurality of values along each of a plurality of dimensions of the attention matrix may be normalized relative to a plurality of values along each of the dimensions. The operations also include determining an update matrix based on (i) a plurality of feature vectors transformed by a value function and (ii) the attention matrix. The operations also include updating, by the neural network storage unit, the plurality of slot vectors based on the update matrix.
[0006] In a third example embodiment, a non-transitory computer-readable storage medium is provided on which instructions are stored, which, when executed by a computing system, cause the computing system to perform operations. The operations include receiving a perceptual representation including a plurality of feature vectors. The operations also include initializing a plurality of slot vectors represented by a neural network storage unit. Each of the plurality of slot vectors may be configured to represent a corresponding entity contained in the perceptual representation. The operations also include determining an attention matrix based on the product of (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of slot vectors transformed by a query function. Each of a plurality of values along each of a plurality of dimensions of the attention matrix may be normalized relative to a plurality of values along each dimension. The operations also include determining an update matrix based on (i) a plurality of feature vectors transformed by a value function and (ii) the attention matrix. The operations also include updating, by the neural network storage unit, the plurality of slot vectors based on the update matrix.
[0007] In a fourth example embodiment, a system is provided, comprising a device for receiving a perceptual representation comprising a plurality of feature vectors. The system also comprises a device for initializing a plurality of slot vectors represented by a neural network storage unit. Each of the plurality of slot vectors may be configured to represent a corresponding entity contained in the perceptual representation. The system also comprises a device for determining an attention matrix based on the product of (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of slot vectors transformed by a query function. Each of a plurality of values along each of a plurality of dimensions of the attention matrix may be normalized relative to the plurality of values along each dimension. The system also comprises a device for determining an update matrix based on (i) a plurality of feature vectors transformed by a value function and (ii) the attention matrix. The system also comprises a device for updating the plurality of slot vectors based on the update matrix by the neural network storage unit.
[0008] These and other embodiments, aspects, advantages, and alternatives will become apparent to those of ordinary skill in the art by reading the following detailed description with reference to the accompanying drawings as appropriate. In addition, the Summary of the Invention section and other descriptions and drawings provided herein are intended to illustrate embodiments by way of example only, and therefore many variations are possible. For example, structural elements and process steps may be rearranged, combined, distributed, eliminated, or otherwise changed while remaining within the scope of the embodiments as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A computing system is illustrated according to example embodiments.
[0010] Figure 2 A computing device is illustrated according to example embodiments.
[0011] Figure 3A slot attention module is illustrated in accordance with an example embodiment.
[0012] Figure 4 A slot vector is illustrated according to an example embodiment.
[0013] Figure 5A An unsupervised learning application of a slot attention module is illustrated according to example embodiments.
[0014] Figure 5B A supervised learning application of a slot attention module is illustrated according to example embodiments.
[0015] Figure 6 A flow chart is illustrated according to an example embodiment. DETAILED DESCRIPTION
[0016] Example methods, devices, and systems are described herein. It should be understood that the words "example" and "exemplary" are used herein to mean "serving as an example, instance, or illustration." Any embodiment or feature described herein as "example," "exemplary," and / or "illustrative" is not necessarily to be construed as being preferred or advantageous over other embodiments or features unless so stated. Thus, other embodiments may be utilized, and other changes may be made, without departing from the scope of the subject matter presented herein.
[0017] Therefore, the example embodiments described herein are not intended to be limiting.It is readily understood that the various aspects of the present disclosure as generally described herein and illustrated in the accompanying drawings may be arranged, substituted, combined, separated and designed in many different configurations.
[0018] Furthermore, unless the context suggests otherwise, the features illustrated in the various figures may be used in combination with each other. Figure 1 The illustrated features are generally to be viewed as part of one or more integral embodiments, with the understanding that not all illustrated features are essential to every embodiment.
[0019] In addition, any enumeration of elements, blocks or steps in this specification or claims is for clarity. Thus, such enumeration should not be interpreted as requiring or implying that these elements, blocks or steps adhere to a specific arrangement or are performed in a specific order. Unless otherwise noted, the drawings are not drawn to scale.
[0020] I. Overview
[0021] The slot attention module can be configured to determine an entity-centric (e.g., object-centric) representation of an entity contained in a perceptual representation based on a distributed representation of the perceptual representation. An example perceptual representation can take the form of an image containing one or more entities, such as an object, surface, region, background, or other environmental features. The machine learning model can be configured to generate a distributed representation of the image. For example, one or more convolutional neural networks can be configured to process an image and generate one or more convolutional feature maps that can represent the output of various feature filters implemented by one or more convolutional neural networks.
[0022] These convolutional feature maps can be thought of as distributed representations of entities in the image, as the features represented by the feature maps are associated with different parts along the image region, but are not directly / explicitly associated with any entity represented in the image data. On the other hand, object-centric representations can associate one or more features with individual entities represented in the image data. Thus, for example, each feature in the distributed representation can be associated with a corresponding part of the perceptual representation, while each feature in the entity-centric representation can be associated with a corresponding entity contained in the perceptual representation.
[0023] Therefore, the slot attention module can be configured to generate multiple entity-centric representations, referred to herein as slot vectors, based on multiple distributed representations, referred to herein as feature vectors. Each slot vector can be an entity-specific semantic embedding, representing one or more attributes or characteristics of the corresponding entity. The slot attention module can thus be considered as an interface between the perceptual representation and the set of structured variables represented by the slot vectors.
[0024] The slot attention module may include a neural network storage unit, such as a gated recurrent unit (GRU) or a long short-term memory (LSTM) neural network, which is configured to store and update multiple slot vectors in the iteration of the slot attention module processing the feature vector. The parameters of the neural network storage unit can be learned during the training of the slot attention module. The multiple slot vectors can be initialized with values before the first iteration of the processing performed by the slot attention module. In one example, the multiple slot vectors can be initialized with random values, such as random values selected from a normal distribution. In other implementations, the multiple slot vectors can be initialized with values that bind and / or attach one or more of the slot vectors to a specific entity (e.g., based on the values of the previously determined slot vectors). Thus, by initializing the specific slot vector with the value of the specific slot vector previously determined for one or more previous perceptual representations, the specific slot vector can be made to represent the same entity across continuous perceptual representations (e.g., continuous video frames or continuous audio waveform portions).
[0025] The slot attention module may also include learned values, keys, and query functions. The slot attention module may be configured to calculate an attention matrix based on (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of slot vectors transformed by a query function. The entries of the attention matrix may be normalized along the dimensions corresponding to the slot vectors by a softmax function, so that the slot vectors compete with each other for representing entities contained in the perceptual representation. For example, when the number of slot vectors corresponds to the number of columns of the attention matrix, each value within each row of the attention matrix may be normalized relative to the values within each row by means of a softmax function. On the other hand, when the number of slot vectors corresponds to the number of rows of the attention matrix, each value within each column of the attention matrix may be normalized relative to the values within each column by means of a softmax function.
[0026] The slot attention module may also be configured to calculate an update matrix based on (i) the attention matrix and (ii) the plurality of feature vectors transformed by the value function. The neural network storage unit may be configured to update the plurality of slot vectors based on the update matrix and the previous values of the slot vectors, thereby allowing the values of the slot vectors to be refined to improve their representation accuracy in one or more iterations of the slot attention module.
[0027] The slot vectors generated by the slot-attention module can be permutation-invariant with respect to the feature vectors, and can be permutation-equivariant with respect to each other. Thus, for a given initialization of the slot vectors, the order of the feature vectors for a given perceptual representation may not affect the values of the slot vectors and / or the order of the values of the slot vectors. For a given perceptual representation, different initializations of the slot vectors may change the order of the slot vectors, while the set of values of the slot vectors remains approximately constant. Thus, permuting the order of the slot vectors after their initialization may be equivalent to permuting the output of the slot-attention module. The permutation-equivariance of the slot vectors with respect to each other allows the slot vectors to be fully interchangeable, and allows each slot vector to represent various entities independently of their type, classification, and / or semantics.
[0028] A plurality of slot vectors may be used by one or more machine learning models to perform specific tasks, such as image reconstruction, text translation, object attribute / feature detection, reward prediction, visual reasoning, question answering, control and / or planning, among other possible tasks. Thus, a slot attention module may be jointly trained with one or more machine learning models to generate slot vectors that are useful for performing a specific task of one or more machine learning models. That is, a slot attention module may be trained to generate slot vectors in a task-specific manner, such that the slot vectors represent information that is important to a specific task and omit information that is not important and / or relevant to the specific task.
[0029] Although the slot attention module can be trained for a specific task, the architecture of the slot attention module is not task-specific, thereby allowing the slot attention module to be used for a variety of tasks. The slot attention module can be used for both supervised and unsupervised training tasks. In addition, the slot attention module does not assume, expect or rely on feature vectors representing specific types of data (e.g., image data, waveform data, text data, etc.). Thus, the slot attention module can be used for any type of data that can be represented by one or more feature vectors, and the type of data can be based on the task for which the slot attention module is used.
[0030] Additionally, the slot vectors themselves may not be specific to a particular entity type and / or classification. Thus, when entities of multiple categories are included in the perceptual representation, each slot vector may be able to represent each entity, regardless of its category. Each slot vector may be bound or attached to a specific entity to represent its characteristics, but this binding / attention is independent of the entity type, classification, and / or semantics. The binding / attention of slot vectors to entities may be driven by the downstream task for which the slot vectors are used - the slot attention module may not be "aware" of the objects themselves and may not distinguish, for example, clustered objects, colors, and / or spatial regions.
[0031] II. Example Computing Device
[0032] Figure 1 An example form factor of a computing system 100 is illustrated. Computing system 100 may be, for example, a mobile phone, a tablet computer, or a wearable computing device. However, other embodiments are possible. Computing system 100 may include various elements, such as a body 102, a display 106, and buttons 108 and 110. Computing system 100 may also include a front camera 104, a rear camera 112, a front infrared camera 114, and an infrared pattern projector 116.
[0033] Front camera 104 may be located on a side of body 102 that generally faces a user during operation (e.g., on the same side as display 106). Rear camera 112 may be located on a side of body 102 opposite front camera 104. Referring to cameras as front and rear is arbitrary, and computing system 100 may include multiple cameras located on various sides of body 102. Front camera 104 and rear camera 112 may each be configured to capture images in the visible light spectrum.
[0034] Display 106 may represent a cathode ray tube (CRT) display, a light emitting diode (LED) display, a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or any other type of display known in the art. In some embodiments, display 106 may display a digital representation of the current image being captured by front camera 104, rear camera 112, and / or infrared camera 114, and / or a digital representation of an image that one or more of these cameras can capture or has recently captured. Thus, display 106 may act as a viewfinder for the camera. Display 106 may also support touch screen functionality that may be able to adjust settings and / or configurations of any aspect of computing system 100.
[0035] The front camera 104 may include an image sensor and associated optical elements, such as a lens. The front camera 104 may provide zoom capability or may have a fixed focal length. In other embodiments, a replaceable lens may be used for the front camera 104. The front camera 104 may have a variable mechanical aperture and a mechanical and / or electronic shutter. The front camera 104 may also be configured to capture still images, video images, or both. In addition, the front camera 104 may represent a single field of view, a stereoscopic, or a multi-field of view camera. The rear camera 112 and / or the infrared camera 114 may be arranged similarly or differently. In addition, one or more of the front camera 104, the rear camera 112, or the infrared camera 114 may be an array of one or more cameras.
[0036] Either or both of the front camera 104 and the rear camera 112 may include or be associated with an illumination assembly that provides a light field in the visible spectrum to illuminate the target object. For example, the illumination assembly may provide a flash or constant illumination of the target object. The illumination assembly may also be configured to provide a light field that includes one or more of structured light, polarized light, and light with specific spectral content. Other types of light fields known for recovering a three-dimensional (3D) model from an object are possible within the context of the embodiments herein.
[0037] Infrared pattern projector 116 may be configured to project an infrared structured light pattern onto a target object. In one example, infrared projector 116 may be configured to project a dot pattern and / or a flood pattern. Thus, infrared projector 116 may be used in conjunction with infrared camera 114 to determine multiple depth values corresponding to different physical features of a target object.
[0038] That is, infrared projector 116 can project a known and / or predetermined dot pattern onto a target object, and infrared camera 114 can capture an infrared image of the target object, including the projected dot pattern. Computing system 100 can then determine the correspondence between the region in the captured infrared image and the specific portion of the projected dot pattern. Given the position of infrared projector 116, the position of infrared camera 114, and the position of the region corresponding to the specific portion of the projected dot pattern in the captured infrared image, computing system 100 can then use triangulation to estimate the depth to the surface of the target object. By repeating this practice for different regions corresponding to different portions of the projected dot pattern, computing system 100 can estimate the depth of various physical features or portions of the target object. In this way, computing system 100 can be used to generate a three-dimensional (3D) model of the target object.
[0039] The computing system 100 may also include an ambient light sensor that may continuously or from time to time determine the ambient brightness (e.g., in terms of visible light and / or infrared light) of a scene that may be captured by the cameras 104, 112, and / or 114. In some implementations, the ambient light sensor may be used to adjust the display brightness of the display 106. Additionally, the ambient light sensor may be used to determine an exposure length for one or more of the cameras 104, 112, or 114, or to assist in such determination.
[0040] The computing system 100 may be configured to capture images of a target object using the display 106 and the front camera 104, the rear camera 112, and / or the front infrared camera 114. The captured images may be a plurality of still images or a video stream. Image capture may be triggered by activating a button 108, pressing a soft key on the display 106, or by some other mechanism. Depending on the implementation, images may be automatically captured at specific time intervals, such as when the button 108 is pressed, when the target object has appropriate lighting conditions, when the digital camera device 100 is moved a predetermined distance, or according to a predetermined capture schedule.
[0041] As described above, the functionality of computing system 100 may be integrated into a computing device, such as a wireless computing device, a cellular phone, a tablet computer, a laptop computer, etc. For example, Figure 2 is a simplified block diagram illustrating some components of an example computing device 200 that may include a camera component 224 .
[0042] By way of example and not limitation, computing device 200 may be a cellular mobile phone (e.g., a smart phone), a still camera, a video camera, a computer (e.g., a desktop, notebook, tablet, or handheld computer), a personal digital assistant (PDA), a home automation component, a digital video recorder (DVR), a digital television, a remote control, a wearable computing device, a gaming console, a robotic device, or some other type of device. Computing device 200 may be equipped with at least some image capture and / or image processing capabilities, and / or audio capture and / or audio processing capabilities. It should be understood that computing device 200 may represent a physical image and / or audio processing system, a specific physical hardware platform on which image and / or audio sensing and processing applications operate in software, or other combinations of hardware and software configured to perform image capture and / or processing functions and / or audio capture and / or processing functions.
[0043] like Figure 2 As shown, computing device 200 may include a communication interface 202 , a user interface 204 , a processor 206 , a data storage device 208 , and a camera assembly 224 , all of which may be communicatively linked together via a system bus, network, or other connection mechanism 210 .
[0044] The communication interface 202 may allow the computing device 200 to communicate with other devices, access networks, and / or transport networks using analog or digital modulation. Thus, the communication interface 202 may facilitate circuit-switched and / or packet-switched communications, such as plain old telephone service (POTS) communications and / or Internet protocol (IP) or other packetized communications. For example, the communication interface 202 may include a chipset and an antenna arranged for wireless communication with a radio access network or access point. In addition, the communication interface 202 may take the form of or include a wired interface, such as an Ethernet, Universal Serial Bus (USB), or High-Definition Multimedia Interface (HDMI) port. The communication interface 202 may also take the form of or include a wireless interface, such as Wi-Fi, A global positioning system (GPS) or a wide area wireless interface (e.g., WiMAX or 3GPP Long-Term Evolution (LTE)). However, other forms of physical layer interfaces and other types of standard or proprietary communication protocols may be used on the communication interface 202. In addition, the communication interface 202 may include multiple physical communication interfaces (e.g., Wi-Fi interfaces, interface and wide area wireless interface).
[0045] The user interface 204 can play a role in allowing the computing device 200 to interact with a human or non-human user, such as receiving input from a user and providing output to the user. Thus, the user interface 204 may include input components, such as a keypad, a keyboard, a touch-sensitive panel, a computer mouse, a trackball, a joystick, a microphone, and the like. The user interface 204 may also include one or more output components, such as a display screen, which may be combined with a touch-sensitive panel, for example. The display screen may be based on CRT, LCD and / or LED technology, or other technologies now known or developed later. The user interface 204 may also be configured to generate (one or more) audible outputs via a speaker, a speaker jack, an audio output port, an audio output device, headphones and / or other similar devices. The user interface 204 may also be configured to receive and / or capture (one or more) audible speech, (one or more) noise and / or (one or more) signals through a microphone and / or other similar devices.
[0046] In some embodiments, user interface 204 may include a display that acts as a viewfinder for still camera and / or video camera functions supported by computing device 200 (e.g., in both visible and infrared light spectrums). In addition, user interface 204 may include one or more buttons, switches, knobs, and / or dials that facilitate configuration and focusing of camera functions and capture of images. It is possible that some or all of these buttons, switches, knobs, and / or dials are implemented via a touch-sensitive panel.
[0047] Processor 206 may include one or more general purpose processors, such as microprocessors, and / or one or more special purpose processors, such as digital signal processors (DSPs), graphics processing units (GPUs), floating point units (FPUs), network processors, or application specific integrated circuits (ASICs). In some cases, the special purpose processors may be capable of image processing, image alignment, and image merging, among others. Data storage device 208 may include one or more volatile and / or non-volatile storage components, such as magnetic, optical, flash, or organic storage devices, and may be fully or partially integrated with processor 206. Data storage device 208 may include removable and / or non-removable components.
[0048] The processor 206 may be capable of executing program instructions 218 (e.g., compiled or uncompiled program logic and / or machine code) stored in the data storage device 208 to implement various functions described herein. Therefore, the data storage device 208 may include a non-transitory computer-readable medium having program instructions stored thereon, which, when executed by the computing device 200, causes the computing device 200 to implement any method, process, or operation disclosed in this specification and / or the accompanying drawings. The execution of the program instructions 218 by the processor 206 may cause the processor 206 to use the data 212.
[0049] As an example, program instructions 218 may include an operating system 222 (e.g., an operating system kernel, (one or more) device drivers, and / or other modules) and one or more applications 220 installed on computing device 200 (e.g., a camera function, an address book, email, web browsing, social networking, an audio-to-text function, a text translation function, and / or a gaming application). Similarly, data 212 may include operating system data 216 and application data 214. Operating system data 216 may be primarily accessible to operating system 222, and application data 214 may be primarily accessible to one or more of application programs 220. Application data 214 may be arranged in a file system that is visible to a user of computing device 200 or hidden from a user of computing device 200.
[0050] Applications 220 may communicate with operating system 222 via one or more application programming interfaces (APIs). These APIs may, for example, facilitate applications 220 to read and / or write application data 214, send or receive information via communication interface 202, receive and / or display information on user interface 204, and so on.
[0051] In various dialects, the application 220 may be referred to simply as an "app." In addition, the application 220 may be downloaded to the computing device 200 through one or more online application stores or application markets. However, the application may also be installed on the computing device 200 in other ways, such as via a web browser or through a physical interface on the computing device 200 (e.g., a USB port).
[0052] Camera assembly 224 may include, but is not limited to, an aperture, a shutter, a recording surface (e.g., photographic film and / or an image sensor), a lens, a shutter button, an infrared projector, and / or a visible light projector. Camera assembly 224 may include components configured for capturing images in the visible light spectrum (e.g., electromagnetic radiation with a wavelength of 400-700 nanometers) and components configured for capturing images in the infrared light spectrum (e.g., electromagnetic radiation with a wavelength of 701 nanometers-1 millimeter). Camera assembly 224 may be controlled at least in part by software executed by processor 206.
[0053] III. Example Slot Attention Module
[0054] Figure 3A block diagram of a slot attention module 300 is illustrated. The slot attention module 300 may include a value function 308, a key function 310, a query function 312, a slot attention calculator 314, a slot update calculator 316, a slot vector initializer 318, and a neural network storage unit 320. The slot attention module 300 may be configured to receive as input a perceptual representation 302, which may include feature vectors 304-306. The slot attention module 300 may be configured to generate slot vectors 322-324 based on the perceptual representation 302. The feature vectors 304-306 may represent distributed representations of entities in the perceptual representation 302, while the slot vectors 322-324 may represent entity-centric representations of these entities. The slot attention module 300 and its components may represent a combination of hardware and / or software components configured to implement the functionality described herein.
[0055] The perceptual representation 302 may represent various types of data, including, for example, two-dimensional image data (e.g., red-green-blue image data or grayscale image data), depth image data, point cloud data, audio data, time series data, or text data, among other possibilities. In some cases, the perceptual representation 302 may be captured and / or generated by one or more sensors, such as a visible light camera (e.g., camera 104), a near infrared camera (e.g., infrared camera 114), a thermal camera, a stereo camera, a time-of-flight (ToF) camera, a light detection and ranging (LIDAR) device, a radio detection and ranging (RADAR) device, and / or a microphone, among other possibilities. In other cases, the perceptual representation 302 may additionally or alternatively include data generated by one or more users (e.g., words, sentences, paragraphs, and / or documents) or data generated by one or more computing devices (e.g., a rendered three-dimensional environment, a time series graph), among other possibilities.
[0056] The perceptual representation 302 may be processed by one or more machine learning models to generate feature vectors 304-306. Each of the feature vectors 304-306 may include multiple values, each value corresponding to a specific dimension of the feature vector. In some implementations, the multiple values of each feature vector may collectively represent an embedding of at least a portion of the perceptual representation 302 in a vector space defined by one or more machine learning models. For example, when the perceptual representation 302 is an image, each feature vector 304-306 may be associated with one or more pixels in the image and may represent various features of the one or more pixels. In some cases, the one or more machine learning models used to process the perceptual representation 302 may include a convolutional neural network. Accordingly, the feature vectors 304-306 may represent a map of convolutional features of the perceptual representation 302, and may thereby include the outputs of various convolutional filters.
[0057] Each of the feature vectors 304-306 may include a position embedding that indicates a portion of the perceptual representation 302 represented by the respective feature vector. For example, the feature vectors 304-306 may be determined by adding the position embedding to the convolutional features extracted from the perceptual representation 302. Encoding the position associated with each of the feature vectors 304-306 as part of each feature vector, rather than by the order in which the feature vectors are provided to the slot attention module 300, allows the feature vectors 304-306 to be provided to the slot attention module 300 in a plurality of different orders. Thus, including the position embedding as part of the feature vectors 304-306 enables the slot vectors 322-324 generated by the slot attention module 300 to be permutation invariant with respect to the feature vectors 304-306.
[0058] For example, in the case of an image, a position embedding may be generated by constructing a W x H x 4 tensor, where W and H represent the width and height of the map of convolutional features of the perceptual representation 302, respectively. Each of the four values associated with each pixel along the W x H map may represent the position of each pixel relative to a border, boundary, and / or edge of the image along a corresponding direction of the image (i.e., top, bottom, right, and left). In some cases, each of the four values may be normalized to a range from 0 to 1, inclusive. The W x H x 4 tensor may be projected to the same dimension as the convolutional features (i.e., the same dimension as the feature vectors 304-306) in a learnable linear map manner. The projected W x H x 4 tensor may then be added to the convolutional features to generate the feature vectors 304-306, thereby embedding the feature vectors 304-306 with position information. In some implementations, the sum of the projected W x H x 4 tensor and the convolutional features may be processed by one or more machine learning models (e.g., one or more multi-layer perceptrons) to generate feature vectors 304-306. For other types of perceptual representations, similar position embeddings may also be included in the feature vectors 304-306.
[0059] The feature vectors 304-306 may be provided as input to the key function 310. The feature vectors 304-306 may include N vectors, each of which has I dimensions. Thus, in some implementations, the feature vectors 304-306 may be represented by an input matrix X having N rows (each row corresponding to a particular feature vector) and I columns.
[0060] In some implementations, the key function 310 may include a key weight matrix W having I rows and D columns. KEY In other implementations, the key function 310 may include a multilayer perceptron that includes one or more hidden layers and utilizes one or more nonlinear activation functions. The key function 310 (e.g., the key weight matrix W KEY ) can be learned during the training of the slot attention module 300. The input matrix X can be transformed by the key function 310 to generate the key input matrix X KEY (For example, X KEY =XW KEY ), which can be provided as input to the slot attention calculator 314. Key input matrix X KEY May include N rows and D columns.
[0061] The feature vectors 304-306 may also be provided as input to a value function 308. In some implementations, the value function 308 may include a value weight matrix W having I rows and D columns. VALUEIn other implementations, the value function 308 may include a multilayer perceptron that includes one or more hidden layers and utilizes one or more nonlinear activation functions. The value function 308 (e.g., the value weight matrix W VALUE ) can be learned during the training of the slot attention module 300. The input matrix X can be transformed by the value function 308 to generate the value input matrix X VALUE (For example, X VALUE =XW VALUE ), which can be provided as input to the slot attention calculator 316. The value input matrix X VALUE May include N rows and D columns.
[0062] Since the key weight matrix W KEY Sum value weight matrix W VALUE The dimension of does not depend on the number N of feature vectors 304-306, so different values of N can be used during training and testing / use of the slot-attention module 300. For example, the slot-attention module 300 can be trained on sensory inputs with N=1024 feature vectors, but can be used with N=512 feature vectors or N=2048 feature vectors. However, since the key weight matrix W KEY Sum value weight matrix W VALUE At least one dimension of does depend on the dimension I of the feature vectors 304-306, so the same value of I can be used during training and during testing / use of the slot attention module 300.
[0063] The slot vector initializer 318 may be configured to initialize each of the slot vectors 322-324 stored by the neural network storage unit 320. In one example, the slot vector initializer 318 may be configured to initialize each of the slot vectors 322-324 with a random value selected, for example, from a normal (i.e., Gaussian) distribution. In other examples, the slot vector initializer 318 may be configured to initialize one or more corresponding slot vectors of the slot vectors 322-324 with a "seed" value that is configured to cause the one or more corresponding slot vectors to focus / bind to and thereby represent a specific entity contained within the perceptual representation 302. For example, when processing an image frame of a video, the slot vector initializer 318 may be configured to initialize the slot vector for the second image frame based on the value of the slot vector 322-324 determined for a first image frame prior to the second image frame. Therefore, a particular slot vector of the slot vectors 322-324 may be caused to represent the same entity in each image frame of the video. Other types of sequential data may be similarly “seeded” by the slot vector initializer 318 .
[0064] The slot vectors 322-324 may include K vectors, each having S dimensions. Thus, in some implementations, the slot vectors 322-324 may be represented by an output matrix Y having K rows (each row corresponding to a particular slot vector) and S columns.
[0065] In some implementations, the query function 312 may include a query weight matrix W having S rows and D columns. QUERY In other implementations, the query function 312 may include a multilayer perceptron that includes one or more hidden layers and utilizes one or more nonlinear activation functions. The query function 312 (e.g., query weight matrix W QUERY ) can be learned during the training of the slot attention module 300. The output matrix Y can be transformed by the query function 312 to generate the query input matrix Y QUERY (For example, Y QUERY =YW QUERY ), which can be provided as input to the slot attention calculator 314. Query the output matrix Y QUERY It may include K rows and D columns. Thus, dimension D may be shared by value function 308, key function 310, and query function 312.
[0066] In addition, since the query weight matrix W QUERY The dimensionality of does not depend on the number K of slot vectors 322-324, so different values of K may be used during training and during testing / use of the slot attention module 300. For example, the slot attention module 300 may be trained with K=7 feature vectors but used with K=5 feature vectors or K=11 feature vectors. Thus, the slot attention module 300 may be configured to generalize between different numbers of slot vectors 322-324 without explicit training, although training and using the slot attention module 300 with the same number of slot vectors 322-324 may improve performance. However, since the query weight matrix W QUERY At least one dimension of does depend on the dimension S of the slot vectors 322-324, so the same value of S can be used during training and during testing / use of the slot-attention module 300.
[0067] The slot attention calculator 314 may be configured to calculate the slot attention calculator 314 based on the key input matrix X generated by the key function 310. KEY and the query input matrix Y generated by the query function 312 QUERY To determine the attention matrix 340. Specifically, the slot attention calculator 314 can be configured to calculate the key input matrix X KEY And query output matrix Y QUERY In some implementations, the slot attention calculator 314 may also divide the dot product by D (i.e., WVALUE , W KEY and / or W QUERY Thus, slot attention calculator 314 can implement the function Where M represents a non-normalized version of the attention matrix 340 and may include N rows and K columns.
[0068] The slot attention calculator 314 may be configured to determine the attention matrix 340 by normalizing the values of the matrix M with respect to the output axis (i.e., with respect to the slot vectors 322-324). Thus, the values of the matrix M may be normalized along its rows (i.e., along a dimension K corresponding to the number of slot vectors 322-324). Thus, each value in a respective row may be normalized with respect to the K value contained in the respective row.
[0069] Thus, the slot attention calculator 314 may be configured to determine the attention matrix 340 by normalizing each of the plurality of values of each row of the matrix M relative to the plurality of values of each row. Specifically, the slot attention calculator 314 may be configured to determine the attention matrix 340 according to Determine the attention matrix 340, where A i,j represents the value at the position corresponding to the i-th row and j-th column of the attention matrix 340, which may alternatively be referred to as the attention matrix A. Normalizing the matrix M in this manner allows the slots to compete with each other for representing a particular entity. The calculation of A implemented by the slot attention calculator 314 i,j The function of may be referred to as a softmax function. The attention matrix A (ie, the attention matrix 340) may include N rows and K columns.
[0070] In other implementations, the matrix M may be transposed before normalization, and the matrix M T The values of M can thus be normalized along its columns (ie, along the dimension K corresponding to the number of slot vectors 322-324). Thus, the matrix M T Each value in each column of may be normalized relative to the K value contained in each column. The slot attention calculator 314 may be based on Determine the transposed version of the attention matrix 340, where represents the value at the position corresponding to the i-th row and j-th column of the transposed attention matrix 340, which may alternatively be referred to as the transposed attention matrix A T However, the transposed attention matrix 340 may still be determined by normalizing the values of the matrix M with respect to the output axis (ie, with respect to the slot vectors 322 - 324 ).
[0071] The slot update calculator 316 may be configured to input the matrix X based on the value generated by the value function 308. VALUEand the attention matrix 340 to determine the update matrix 342. In one implementation, the slot update calculator 316 may be configured to calculate the slot update matrix 342 by determining the transpose of the attention matrix A and the value input matrix X VALUE The dot product of 342 is used to determine the update matrix 342. Thus, the slot update calculator 316 can implement the function U WEIGHTED SUM =A T X VALUE , where the attention matrix A can be viewed as specifying the weights for the weighted sum calculation, and the values are entered into the matrix X VALUE can be considered as specifying the value of the weighted sum calculation. Update matrix 342 so that U WEIGHTED SUM Indicates that it may include K rows and D columns.
[0072] In another implementation, the slot update calculator 316 may be configured to determine the attention weight matrix W ATTENTION The transpose and value of the input matrix X VALUE The dot product of is used to determine the update matrix 342. Focus on the weight matrix W ATTENTION The elements / entries can be defined as Or, for its transpose, it is defined as Thus, the slot update calculator 316 can implement the function U WEIGHTED MEAN =(W ATTENTION ) T X VALUE , where the matrix A can be viewed as specifying the weights for the weighted mean calculation, and the values are input into the matrix X VALUE can be considered as the value specifying the weighted mean calculation. Update matrix 342 so that it can be calculated by U WEIGHTED MEAN Indicates that it may include K rows and D columns.
[0073] The update matrix 342 may be provided as an input to the neural network storage unit 320, which may be configured to update the slot vectors 322-324 based on the previous values of the slot vectors 322-324 and the update matrix 342. The neural network storage unit 320 may include a gated recurrent unit (GRU) and / or a long short-term memory (LSTM) network, as well as other neural networks or machine learning-based storage units configured to store and / or update the slot vectors 322-324. For example, in addition to the GRU and / or LSTM, the neural network storage unit 320 may also include one or more feed-forward neural network layers that are configured to further modify the values of the slot vectors 322-324 after the modification by the GRU and / or LSTM (and before being provided to the task-specific machine learning model 330).
[0074] In some implementations, the neural network storage unit 320 may be configured to update each of the slot vectors 322-324 during each processing iteration, rather than updating only some of the slot vectors 322-324 during each processing iteration. Training the neural network storage unit 320 to update the values of the slot vectors 322-324 based on their previous values and based on the update matrix 342, rather than using the update matrix 342 as the update value of the slot vectors 322-324, may improve the accuracy of the slot vectors 322-324 and / or accelerate convergence.
[0075] The slot-focused module 300 may be configured to generate slot vectors 322-324 in an iterative manner. That is, the slot vectors 322-324 may be updated one or more times before being passed as input to the task-specific machine learning model 330. For example, the slot vectors 322-324 may be updated three times before being considered "ready" to be used by the task-specific machine learning model 330. Specifically, initial values of the slot vectors 322-324 may be assigned to them by the slot vector initializer 318. When the initial values are random, they are likely not to accurately represent the entities contained in the perceptual representation 302. Thus, the feature vectors 304-306 and the randomly initialized slot vectors 322-324 may be processed by components of the slot-focused module 300 to refine the values of the slot vectors 322-324, thereby generating updated slot vectors 322-324.
[0076] After this first iteration or pass through the slot attention module 300, each of the slot vectors 322-324 may begin to focus on and / or bind to, and thereby represent, one or more corresponding entities contained in the perceptual representation 302. The feature vectors 304-306 and the now updated slot vectors 322-324 may again be processed by components of the slot attention module 300 to further refine the values of the slot vectors 322-324, thereby generating another update to the slot vectors 322-324. After this second iteration or pass through the slot attention module 300, each of the slot vectors 322-324 may continue to focus on and / or bind to, and thereby represent, one or more corresponding entities with increasing accuracy.
[0077] Further iterations may be performed, and each additional iteration may generate some improvement in the accuracy with which each of the slot vectors 322-324 represents its corresponding one or more entities. After a predetermined number of iterations, the slot vectors 322-324 may converge to a set of approximately stable values, resulting in no additional accuracy improvement. Thus, the number of iterations of the slot attention module 300 may be selected based on (i) the desired level of representation accuracy of the slot vectors 322-324 and (ii) the desired processing time before the slot vectors 322-324 can be used by the task-specific machine learning model 330.
[0078] The task-specific machine learning model 330 can represent a number of different tasks, including supervised and unsupervised learning tasks. An example implementation of the task-specific machine learning model 330 is described in Figure 5A and 5B The task-specific machine learning model 330 can be trained together with the slot-focused module 300. Thus, depending on the specific task associated with the task-specific machine learning model 330, the slot-focused module 300 can be trained to generate slot vectors 322-324 that are suitable for the specific task and provide values that are useful in performing the specific task. Specifically, learned parameters associated with one or more of the value function 308, the key function 310, the query function 312, and / or the neural network storage unit 320 can change due to training based on the specific task associated with the task-specific machine learning model 330. In some implementations, the slot-focused module 300 can be trained using training techniques such as adversarial training and / or contrastive learning.
[0079] Compared to an alternative solution that determines an entity-centric representation, the slot attention module 300 may take less time to train (e.g., 24 hours, compared to an alternative solution of 7 days executed on the same computing hardware) and consume fewer memory resources (e.g., allowing a batch size of 64, compared to an alternative solution of 4 executed on the same computing hardware). In some implementations, the slot attention module 300 may also include one or more layer normalizations. For example, layer normalization may be applied to the feature vectors 304-306 before they are transformed by the key function 310, to the slot vectors 322-324 before they are transformed by the query function 312, and / or to the slot vectors 322-324 after they are at least partially updated by the neural network storage unit 320. Layer normalization may improve the stability of the slot attention module 300 and accelerate convergence.
[0080] IV. Example Slot Vector
[0081] Figure 4An example of how multiple slot vectors change during a processing iteration of a slot attention module 300 for a particular perceptual representation is illustrated. In this example, a perceptual representation 302 is represented by an image 400, which includes three entities: entity 410 (i.e., a circular object); entity 412 (i.e., a square object); and entity 414 (i.e., a triangular object). Image 400 may be processed by one or more machine learning models to generate feature vectors 304-306, each of which is represented by a corresponding grid element of a grid overlaid on image 400. Thus, the leftmost grid element in the top row of the grid may represent feature vector 304, the rightmost grid element in the bottom row of the grid may represent feature vector 306, and the grid elements in between may represent other feature vectors. Thus, each grid element may represent a plurality of vector values associated with a corresponding feature vector.
[0082] Figure 4 The plurality of slot vectors is illustrated as having four slot vectors. However, in general, the number of slot vectors may be modifiable. For example, the number of slot vectors may be selected to be at least equal to the number of entities expected to be present in the perceptual representation 302, so that each entity may be represented by a corresponding slot vector. Thus, in Figure 4 In the example shown, four slot vectors are provided that exceed the number of entities (ie, three entities 410, 412, and 414) contained in image 400. In the event that the number of entities exceeds the number of slot vectors, one or more slot vectors may represent two or more entities.
[0083] The slot attention module 300 may be configured to process the feature vector associated with the image 400 and the initial values of the four slot vectors (e.g., randomly initialized) to generate a slot vector having values 402A, 404A, 406A, and 408A. The slot vector values 402A, 404A, 406A, and 408A may represent the output of the first iteration (1x) of the slot attention module 300. The slot attention module 300 may also be configured to process the feature vector and the slot vector having values 402A, 404A, 406A, and 408A to generate a slot vector having values 402B, 404B, 406B, and 408B. The slot vector values 402B, 404B, 406B, and 408B may represent the output of the second iteration (2x) of the slot attention module 300. The slot attention module 300 may be further configured to process the feature vectors and the slot vectors having values 402B, 404B, 406B, and 408B to generate slot vectors having values 402C, 404C, 406C, and 408C. The slot vector values 402C, 404C, 406C, and 408C may represent the output of the third iteration (3x) of the slot attention module 300. The visualization of the slot vector values 402A, 404A, 406A, 408A, 402B, 404B, 406B, 408B, 402C, 404C, 406C, 408C may represent the visualization of the attention mask based on the attention matrix 340 at each iteration and / or the visualization of the reconstruction mask generated by the task-specific machine learning model 330, among other possibilities.
[0084] The first slot vector (associated with values 402A, 402B, and 402C) may be configured to focus on and / or be bound to entity 410, thereby representing attributes, characteristics, and / or features of entity 410. Specifically, after a first iteration of the slot focus module 300, the first slot vector may represent aspects of entity 410 and entity 412, as shown by the black filled area in the visualization of slot vector values 402A. After a second iteration of the slot focus module 300, the first slot vector may represent a larger portion of entity 410 and a smaller portion of entity 412, as shown by the increased black filled area of entity 410 and the decreased black filled area of entity 412 in the visualization of slot vector values 402B. After a third iteration of the slot focus module 300, the first slot vector may nearly completely represent entity 410, and may no longer represent entity 412, as shown by entity 410 being completely filled in black and entity 412 being shown as completely filled in white in the visualization of slot vector values 402C. Thus, as the slot-attention module 300 updates and / or refines the value of the first slot vector, the first slot vector may converge and / or focus on representing the entity 410. This focus and / or convergence of the slot vector on one or more entities is a result of the mathematical structure of the components of the slot-attention module 300 and the task-specific training of the slot-attention module 300.
[0085] The second slot vector (associated with values 404A, 404B, and 404C) may be configured to focus on and / or be bound to entity 412, thereby representing attributes, characteristics, and / or features of entity 412. Specifically, after a first iteration of the slot focus module 300, the second slot vector may represent aspects of entity 412 and entity 410, as shown by the black filled area in the visualization of slot vector values 404A. After a second iteration of the slot focus module 300, the second slot vector may represent a larger portion of entity 412 and may no longer represent entity 410, as shown by the increased black filled area of entity 412 and entity 410 being shown as completely white filled in the visualization of slot vector values 404B. After a third iteration of the slot focus module 300, the second slot vector may nearly completely represent entity 412, and may continue to no longer represent entity 410, as shown by entity 412 being completely black filled and entity 410 being shown as completely white filled in the visualization of slot vector values 404C. Thus, as the slot focus module updates and / or refines the value of the second slot vector, the second slot vector may converge and / or focus on representing entity 412 .
[0086] The third slot vector (associated with values 406A, 406B, and 406C) may be configured to focus on and / or bind to entity 414, thereby representing attributes, characteristics, and / or features of entity 414. Specifically, after a first iteration of the slot focus module 300, the third slot vector may represent aspects of entity 414, as shown by the black filled area in the visualization of slot vector value 406A. After a second iteration of the slot focus module 300, the third slot vector may represent a larger portion of entity 414, as shown by the increased black filled area of entity 414 in the visualization of slot vector value 404B. After a third iteration of the slot focus module 300, the third slot vector may represent approximately the entire entity 414, as shown by entity 412 being completely black filled in the visualization of slot vector value 406C. Thus, as the slot focus module updates and / or refines the value of the third slot vector, the third slot vector may converge and / or focus on representing entity 414.
[0087] The fourth slot vector (associated with values 408A, 408B, and 408C) may be configured to focus on and / or bind to background features of image 400, thereby representing attributes, characteristics, and / or features of the background. Specifically, after a first iteration of slot focus module 300, the fourth slot vector may represent approximately the entire background and portions of entities 410 and 414 that are not yet represented by slot vector values 402A, 404A, and / or 406A, as shown by the black filled area in the visualization of slot vector value 408A. After a second iteration of slot focus module 300, the fourth slot vector may represent approximately the entire background and smaller portions of entities 410 and 414 that are not yet represented by slot vector values 402B, 404B, and / or 406B, as shown by the black filled area of the background and the reduced black filled area of entities 410 and 414 in the visualization of slot vector value 408B. After the third iteration of the slot attention module 300, the fourth slot vector may nearly completely represent approximately the entire background, as shown in the visualization of the slot vector values 408C where the background is completely filled with black and entities 410, 412, and 414 are completely filled with white. Thus, as the slot attention module updates and / or refines the value of the fourth slot vector, the fourth slot vector may converge and / or focus on representing the background of the image 400.
[0088] In some implementations, the fourth slot vector does not represent the background of the image 400, but may take a predetermined value, indicating that the fourth slot vector is not used to represent the entity. Thus, the background may not be represented. Alternatively or additionally, when an additional slot vector (e.g., the fifth slot vector) is provided, the additional vector may represent a portion of the background, or may not be used. Thus, in some cases, the slot attention module 300 may distribute the representation of the background among multiple slot vectors. In some implementations, the slot vector may treat the entity within the perceptual representation as the same as its background. Specifically, any one of the slot vectors may be used to represent the background and / or the entity (e.g., the background may be considered as another entity). Alternatively, in other embodiments, one or more of the slot vectors may be retained to represent the background.
[0089] Multiple slot vectors may be invariant with respect to the order of the feature vectors and equivariant with respect to each other. That is, for a given initialization of the slot vectors, the order in which the feature vectors are provided at the input of the slot attention module 300 does not affect the order and / or values of the slot vectors. However, different initializations of the slot vectors may affect the order of the slot vectors, regardless of the order of the feature vectors. In addition, for a given set of feature vectors, the set of values of the slot vectors may remain unchanged, but the order of the slot vectors may be different. Thus, different initializations of the slot vectors may affect the pairing between the slot vectors and the entities contained in the perceptual representation, but the entities may still be represented by approximately the same set of slot vector values.
[0090] V. Example Slot Focus Module Application
[0091] Figure 5A The diagram illustrates an example of the application of the slot attention module 300 in an unsupervised learning task. Specifically, the convolutional neural network model 502 can be used to generate a perceptual representation 302 based on input data 500, which can represent image data, time series (e.g., waveform) data, text data, point cloud data, and / or voxel data, as well as other input types. The perceptual representation 302 may include feature vectors 304-306, which may represent the processing results of the convolutional neural network model 502 on the input data 500 and / or aspects of the unprocessed input data 500. The perceptual representation 302 may be provided as an input to the slot attention module 300, which may be configured to generate slot vectors 322-324 based thereon.
[0092] The slot decoder model 506 may be configured to receive the slot vectors 322-324 as input and generate the input data reconstruction 508 based thereon. The values of the slot vectors 322-324 provided to the slot decoder model 506 may represent the output of one or more iterations of processing performed by the slot attention module 300. The slot attention module 300 and the slot decoder model 506 may be jointly trained, resulting in the slot vectors 322-324 providing embeddings of entities present in the input data 500, which can be used by the slot decoder model 506 to reconstruct the input data 500 (i.e., generate the input data reconstruction 508). That is, the joint training of the slot attention module 300 and the slot decoder model 506 allows the slot decoder model 506 to "understand" the values of the slot vectors 322-324.
[0093] In one example, input data 500 may represent image data, and slot decoder model 506 may utilize spatial broadcast decoder to decode each of slot vectors 322-324 individually. Specifically, each slot may be broadcast onto a two-dimensional grid, which may be enhanced with position embedding. Each grid may be decoded using a convolutional neural network (whose parameters may be shared between each slot vector 322-324) to generate an output of size W x H x 4, where W and H represent the width and height of the reconstructed slot-specific image data, respectively, and the other 4 dimensions represent red, green, and blue color channels and their non-normalized alpha masks. The alpha mask may be normalized on the slot-specific image using a softmax function, and may be used as a blending weight to reassemble and / or blend the slot-specific image into the final reconstruction of the original image data (i.e., input data reconstruction 508). In other examples, slot decoder model 506 may be and / or may include aspects of a patch-based decoder.
[0094] Although the slot attention module 300 can be used in conjunction with the slot decoder model 506, the architecture of the slot attention module 300 does not itself include or depend on any decoder and / or decoding operations. Instead, the functionality provided by the decoder in other attention-based neural network architectures is replaced by the iterative processing performed by the slot attention module - i.e., processing the slot vectors 322-324 multiple times to achieve an accurate representation of the entity in the perceptual representation 302. Thus, the slot attention module 300 can be used in applications other than autoencoding, such as contrastive representation learning for object discovery and / or direct optimization of downstream tasks, such as control planning.
[0095] The slot vectors 322-324 may collectively define a latent representation 504 of the input data 500. In some cases, the latent representation 504 may represent a compression of the information contained in the input data 500. Thus, in some implementations, the slot attention module 300 may be used as and or viewed as a machine learning encoder. Thus, the slot attention module 300 may be used for image reconstruction, text translation, and / or other applications that utilize machine learning encoders. Unlike certain other latent representations, each slot vector of the latent representation 504 may capture properties of a corresponding one or more entities in the perceptual representation 302, and may do so without relying on assumptions about the order in which the entities are described by the perceptual representation 302.
[0096] Additionally, the reconstruction of the input data 500 (i.e., the generation of the input data reconstruction 508) may be viewed as an unsupervised learning task, at least because the training process may be performed without assigning any explicit labels to the input data 500. The accuracy of the input data reconstruction 508 may be determined by comparing the input data reconstruction 508 to the input data 500, rather than comparing the input data reconstruction 508 to the labels assigned to features in the input data 500.
[0097] Figure 5B The figure shows an example of the application of the slot attention module 300 in a supervised learning task. Specifically, the convolutional neural network model 502 and the slot attention module 300 can respectively operate on the input data 500 and the perceptual representation 302, such as Figure 5A As discussed, the slot vectors 322 - 324 are thereby generated. The entity attribute model 510 may be configured to determine a plurality of attributes of one or more entities represented in the input data 500 based on the slot vectors 322 - 324 .
[0098] Specifically, entity attribute model 510 may be configured to generate attributes of entities 512-520. Thus, entity attribute model 510 may be configured to determine attributes 514-516 of entity 512 and entity attributes 522-524 of entity 520. For example, when input data 500 represents an image, entities 512-520 may represent various objects or environmental features depicted by the image, and attributes 514-516 and 522-524 may represent various attributes of the corresponding objects and / or features. For example, attributes 514 and 522 may indicate the color of entities 512 and 520, respectively, while attributes 516 and 524 may indicate the shape of entities 512 and 520, respectively.
[0099] The entity attribute model 510 may represent a machine learning model, such as an artificial neural network having multiple layers. The entity attribute model 510 may be jointly trained with the slot attention module 300, resulting in the slot vectors 322-324 providing an embedding of the entities 512-520 present in the input data 500, which may be used by the entity attribute model 510 to determine the attributes of the entities 512-520. That is, the joint training of the slot attention module 300 and the entity attribute model 510 allows the entity attribute model 510 to "understand" the values of the slot vectors 322-324. In addition, the determination of the attributes of the entities 512-520 may be viewed as a supervised learning task, at least because the training process may utilize the labels assigned to the input data 500 to indicate the ground truth values of the attributes of the entities 512-520. The accuracy of the attributes of the entities 512-520 determined by the entity attribute model 510 may be determined by comparing these attributes with the ground truth values.
[0100] Furthermore, since the slot attention module 300 is permutation equivariant with respect to the slot vectors 322-324, training of the system may involve using a matching algorithm to match individual outputs of the entity attribute model 510 with corresponding ground truth values. That is, different training iterations may result in a reordering of the pairings between the slot vectors 322-324 and the corresponding entities 512-520. As this reordering occurs, each of the slot vectors 322-324 and the corresponding entities 512-520 may be re-paired with a set of ground truth data corresponding thereto using, for example, the Hungarian algorithm.
[0101] VI. Example Operation
[0102] Figure 6 A flowchart of operations related to determining entity-centric representations of one or more entities included in a perceptual representation is illustrated. These operations may be performed by computing system 100, computing device 200, and / or slot focus module 300, as well as other possible types of devices or device subsystems. Figure 6 The embodiments of the present invention may be simplified by removing any one or more features shown therein. In addition, these embodiments may be combined with features, aspects and / or implementations of any previous drawings or otherwise described herein.
[0103] Block 600 may involve receiving a perceptual representation comprising a plurality of feature vectors.
[0104] Block 602 may involve initializing a plurality of slot vectors represented by a neural network storage unit. Each slot vector in the plurality of slot vectors may be configured to represent a corresponding entity contained in the perceptual representation.
[0105] Block 604 may involve determining an attention matrix based on the product of (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of slot vectors transformed by a query function. Respective values of a plurality of values along each of a plurality of dimensions of the attention matrix may be normalized relative to the plurality of values along each dimension.
[0106] Block 606 may involve determining an update matrix based on (i) the plurality of eigenvectors transformed by the value function and (ii) the attention matrix.
[0107] Block 608 may involve updating, by the neural network storage unit, the plurality of slot vectors based on the update matrix.
[0108] In some embodiments, a second attention matrix may be determined based on the product of (i) a plurality of feature vectors transformed by a key function and (ii) a plurality of updated slot vectors transformed by a query function. Each of a plurality of values along each of a plurality of dimensions of the second attention matrix may be normalized relative to a plurality of values along each of the dimensions of the second attention matrix. A second update matrix may be determined based on (i) a plurality of feature vectors transformed by a value function and (ii) a second attention matrix. The plurality of updated slot vectors may be further updated based on the second update matrix by a neural network storage unit.
[0109] In some embodiments, each slot vector may represent a semantic embedding of the corresponding entity.
[0110] In some embodiments, updating each slot vector may iteratively refine the representation of the corresponding entity, and each slot vector may be bound to the corresponding entity.
[0111] In some embodiments, the plurality of dimensions of the attention matrix may include a plurality of rows of the attention matrix. Each of the plurality of values of each of the plurality of rows of the attention matrix may be normalized relative to the plurality of values of each row by a softmax function by dividing (i) the exponent of each of the plurality of values of each row by (ii) the sum of the exponents of the plurality of values of each row.
[0112] In some embodiments, normalizing each of the multiple values of each of the multiple rows of the attention matrix relative to the multiple values of each row by means of a softmax function can enable multiple slot vectors to compete with each other to represent entities contained in the perceptual representation.
[0113] In some embodiments, determining the update matrix may include determining the product of (i) a plurality of eigenvectors transformed by the value function and (ii) a transpose of the matrix of interest.
[0114] In some embodiments, determining the update matrix may include determining an attention weight matrix by dividing (i) each value of multiple values of each column in multiple columns of the attention matrix by (ii) the sum of the multiple values in each column, and determining the product of (i) multiple eigenvectors transformed by the value function and (ii) the transpose of the attention weight matrix.
[0115] In some embodiments, the plurality of slot vectors may include K slot vectors. Each dimension in the plurality of dimensions (e.g., each row in the plurality of rows of the focus matrix) may include K values. Each of the K values along each of the plurality of dimensions of the focus matrix may be normalized relative to the K values along each dimension by way of a softmax function by dividing (i) the exponent of each of the K values along each dimension by (ii) the sum of the exponents of the K values along each dimension.
[0116] In some embodiments, normalizing each of the K values along each of the multiple dimensions of the attention matrix relative to the K values of each dimension by means of a softmax function allows multiple slot vectors to compete with each other to represent entities contained in the perceptual representation.
[0117] In some embodiments, the plurality of eigenvectors may include N eigenvectors. The plurality of dimensions may be a first plurality of dimensions including N dimensions (e.g., N rows). Determining the update matrix may include determining an attention weight matrix by dividing (i) each of the N values along each dimension in a second plurality of dimensions (e.g., columns) of the attention matrix by (ii) the sum of the N values along each dimension in the second plurality of dimensions, and determining the product of (i) the plurality of eigenvectors transformed by the value function and (ii) the transpose of the attention weight matrix.
[0118] In some embodiments, one or more of the following may be learned during training: (i) a key function, (ii) a query function, (iii) a value function, or (iv) parameters of a neural network storage unit.
[0119] In some embodiments, the plurality of eigenvectors may be represented by an input matrix comprising (i) N rows corresponding to the number of the plurality of eigenvectors and (ii) I columns corresponding to the number of dimensions of each of the plurality of eigenvectors. The key function may include a linear transformation represented by a key weight matrix comprising I rows and D columns.
[0120] In some embodiments, determining the attention matrix based on the product may include determining the dot product of the transpose of (i) multiple feature vectors transformed by the key function and (ii) multiple slot vectors transformed by the query function, and dividing the dot product by the square root of D.
[0121] In some embodiments, the plurality of slot vectors may be represented by a slot matrix comprising (i) K rows corresponding to the number of the plurality of slot vectors and (ii) S columns corresponding to the number of dimensions of each of the plurality of slot vectors. The query function may include a linear transformation represented by a query weight matrix comprising S rows and D columns.
[0122] In some embodiments, the plurality of eigenvectors may be represented by an input matrix comprising (i) N rows corresponding to the number of the plurality of eigenvectors and (ii) I columns corresponding to the number of dimensions of each of the plurality of eigenvectors. The value function may include a linear transformation represented by a value weight matrix comprising I rows and D columns.
[0123] In some embodiments, the plurality of slot vectors may be permutation equivariant with respect to each other such that, for a plurality of different initializations of the plurality of slot vectors with respect to a given perceptual representation, the set of values of the plurality of slot vectors is substantially constant and the order of the plurality of slot vectors is variable.
[0124] In some embodiments, the plurality of slot vectors may be permutation invariant with respect to the plurality of feature vectors, such that the set of values of the plurality of slot vectors is substantially constant for a plurality of different permutations of the plurality of feature vectors.
[0125] In some embodiments, each slot vector may be configured to specifically represent a corresponding entity contained in the perceptual representation, without relying on the classification of the corresponding entity.
[0126] In some embodiments, the perceptual representation may include one or more of the following: (i) two-dimensional image data, (ii) depth image data, (iii) point cloud data, (iv) time series data, (v) audio data, or (vi) text data. The perceptual representation may be processed by one or more machine learning models to generate a plurality of feature vectors.
[0127] In one example, when the perceptual representation is two-dimensional image data, depth data and / or point cloud data representing an environment / scene, the corresponding entity represented by each slot vector may be a feature of the environment / scene, such as an object, surface, region, background and / or other parts of the environment / scene. Thus, each slot vector may be bound to, focused on and / or attached to a group of pixels in the image data representing the corresponding entity and / or a group of points in the point cloud. In another example, when the perceptual representation is audio data, the corresponding entity represented by each slot vector may be a specific noise, sound and / or its pattern. Thus, each slot vector may be bound to, focused on and / or attached to a sub-segment of the audio data representing the corresponding entity. In another example, when the perceptual representation is text data, the corresponding entity represented by each slot vector may be a letter, word, phrase, sentence, paragraph, idea and / or concept present in the text data. Thus, each slot vector may be bound to, focused on and / or attached to one or more strings in the text data representing the corresponding entity.
[0128] In some embodiments, one or more machine learning models may include a convolutional neural network.
[0129] In some embodiments, each feature vector in the plurality of feature vectors may include a position embedding that indicates a portion of the perceptual representation represented by the respective feature vector.
[0130] In some embodiments, the corresponding entity represented by each slot vector may include one or more of the following: (i) an object, (ii) a surface, (iii) a background, (iv) a waveform pattern, or (v) one or more words.
[0131] In some embodiments, the neural network storage unit may include at least one of the following: (i) a gated recurrent unit (GRU) or (ii) a long short-term memory neural network (LSTM).
[0132] In some embodiments, updating the plurality of slot vectors based on the update matrix by the neural network storage unit may include processing the update matrix by the neural network storage unit and updating the plurality of slot vectors by a feed-forward artificial neural network connected to an output of the neural network storage unit.
[0133] In some embodiments, a supervised learning task may be performed based on the updated plurality of slot vectors.
[0134] In some embodiments, the supervised learning task may be performed by one or more machine learning models trained in conjunction with one or more of a key function, a query function, a value function, or a neural network storage unit to perform the supervised learning task.
[0135] In some embodiments, the supervised learning task may include determining, through one or more machine learning models and based on a plurality of slot vectors, one or more attributes of an entity represented by the perceptual representation.
[0136] In some embodiments, the unsupervised learning task may be performed based on the updated plurality of slot vectors.
[0137] In some embodiments, the unsupervised learning task may be performed by one or more machine learning models trained in conjunction with one or more of a key function, a query function, a value function, or a neural network storage unit to perform the unsupervised learning task.
[0138] In some embodiments, the unsupervised learning task may include determining a reconstruction of the perceptual representation based on a plurality of slot vectors through one or more machine learning models.
[0139] In some embodiments, layer normalization may be applied to one or more of: (i) multiple feature vectors before they are transformed by a key function, (ii) multiple slot vectors before they are transformed by a query function, or (iii) updated multiple slot vectors after the multiple slot vectors are updated based on an update matrix.
[0140] In some embodiments, initializing the plurality of slot vectors may include initializing the plurality of slot vectors with values selected from a normal distribution.
[0141] In some embodiments, initializing the plurality of slot vectors may include initializing the plurality of slot vectors based on values of one or more previous slot vectors determined for a previous perceptual representation processed prior to the perceptual representation. Initializing the plurality of slot vectors based on values of the one or more previous slot vectors may cause the plurality of slot vectors to track entities across consecutive perceptual representations.
[0142] In some embodiments, the perceptual representation may include a first image frame of the video. Initializing the plurality of slot vectors may include initializing the plurality of slot vectors with values determined for the plurality of slot vectors based on a second image frame preceding the first image frame in the video such that the plurality of slot vectors tracks the entity between image frames of the video.
[0143] In some embodiments, the number of slot vectors in the plurality of slot vectors may be adjustable.
[0144] In some embodiments, when the number of slot vectors in the plurality of slot vectors exceeds the number of entities included in the perceptual representation, the value of one or more slot vectors in the plurality of slot vectors may be configured to indicate that the one or more slot vectors are unused. When the number of entities included in the perceptual representation exceeds the number of slot vectors in the plurality of slot vectors, at least one slot vector in the plurality of slot vectors may be configured to represent a plurality of corresponding entities included in the perceptual representation.
[0145] VII. Example Test Results
[0146] Table 1 illustrates the adjusted Rand Index scores (in %, mean + / - standard deviation) comparing the performance of the slot-attention module 300 with other machine learning architectures, including IODINE, MONet, and slot MLP, in the unsupervised object discovery task. Slot MLP represents a multi-layer perceptron model, which replaces the slot-attention module 300 for the purpose of performance testing and instead maps feature vectors to slot vectors. CLEVR6, Multi-dSprites, and Tetrominoes represent multi-object datasets used as benchmarks for evaluating image processing models. As can be seen from Table 1, the performance of the slot-attention module 300 is at least as good as other machine learning architectures, and in most cases, outperforms other machine learning architectures. The slot-attention module 300 can similarly match or outperform other machine learning architectures when performing tasks other than unsupervised object discovery.
[0147]
[0148] VIII. Conclusion
[0149] The present disclosure is not limited to the specific embodiments described in the present application, which are intended to be illustrative of various aspects. Many modifications and variations can be made without departing from its scope, as will be clear to those skilled in the art. In addition to those described herein, it will be clear to those skilled in the art that the functionally equivalent methods and devices within the scope of the present disclosure will be described above. Such modifications and variations are intended to be included within the scope of the appended claims.
[0150] The above detailed description describes various features and operations of the disclosed systems, devices, and methods with reference to the accompanying drawings. In the accompanying drawings, similar symbols generally identify similar components unless the context indicates otherwise. The example embodiments described herein and in the accompanying drawings are not intended to be limiting. Other embodiments may be utilized, and other changes may be made without departing from the scope of the subject matter presented herein. It is readily understood that the various aspects of the present disclosure as generally described herein and illustrated in the accompanying drawings may be arranged, replaced, combined, separated, and designed in many different configurations.
[0151] With respect to any or all of the message flow diagrams, scenarios, and flow diagrams in the accompanying drawings as described herein, each step, box, and / or communication may represent the processing of information and / or the transmission of information according to the exemplary embodiments. Alternative embodiments are included within the scope of these exemplary embodiments. In these alternative embodiments, for example, depending on the functions involved, the operations described as steps, boxes, transmissions, communications, requests, responses, and / or messages may not be performed in the order shown or discussed, including substantially simultaneous execution or in reverse order. In addition, more or less boxes and / or operations may be used for any of the message flow diagrams, scenarios, and flow diagrams discussed herein, and these message flow diagrams, scenarios, and flow diagrams may be combined with each other in part or in whole.
[0152] The steps or blocks representing the processing of information may correspond to circuits that can be configured to perform the specific logical functions of the methods or techniques described herein. Alternatively or additionally, the blocks representing the processing of information may correspond to modules, fragments, or portions of program code (including associated data). The program code may include one or more instructions that can be executed by a processor to implement specific logical operations or actions in the method or technique. The program code and / or associated data may be stored on any type of computer-readable medium, such as a storage device including a random access memory (RAM), a disk drive, a solid-state drive, or another storage medium.
[0153] Computer readable media may also include non-transitory computer readable media, such as computer readable media that store data for a short time like register memory, processor cache and RAM. Computer readable media may also include non-transitory computer readable media that store program code and / or data for a longer time. Thus, computer readable media may include secondary or persistent long-term storage devices, such as read-only memory (ROM), optical disk or disk, solid-state drive, compact disk read-only memory (CD-ROM). Computer readable media may also be any other volatile or non-volatile storage system. Computer readable media may be considered as, for example, computer readable storage media, or tangible storage devices.
[0154] In addition, the steps or blocks representing one or more information transfers may correspond to information transfers between software and / or hardware modules in the same physical device. However, other information transfers may occur between software modules and / or hardware modules in different physical devices.
[0155] The specific arrangements shown in the accompanying drawings should not be considered limiting. It should be understood that other embodiments may include more or less of each element shown in a given figure. In addition, some illustrated elements may be combined or omitted. In addition, example embodiments may include elements not illustrated in the accompanying drawings.
[0156] While various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope being indicated by the following claims.
Claims
1. A computer-implemented method comprising: Receiving a plurality of feature vectors, the plurality of feature vectors comprising N feature vectors, wherein each feature vector comprises a distributed representation of input data, wherein the input data comprises one or more of the following: image data, point cloud data, audio data, or text data; Initializing a plurality of slot vectors represented by a neural network storage unit, the plurality of slot vectors comprising K slot vectors, wherein each corresponding slot vector in the plurality of slot vectors is configured to represent a corresponding entity contained in the input data; determining an attention matrix based on a product of (i) the plurality of feature vectors transformed by the key function and (ii) the plurality of slot vectors transformed by the query function, wherein the attention matrix comprises N vectors corresponding to a first dimension of the attention matrix, wherein each respective vector of the N vectors comprises K values corresponding to a second dimension of the attention matrix, and wherein each respective value of the K values of each respective vector of the N vectors of the attention matrix is normalized relative to the K values of the respective vector; determining an update matrix based on (i) the plurality of eigenvectors transformed by the value function and (ii) the attention matrix; and The plurality of slot vectors are updated based on the update matrix by the neural network storage unit.
2. The computer-implemented method of claim 1 , further comprising: determining a second attention matrix based on a product of (i) the plurality of feature vectors transformed by the key function and (ii) the plurality of updated slot vectors transformed by the query function, wherein the second attention matrix comprises N vectors corresponding to a first dimension of the second attention matrix, wherein each respective vector of the N vectors comprises K values corresponding to a second dimension of the second attention matrix, and wherein each respective value of the K values of each respective vector of the N vectors of the second attention matrix is normalized relative to the K values of the respective vector; determining a second update matrix based on (i) the plurality of eigenvectors transformed by the value function and (ii) the second attention matrix; and The multiple updated slot vectors are further updated based on the second update matrix by the neural network storage unit.
3. A computer-implemented method as described in claim 1, wherein each corresponding slot vector represents a semantic embedding of the corresponding entity, wherein updating the corresponding slot vector iteratively refines the semantic embedding of the corresponding entity and binds the corresponding slot vector to the corresponding entity independently of the classification of the corresponding entity.
4. The computer-implemented method of claim 1 , further comprising: Each of the K values of each corresponding vector in the N vectors of the attention matrix is normalized relative to the K values of the corresponding vector by a softmax function by dividing (i) the exponent of the corresponding value in the K values of the corresponding vector by (ii) the sum of the exponents of the K values of the corresponding vector.
5. A computer-implemented method as described in claim 4, wherein each of the K values of each corresponding vector in the N vectors of the attention matrix is normalized relative to the K values of the corresponding vector by a softmax function, so that the multiple slot vectors compete with each other to represent the entities contained in the input data.
6. The computer-implemented method of claim 1 , wherein determining the update matrix comprises: Determine the product of (i) the plurality of eigenvectors transformed by the value function and (ii) the transpose of the matrix of interest.
7. The computer-implemented method of claim 1 , wherein determining the update matrix comprises: determining an attention weight matrix by dividing (i) each of the N values of each corresponding vector of the K vectors corresponding to the second dimension of the attention matrix by (ii) the sum of the N values of the corresponding vector of the K vectors; and Determine the product of (i) the plurality of feature vectors transformed by the value function and (ii) the transpose of the attention weight matrix.
8. The computer-implemented method of claim 1 , wherein the plurality of eigenvectors are represented by an input matrix comprising: (i) N rows corresponding to the number of the plurality of feature vectors and (ii) I columns corresponding to the number of dimensions of each of the plurality of feature vectors, wherein the plurality of slot vectors are represented by the slot matrix, the slot matrix comprising: (i) K rows corresponding to the number of the plurality of slot vectors and (ii) S columns corresponding to the number of dimensions of each of the plurality of slot vectors, wherein the key function comprises a linear transformation represented by a key weight matrix comprising I rows and D columns, wherein the query function comprises a linear transformation represented by a query weight matrix comprising S rows and D columns, wherein the value function comprises a linear transformation represented by a value weight matrix comprising I rows and D columns, and wherein one or more of the key weight matrix, the query weight matrix or the value weight matrix are learned during training.
9. The computer-implemented method of claim 8, wherein determining the attention matrix based on the product comprises: determining a dot product of (i) the plurality of feature vectors transformed by the key function and (ii) the transpose of the plurality of slot vectors transformed by the query function; and Divide the dot product by the square root of D.
10. The computer-implemented method of claim 1 , wherein the plurality of slot vectors are permutation-equivariant with respect to each other such that for a plurality of different initializations of the plurality of slot vectors with respect to given input data, the set of values of the plurality of slot vectors is constant and the order of the plurality of slot vectors is variable, and wherein the plurality of slot vectors are permutation-invariant with respect to the plurality of feature vectors such that for a plurality of different permutations of the plurality of feature vectors, the set of values of the plurality of slot vectors is constant.
11. A computer-implemented method as described in claim 1, wherein the input data is processed by one or more machine learning models to generate the plurality of feature vectors, and wherein the corresponding entities represented by the corresponding slot vectors include one or more of the following: objects, surfaces, backgrounds, waveform patterns, or one or more words.
12. The computer-implemented method of claim 1, wherein each respective one of the plurality of feature vectors comprises a position embedding indicating a portion of the input data represented by the respective feature vector.
13. A computer-implemented method as described in claim 1, wherein the neural network storage unit includes at least one of the following items: (i) a gated recurrent unit (GRU) or (ii) a long short-term memory (LSTM) neural network, and wherein one or more weights of the neural network storage unit are learned during training.
14. The computer-implemented method of claim 1 , wherein updating, by the neural network storage unit, the plurality of slot vectors based on the update matrix comprises: Processing the update matrix via the neural network storage unit; and The plurality of slot vectors are updated via a feed-forward artificial neural network connected to an output of the neural network storage unit.
15. The computer-implemented method of claim 1, further comprising: A supervised learning task is performed by one or more machine learning models based on the updated plurality of slot vectors, wherein the one or more machine learning models are jointly trained with one or more of the key function, the query function, the value function, or the neural network storage unit to perform the supervised learning task.
16. The computer-implemented method of claim 1, further comprising: An unsupervised learning task is performed by one or more machine learning models based on the updated plurality of slot vectors, wherein the one or more machine learning models are jointly trained with one or more of the key function, the query function, the value function, or the neural network storage unit to perform the unsupervised learning task.
17. The computer-implemented method of claim 1 , wherein initializing the plurality of slot vectors comprises: The plurality of slot vectors are initialized based on one or more of: (i) values selected from a normal distribution, or (ii) values of one or more previous slot vectors determined for previous input data processed prior to the input data, wherein initializing the plurality of slot vectors based on the values of the one or more previous slot vectors enables the plurality of slot vectors to track entities across continuous input data.
18. The computer-implemented method of claim 1, wherein: When the number of slot vectors in the plurality of slot vectors exceeds the number of entities contained in the input data, the values of one or more slot vectors in the plurality of slot vectors are configured to indicate that the one or more slot vectors are not used, and when the number of entities contained in the input data exceeds the number of slot vectors in the plurality of slot vectors, at least one slot vector in the plurality of slot vectors is configured to represent a plurality of corresponding entities contained in the input data.
19. A computer-implemented system comprising: processor; as well as A non-transitory computer-readable storage medium having instructions stored thereon, which, when executed by the processor, cause the processor to perform operations, the operations comprising: Receiving a plurality of feature vectors, the plurality of feature vectors comprising N feature vectors, wherein each feature vector comprises a distributed representation of input data, wherein the input data comprises one or more of the following: image data, point cloud data, audio data, or text data; Initializing a plurality of slot vectors represented by a neural network storage unit, the plurality of slot vectors comprising K slot vectors, wherein each corresponding slot vector in the plurality of slot vectors is configured to represent a corresponding entity contained in the input data; determining an attention matrix based on a product of (i) the plurality of feature vectors transformed by the key function and (ii) the plurality of slot vectors transformed by the query function, wherein the attention matrix comprises N vectors corresponding to a first dimension of the attention matrix, wherein each respective vector of the N vectors comprises K values corresponding to a second dimension of the attention matrix, and wherein each respective value of the K values of each respective vector of the N vectors of the attention matrix is normalized relative to the K values of the respective vector; determining an update matrix based on (i) the plurality of eigenvectors transformed by the value function and (ii) the attention matrix; and The plurality of slot vectors are updated based on the update matrix by the neural network storage unit.
20. A non-transitory computer-readable storage medium having instructions stored thereon, which, when executed by a computing system, cause the computing system to perform operations, the operations comprising: Receiving a plurality of feature vectors, the plurality of feature vectors comprising N feature vectors, wherein each feature vector comprises a distributed representation of input data, wherein the input data comprises one or more of the following: image data, point cloud data, audio data, or text data; Initializing a plurality of slot vectors represented by a neural network storage unit, the plurality of slot vectors comprising K slot vectors, wherein each corresponding slot vector in the plurality of slot vectors is configured to represent a corresponding entity contained in the input data; determining an attention matrix based on a product of (i) the plurality of feature vectors transformed by the key function and (ii) the plurality of slot vectors transformed by the query function, wherein the attention matrix comprises N vectors corresponding to a first dimension of the attention matrix, wherein each respective vector of the N vectors comprises K values corresponding to a second dimension of the attention matrix, and wherein each respective value of the K values of each respective vector of the N vectors of the attention matrix is normalized relative to the K values of the respective vector; determining an update matrix based on (i) the plurality of eigenvectors transformed by the value function and (ii) the attention matrix; and The plurality of slot vectors are updated based on the update matrix by the neural network storage unit.
