Embodiments generally relate to the use of convolutional kernels in artificial intelligence (AI) technology. More particularly, embodiments relate to multi-scale convolutional kernels for adaptive grids.
Three-dimensional (3D) reconstruction tasks may involve fusing data of multiple scales and/or resolutions (e.g., data organized as octrees or quadtrees). The octrees and/or quadtrees may be used to generate adaptive grids, which contain data at multiple resolutions. The adaptive grids typically cannot be processed with standard convolutional neural networks. As a result, sub-optimal performance may be experienced.
So that the manner in which the features of the present embodiments can be understood in detail, a more particular description of the embodiments may be had by reference to embodiments in the following detailed description, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments and are therefore not to be considered limiting of its scope.
Technology described herein provides for specialized convolutional kernels that efficiently process multi-scale volumetric data stored in adaptive grids with (convolutional neural networks) CNNs. The technology described herein also provides for multi-scale convolutional kernels that span multiple resolution levels, which enables convolutions to be adapted to the discretization used in adaptive grids.
Adaptive data representations may be used to increase computational efficiency. Implementation of embodiments in software (and hardware) enables direct processing of these data representations with convolutional neural networks. This approach adds value by expanding the feature set of artificial intelligence (AI) accelerators and can also be used to postprocess data in 3D sensing devices (e.g., reconstruct surfaces from point cloud scans).
Adaptive Grid Solvers: Simulation software packages such as, for example, ANSYS or COMSOL may be used to solve partial differential equations (PDEs) on the adaptive grid 22. Adaptive grid solvers may use discretization techniques such as a Finite Element Method to discretize the domain. The application of traditional solver packages is narrow and tied to solving handcrafted PDEs. If the problem cannot be cast as the solution of a PDE, these solvers cannot be applied. Thus, these packages may be unsuited for learning solutions from data. Technology described herein can be used to train networks that learn to process the data from examples.
Octnet convolutions: In 3D deep learning, researchers have made use of adaptive data structures such as octrees to improve runtime efficiency. Since octree information is often sparsely distributed, large regions with no information may be collapsed.
Existing octnet convolution solutions may map standard convolutional kernels to octrees. These kernels cannot be trained to capture relations between different resolutions within the same adaptive grid 22. Not being able to learn this relation may lead to incorrect interpretations of the input data.
Physics Informed Neural Networks (PINNs): Recent work has explored neural networks to implement shape functions used with the Finite Element Method. These techniques may be used for discretizing the adaptive grid 32, but are also rather specialized to use cases in physics such as traditional simulation software packages. PINNs have a focus on solving PDEs efficiently by learning from data. Technology described herein focuses on applying convolutional neural networks (CNNs) to the adaptive grid 32 and is not limited to PDEs. For instance, embodiments might be used to automate semantic segmentation of sparse volumes or point clouds.
Unlike regular grids, the adaptive grid 46 cannot be processed with standard convolutional neural networks as kernels do not adjust to the grid structure. By contrast, the convolutions stage 48 generates a result 50 that adjusts to the structure of the adaptive grid 46. Accordingly, the signed distance field 54 obtained from a distance field decode and contouring stage 52 is enhanced relative to conventional approaches.
Formally the convolution may be defined as
Where f is the function defined by the adaptive grid, g is the multi-scale convolutional kernel, i,j are indices into the grid f, I is a function that computes the index of the kernel element to be used for the two neighboring cells i and j, and Nj is the list of face-adjacent neighbors of cell j.
Turning now to
In both examples, I maps to a subset of the kernel elements and the number of active kernel elements depends on the number of neighbors i. I uses the relative position and size of the cells i and j to map to distinct entries of g. This relative positioning can be observed in the second mapping 104 for the neighbors i2, i3, i4 that are of a different size than j and map to distinct entries.
A condition for computing the mapping I may be the generation of unique keys for each possible spatial configuration. Using the center voxel/cell of the convolution as an origin, the keys can be computed as the relative position of adjacent voxels.
For example,
In addition to 3D surface reconstruction, embodiments can be useful in other applications where adaptive grids occur. Possible use cases in 2D can be CNNs for post processing images generated with variable rate shading (VRS) or foveated rendering.
For example, computer program code to carry out operations shown in the method 120 can be written in any combination of one or more programming languages, including an object oriented programming language such as JAVA, SMALLTALK, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. Additionally, logic instructions might include assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, state-setting data, configuration data for integrated circuitry, state information that personalizes electronic circuitry and/or other structural components that are native to hardware (e.g., host processor, central processing unit/CPU, microcontroller, etc.).
Illustrated processing block 122 provides for generating an adaptive grid based on one or more point clouds, wherein the adaptive grid contains data at multiple resolutions. Block 124 selects elements of a multi-scale kernel according to the multiple resolutions in the adaptive grid. Additionally, block 126 conducts convolutions on the adaptive grid with the selected elements of the multi-scale kernel. In an embodiment, block 126 includes using Equation (1), already discussed. Illustrated block 128 provides for generating a signed distance field based on the convolutions. In one example, the signed distance field describes a surface of a scanned object. The method 120 therefore enhances performance at least to the extent that selecting elements of a multi-scale kernel according to multiple resolutions in an adaptive grid enables the convolutions to learn from the relative positions and/or relative sizes of voxels/cells in the adaptive grid.
Illustrated processing block 132 provides for determining relative positions of a center cell in an adaptive grid and face-adjacent neighbor cells of the center cell in the adaptive grid, wherein the center cell corresponds to a center element (e.g., j in
Turning now to
In the illustrated example, the system 280 includes a host processor 282 (e.g., CPU) having an integrated memory controller (IMC) 284 that is coupled to a system memory 286 (e.g., dual inline memory module/DIM M). In an embodiment, an IO module 288 is coupled to the host processor 282. The illustrated IO module 288 communicates with, for example, a display 290 (e.g., touch screen, liquid crystal display/LCD, light emitting diode/LED display), and a network controller 292 (e.g., wired and/or wireless). The host processor 282 may be combined with the 10 module 288, a graphics processor 294, and an AI accelerator 296 into a system on chip (SoC) 298.
In an embodiment, the host processor 282 executes a set of program instructions 300 retrieved from mass storage 302 and/or the system memory 286 to perform one or more aspects of the method 120 (
The logic 354 may be implemented at least partly in configurable or fixed-functionality hardware. In one example, the logic 354 includes transistor channel regions that are positioned (e.g., embedded) within the substrate(s) 352. Thus, the interface between the logic 354 and the substrate(s) 352 may not be an abrupt junction. The logic 354 may also be considered to include an epitaxial layer that is grown on an initial wafer of the substrate(s) 352.
The processor core 400 is shown including execution logic 450 having a set of execution units 455-1 through 455-N. Some embodiments may include a number of execution units dedicated to specific functions or sets of functions. Other embodiments may include only one execution unit or one execution unit that can perform a particular function. The illustrated execution logic 450 performs the operations specified by code instructions.
After completion of execution of the operations specified by the code instructions, back end logic 460 retires the instructions of the code 413. In one embodiment, the processor core 400 allows out of order execution but requires in order retirement of instructions. Retirement logic 465 may take a variety of forms as known to those of skill in the art (e.g., re-order buffers or the like). In this manner, the processor core 400 is transformed during execution of the code 413, at least in terms of the output generated by the decoder, the hardware registers and tables utilized by the register renaming logic 425, and any registers (not shown) modified by the execution logic 450.
Although not illustrated in
Referring now to
The system 1000 is illustrated as a point-to-point interconnect system, wherein the first processing element 1070 and the second processing element 1080 are coupled via a point-to-point interconnect 1050. It should be understood that any or all of the interconnects illustrated in
As shown in
Each processing element 1070, 1080 may include at least one shared cache 1896a, 1896b. The shared cache 1896a, 1896b may store data (e.g., instructions) that are utilized by one or more components of the processor, such as the cores 1074a, 1074b and 1084a, 1084b, respectively. For example, the shared cache 1896a, 1896b may locally cache data stored in a memory 1032, 1034 for faster access by components of the processor. In one or more embodiments, the shared cache 1896a, 1896b may include one or more mid-level caches, such as level 2 (L2), level 3 (L3), level 4 (L4), or other levels of cache, a last level cache (LLC), and/or combinations thereof.
While shown with only two processing elements 1070, 1080, it is to be understood that the scope of the embodiments are not so limited. In other embodiments, one or more additional processing elements may be present in a given processor. Alternatively, one or more of processing elements 1070, 1080 may be an element other than a processor, such as an accelerator or a field programmable gate array. For example, additional processing element(s) may include additional processors(s) that are the same as a first processor 1070, additional processor(s) that are heterogeneous or asymmetric to processor a first processor 1070, accelerators (such as, e.g., graphics accelerators or digital signal processing (DSP) units), field programmable gate arrays, or any other processing element. There can be a variety of differences between the processing elements 1070, 1080 in terms of a spectrum of metrics of merit including architectural, micro architectural, thermal, power consumption characteristics, and the like. These differences may effectively manifest themselves as asymmetry and heterogeneity amongst the processing elements 1070, 1080. For at least one embodiment, the various processing elements 1070, 1080 may reside in the same die package.
The first processing element 1070 may further include memory controller logic (MC) 1072 and point-to-point (P-P) interfaces 1076 and 1078. Similarly, the second processing element 1080 may include a MC 1082 and P-P interfaces 1086 and 1088. As shown in
The first processing element 1070 and the second processing element 1080 may be coupled to an I/O subsystem 1090 via P-P interconnects 10761086, respectively. As shown in
In turn, I/O subsystem 1090 may be coupled to a first bus 1016 via an interface 1096. In one embodiment, the first bus 1016 may be a Peripheral Component Interconnect (PCI) bus, or a bus such as a PCI Express bus or another third generation I/O interconnect bus, although the scope of the embodiments are not so limited.
As shown in
Note that other embodiments are contemplated. For example, instead of the point-to-point architecture of
Example 1 includes a performance-enhanced computing system comprising a network controller, a processor coupled to the network controller, and a memory coupled to the processor, the memory including a set of instructions, which when executed by the processor, cause the processor to select elements of a multi-scale kernel according to resolutions in an adaptive grid, conduct convolutions on the adaptive grid with the selected elements of the multi-scale kernel, and generate a signed distance field based on the convolutions.
Example 2 includes the computing system of Example 1, wherein to select the elements of the multi-scale kernel, the instructions, when executed, further cause the processor to determine relative positions of a center cell in the adaptive grid and face-adjacent neighbor cells of the center cell in the adaptive grid, wherein the center cell is to correspond to a center element in the multi-scale kernel, and wherein two or more of the relative positions are to be different from one another, determine relative sizes of the center cell and the face-adjacent neighbor cells, and map the center cell and the face-adjacent neighbor cells to the elements of the multi-scale kernel based on the relative positions and the relative sizes.
Example 3 includes the computing system of Example 2, wherein the center cell and the face-adjacent neighbor cells are mapped to the elements of the multi-scale kernel via a hash table, and wherein the hash table is to include a plurality of spatial configuration keys.
Example 4 includes the computing system of Example 2, wherein two or more of the relative sizes are to be different from one another.
Example 5 includes the computing system of Example 2, wherein the relative sizes are to be equal to one another.
Example 6 includes the computing system of any one of Examples 1 to 5, wherein the instructions, when executed, further cause the computing system to generate the adaptive grid based on one or more point clouds, wherein the adaptive grid is to contain data at multiple resolutions, and wherein the signed distance field is to describe a surface of a scanned object.
Example 7 includes at least one computer readable storage medium comprising a set of instructions, which when executed by a computing system, cause the computing system to select elements of a multi-scale kernel according to resolutions in an adaptive grid, conduct convolutions on the adaptive grid with the selected elements of the multi-scale kernel, and generate a signed distance field based on the convolutions.
Example 8 includes the at least one computer readable storage medium of Example 7, wherein to select the elements of the multi-scale kernel, the instructions, when executed, further cause the computing system to determine relative positions of a center cell in the adaptive grid and face-adjacent neighbor cells of the center cell in the adaptive grid, wherein the center cell is to correspond to a center element in the multi-scale kernel, and wherein two or more of the relative positions are to be different from one another, determine relative sizes of the center cell and the face-adjacent neighbor cells, and map the center cell and the face-adjacent neighbor cells to the elements of the multi-scale kernel based on the relative positions and the relative sizes.
Example 9 includes the at least one computer readable storage medium of Example 8, wherein the center cell and the face-adjacent neighbor cells are mapped to the elements of the multi-scale kernel via a hash table, and wherein the hash table is to include a plurality of spatial configuration keys.
Example 10 includes the at least one computer readable storage medium of Example 8, wherein two or more of the relative sizes are to be different from one another.
Example 11 includes the at least one computer readable storage medium of Example 8, wherein the relative sizes are to be equal to one another.
Example 12 includes the at least one computer readable storage medium of any one of Examples 7 to 11, wherein the instructions, when executed, further cause the computing system to generate the adaptive grid based on one or more point clouds, wherein the adaptive grid is to contain data at multiple resolutions, and wherein the signed distance field is to describe a surface of a scanned object.
Example 13 includes a semiconductor apparatus comprising one or more substrates, and logic coupled to the one or more substrates, wherein the logic is implemented at least partly in one or more of configurable or fixed-functionality hardware, the logic to select elements of a multi-scale kernel according to resolutions in an adaptive grid, conduct convolutions on the adaptive grid with the selected elements of the multi-scale kernel, and generate a signed distance field based on the convolutions.
Example 14 includes the semiconductor apparatus of Example 13, wherein to select the elements of the multi-scale kernel, the logic is to determine relative positions of a center cell in the adaptive grid and face-adjacent neighbor cells of the center cell in the adaptive grid, wherein the center cell is to correspond to a center element in the multi-scale kernel, and wherein two or more of the relative positions are to be different from one another, determine relative sizes of the center cell and the face-adjacent neighbor cells, and map the center cell and the face-adjacent neighbor cells to the elements of the multi-scale kernel based on the relative positions and the relative sizes.
Example 15 includes the semiconductor apparatus of Example 14, wherein the center cell and the face-adjacent neighbor cells are mapped to the elements of the multi-scale kernel via a hash table, and wherein the hash table is to include a plurality of spatial configuration keys.
Example 16 includes the semiconductor apparatus of Example 14, wherein two or more of the relative sizes are to be different from one another.
Example 17 includes the semiconductor apparatus of Example 14, wherein the relative sizes are to be equal to one another.
Example 18 includes the semiconductor apparatus of any one of Examples 13 to 17, wherein the logic is to generate the adaptive grid based on one or more point clouds, wherein the adaptive grid is to contain data at multiple resolutions, and wherein the signed distance field is to describe a surface of a scanned object.
Example 19 includes the semiconductor apparatus of any one of Examples 13 to 18, wherein the logic coupled to the one or more substrates includes transistor channel regions that are positioned within the one or more substrates.
Example 20 includes a method of operating a performance-enhanced computing system, the method comprising selecting elements of a multi-scale kernel according to resolutions in an adaptive grid, conducting convolutions on the adaptive grid with the selected elements of the multi-scale kernel, and generating a signed distance field based on the convolutions.
Example 21 includes the method of Example 20, wherein selecting the elements of the multi-scale kernel includes determining relative positions of a center cell in the adaptive grid and face-adjacent neighbor cells of the center cell in the adaptive grid, wherein the center cell corresponds to a center element in the multi-scale kernel, and wherein two or more of the relative positions are different from one another, determining relative sizes of the center cell and the face-adjacent neighbor cells, and mapping the center cell and the face-adjacent neighbor cells to the elements of the multi-scale kernel based on the relative positions and the relative sizes.
Example 22 includes the method of Example 21, wherein the center cell and the face-adjacent neighbor cells are mapped to the elements of the multi-scale kernel via a hash table, and wherein the hash table includes a plurality of spatial configuration keys.
Example 23 includes the method of Example 21, wherein two or more of the relative sizes are different from one another.
Example 24 includes the method of Example 21, wherein the relative sizes are equal to one another.
Example 25 includes the method of any one of Examples 20 to 24, further including generating the adaptive grid based on one or more point clouds, and wherein the adaptive grid contains data at multiple resolutions, and wherein the signed distance field describes a surface of a scanned object.
Example 26 includes an apparatus comprising means for performing the method of any one of Examples 20 to 25.
Embodiments are applicable for use with all types of semiconductor integrated circuit (“IC”) chips. Examples of these IC chips include but are not limited to processors, controllers, chipset components, programmable logic arrays (PLAs), memory chips, network chips, systems on chip (SoCs), SSD/NAND controller ASICs, and the like. In addition, in some of the drawings, signal conductor lines are represented with lines. Some may be different, to indicate more constituent signal paths, have a number label, to indicate a number of constituent signal paths, and/or have arrows at one or more ends, to indicate primary information flow direction. This, however, should not be construed in a limiting manner. Rather, such added detail may be used in connection with one or more exemplary embodiments to facilitate easier understanding of a circuit. Any represented signal lines, whether or not having additional information, may actually comprise one or more signals that may travel in multiple directions and may be implemented with any suitable type of signal scheme, e.g., digital or analog lines implemented with differential pairs, optical fiber lines, and/or single-ended lines.
Example sizes/models/values/ranges may have been given, although embodiments are not limited to the same. As manufacturing techniques (e.g., photolithography) mature over time, it is expected that devices of smaller size could be manufactured. In addition, well known power/ground connections to IC chips and other components may or may not be shown within the figures, for simplicity of illustration and discussion, and so as not to obscure certain aspects of the embodiments. Further, arrangements may be shown in block diagram form in order to avoid obscuring embodiments, and also in view of the fact that specifics with respect to implementation of such block diagram arrangements are highly dependent upon the computing system within which the embodiment is to be implemented, i.e., such specifics should be well within purview of one skilled in the art. Where specific details (e.g., circuits) are set forth in order to describe example embodiments, it should be apparent to one skilled in the art that embodiments can be practiced without, or with variation of, these specific details. The description is thus to be regarded as illustrative instead of limiting.
The term “coupled” may be used herein to refer to any type of relationship, direct or indirect, between the components in question, and may apply to electrical, mechanical, fluid, optical, electromagnetic, electromechanical or other connections. In addition, the terms “first”, “second”, etc. may be used herein only to facilitate discussion, and carry no particular temporal or chronological significance unless otherwise indicated.
As used in this application and in the claims, a list of items joined by the term “one or more of” may mean any combination of the listed terms. For example, the phrases “one or more of A, B or C” may mean A; B; C; A and B; A and C; B and C; or A, B and C.
Those skilled in the art will appreciate from the foregoing description that the broad techniques of the embodiments can be implemented in a variety of forms. Therefore, while the embodiments have been described in connection with particular examples thereof, the true scope of the embodiments should not be so limited since other modifications will become apparent to the skilled practitioner upon a study of the drawings, specification, and following claims.
The present application claims the benefit of priority to U.S. Provisional Patent Application No. 62/233,042 filed Aug. 13, 2021.
Number | Date | Country | |
---|---|---|---|
63233042 | Aug 2021 | US |