Various deep learning architectures such as Deep Neural Networks (DDN) have been applied to image, voice and text detection. DDN models have the ability to extract high level embedding vectors from low level features. However, DNN models use many more parameters and have a high computation cost which limits their deployment in many scenarios. Thus, serving time becomes a bottleneck due to expensive runtime computation of multiple layers of matrices.
Tree or forest-based models operate by constructing a multitude of decision trees. Forest-based models have a low servicing cost but have high dependencies on carefully engineered features. What is needed is a model that has the benefits of the DDN model but has the inexpensive runtime of the forest-based models. In particular, a deep embedding forest model combines the high dimensional (hundreds of thousands to millions) and the heterogeneous low-level features to the lower dimensional (thousands) vectors of the DDN models and the low serving cost of the forest-based models.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
According to one aspect disclosed herein, a method is presented which includes, in response to received input, accessing a DNN model via a model manager wherein the DNN model includes an embedding layer, stacking layer, deep layers and a scoring layer. The method also includes training the DNN model, initiated by the model manager, to determine parameters of the embedding layer, stacking layer, the deep layers and the scoring layer. After training the DNN model, the parameters of the deep layers and the scoring layer of the DNN model may be discarded. The method then includes initializing parameters of an embedding layer of a Deep Embedding Forest (DEF) model with the remaining parameters extracted from the deep layers of the trained DNN model and initializing parameters of a stacking layer of the DEF model with the remaining parameters extracted from the stacking layer of the trained DNN model. The method may also include replacing the deep layers and the scoring layer of the DNN model with a forest layer to thereby define the DEF model, initializing the forest layer of the DEF model utilizing a gradient boosting machine, such as XEBoost, and jointly optimizing the parameters of both the embedding layer and the forest layer of the DEF model after fully initializing the DEF model as a result of initializing the embedding and stacking layers of the DEF model and initializing the forest layer of the DEF model utilizing the gradient boosting machine.
According to another aspect disclosed herein, a system is presented that includes at least one processor and an operating environment executing using the at least one processor. The system also includes a model manager configured to perform actions comprising accessing a DNN model comprising an embedding layer, stacking layer, deep layers and a scoring layer, training the DNN model to determine parameters of the embedding layer, stacking layer, the deep layers and the scoring layer, and after training the DNN model, discarding the parameters of the deep layers and the scoring layer of the DNN model. The model manager is further configured to perform the actions of initializing parameters of an embedding layer and a stacking layer of a DEF model with the remaining parameters extracted from the embedding and stacking layers of the trained DNN model, applying the initialized parameters of the embedding layer of the DEF model to features of the DEF model to generate a stacking vector, providing the stacking vector to a forest layer of the DEF model, and training only the forest layer of the DEF model, thereby using less memory and computation power.
According to yet another aspect disclosed herein, a computer-readable storage medium including instructions is presented. The instructions executed by a processor include accessing a DNN model comprising an embedding layer, stacking layer, deep layers and a scoring layer. The instructions also include training the DNN model to determine parameters of the embedding layer, stacking layer, the deep layers and the scoring layer. After training the DNN model, the parameters of the deep layers and the scoring layer of the DNN model are discarded. The instructions further include initializing parameters of an embedding layer and a stacking layer of a DEF model with the remaining parameters extracted from the embedding and stacking layers of the trained DNN model.
Examples may be implemented as a computer process, a computing system, or as a computer program product for one or more computers. According to an aspect, the computer program product is a server of a computer system having a computer program comprising instructions for executing a computer process.
The details of one or more aspects are set forth in the accompanying drawings and description below. Other features and advantages will be apparent from a reading of the following detailed description and a review of the associated drawings. It is to be understood that the following detailed description is explanatory only and is not restrictive of the claims.
The following detailed description refers to the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the following description refers to the same or similar elements. While examples may be described, modifications, adaptations, and other implementations are possible. For example, substitutions, additions, or modifications may be made to the elements illustrated in the drawings, and the methods described herein may be modified by substituting, reordering, or adding stages to the disclosed methods. Accordingly, the following detailed description is not limiting, but instead, the proper scope is defined by the appended claims. Examples may take the form of a hardware implementation, or an entirely software implementation, or an implementation combining software and hardware aspects. The following detailed description is, therefore, not to be taken in a limiting sense.
Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
As illustrated in
The DEF model 300 also includes an embedding layer 312 (Embedding 1, . . . N) which maps the low level features to a different feature space. The embedding layer 312, as a single layer of neural network, has the general form of:
{tilde over (y)}
j
=g(Wjxj+bj), (1)
where j is the index to the individual features xjεRnj, Wj is an mj×nj matrix, bεRmj, is the vector of the bias terms, {tilde over (y)}j is the embedding vector, and g(•) is a non-linear activation function such as ReLU, sigmoid, or tan h. When mj<nj, embedding is used to reduce the dimensionality of the input feature.
The stacking layer 314 concatenates the embedding features into one vector as the following:
{tilde over (y)}=[{tilde over (y)}
0
,{tilde over (y)}
1
, . . . ,{tilde over (y)}
K], (2)
where K is the number of individual features. In one or more embodiments, the features with low dimensionality are stacked without embedding. For example, in
The stacking vector is then input to the forest layer 320 which is represented as (Ψ, θ, π), where Ψ defines the number of tress in the forest and corresponding structure, θ is the parameter set of the routing functions on the decision nodes, and π is the parameter set of the distribution functions on leaf nodes.
The DEF model 300 of
Training the DEF model 300 requires optimization of the objective function with respect to {Wj}, {bj}, Ψ, θ and π. Ideally, a joint optimization that solves these parameters is preferred. Specifically, the search of the best structure and the corresponding decisions and weight parameters in the forest layer usually relies on approaches which are not compatible with the gradient-based search for the neural-based embedding layers.
Thus, the DEF model 300 receives initialization of {Wj} and {bj} from a DNN model such as a deep crossing model. Preferably, the DNN model for initializing the DEF model 300 is a deep crossing model wherein the deep layers are multiple residual units.
The deep crossing model 400 also includes an embedding layer 412 (Embedding 1, . . . N) which maps the low level features to a different feature space. The embedding layer 412, is also a single layer of neural network, and the stacking layer 414 concatenates the embedding features into one vector as described above in regard to the DEF model 300 of
The deep crossing model 400 of
Thus, the objective 440 is optimized via a backpropagation method where the various parameters within the embedding layer 410, the residual units layer 420, and the scoring layer 430 are updated thereby tuning the deep crossing model of
The embedding layers 312 of the DEF model 300 establish a forward function that maps the raw features into the stacking vector of the stacking layer 314. The stacking vector is:
{tilde over (y)}
i
=g({xj}i;{W0j},{b0j}), (3)
where i is the index to the training samples. The initial values of the embedding parameters are denoted as {W0j} and {b0j}.
Initialization of the forest layer 320 to build the DEF model 300 may also then include training a gradient boosting machine such as an XGBoost model which is a scalable tree boosting system which is itself known to those with skill in this art. Training the XGBoost model uses the mapped sample and target pairs {(ti, {tilde over (y)}i)}, where ti is the target of the ith training sample. Utilizing XGBoost to fully or further initialize the DEF model 300 results in superior performance both in accuracy and runtime speed. The output of utilizing XGBoost as part of the initialization process is the initial values of the parameters of the forest layer 320 including Ψ0, θ0, π0. In other words, utilizing XGBoost determines the initial parameters of the forest layer 320 thereby commencing training of the forest layer 320. Upon full initialization of the DEF model 300, joint optimization may then be used to refine the fully initialized parameters of the embedding layers 312 relative the fully initialized parameters of the forest layer 320.
Fuzzification of the decisions at the internal nodes of the forest layer 320 may occur rather than making binary decisions. A fuzzy split function is defined as:
μr{L,R}({tilde over (y)})=1/(1+e−(v{tilde over (y)}-ur)), (4)
where vr is the weight vector, ur is a scalar, and {tilde over (y)}≡{tilde over (y)}j is the stacking vector of the jth training sample. The index j is dropped for simplicity and the functions μrL and μrR are defined for the left child and the right child (if exists), respectively. The prediction of the target is:
lε
μl({tilde over (y)})πl, (5)
where l is a leaf node in the set of all leaf nodes , μl(•) is the probability of {tilde over (y)} landing in l, and πl is the corresponding prediction. Note that μl(•) is a function of all {μr{L,R}} along the path from the root l.
A direct benefit of fuzzification is that a continuous loss function Loss ({tj,
DEF model 300 also may include partial fuzzification that separates the routing function with the prediction function. It keeps the structure Ψ0 and the binary routing functions θ0 resulting from the XGBoost-based initialization. The partial fuzzification is only for the prediction function on each node defined as:
μr{L,R}({tilde over (y)}r)=1/(1+e−(wr{tilde over (y)}r-ur)), (6)
where wr and ur are prediction parameters on the rth node. As compared with the split function in equation 4, wr is a scalar instead of a vector. This is because each node is dedicated to only one dimension of the stacking feature, which is denoted as {tilde over (y)}r in equation 6. More specifically, {tilde over (y)}r is the feature value of the dimension selected by the rth node based on Ψ0 and θ0. The prediction is then given by:
lΠrεΩμr{L,R}({tilde over (y)}r), (7)
where Ω is the routing path for a stacking vector {tilde over (y)} that lands on the lth leaf node.
It can be seen from equations 6 and 7 that partial fuzzification depends on only one dimensions and does not require full traversal which reduces runtime speed significantly. Partial fuzzification is compatible with gradient-based optimization. Like with full fuzzification, the loss function Loss ({tj,
Experimental results for clicking on an advertisement include training data of 3.64 million samples while the test data had 3.59 million samples. Query strings are converted into 50 thousand tri-letter grams and keywords and title strings are converted as well. The raw input feature has approximately 150 thousand total dimensions and is very sparse. Both the deep crossing model and XGBoost used the same log loss function as the objective. The embedding vector was 128 dimensional for each tri-letter gram. This lead to a stacking vector of 384 dimensions. Deep crossing used two residual units each with a hidden layer of 512 neurons. The DEF model 300 was initialized by the deep crossing model which converged after 8 epochs and produced a log loss of 0.3676.
Next, the stacking vectors were generated based on forward computation of the deep crossing model. The stacking vectors were used as the input to the XGBoost model. XGBoost produced a log loss of 0.3665 after 1000 interactions with a maximum depth of 6.
The prediction time per sample for the full deep crossing model versus the DEF model 300 is 1.287 ms and 0.171 ms, respectively. Note that the speedup was achieved with the DEF model 300 performing slightly better on terms of log loss. If the goal is to achieve on-par performance in practice, the number of iterations (trees) can be significantly reduced to further reduce the runtime latency. These results did not occur as a result of utilizing joint optimization.
When designed and implemented properly, the DEF model 300 provides at least two advantages as a result of its architecture. The DEF model 300 minimizes manual feature engineering. It is a challenge for tree/forest-based models to process low level features exceeding tens of thousands of dimensions. The embedding layers 312 can comfortably operate on dimensions 10 or 100 times higher and automatically generate high level embedding features to the size manageable by the tree/forest-based models. For example, deep crossing model reduces high dimensional features in the range of hundreds of thousands to millions to lower dimensional vectors of less than 10 thousand for initializing the forest layer.
The DEF model 300 also minimizes runtime latency. Based on the architecture of
The prediction time T2 is a function of ntdtnf, where nt is the number of trees, dt is the average depth of trees in the forest, and nf is the total number of features dimensions the decision or routing function depend on at each internal (or non-leaf) node. DEF model 300 uses decision nodes that rely on only one feature dimension to ensure serving speed. T2 is then proportional to ntdt, which is fast and independent to the dimensions of the stacker vector. This is cheaper than a typical DNN model with multiple layers of neurons.
Embodiments, for example, are described above with reference to block diagrams and/or operational illustrations of methods, systems, and computer program products according to embodiments. The functions/acts noted in the blocks may occur out of the order as shown in any flowchart or described herein with reference to the Figures. For example, two steps or processes shown or described in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The touch screen input device 615 receives user input to initiate a search query via the application 610 in order to provide query results. Model manager 626 accesses the DEF model 630 for use in predicting which query results are most likely to be selected by the user. The query results via the model manager 626 are used in training the DNN model 630 to make the predictions 650. For example, evaluation of input received in application 610 (e.g. received from touch screen input device 615) occurs using DEF model 630 via model manager 626. The DEF model 630 is performed until the objective of the DEF model 630 is reached. In order to facilitate communication with the model manager 626, one or more callback routines, may be implemented.
According to one embodiment, application 610 receives input from a touch-sensitive input device 615 and/or other input devices. For example, voice input, keyboard input (e.g. a physical keyboard and/or SIP), video based input, and the like. Application program 610 may also provide multimodal output (e.g., for purposes of speech, graphics, vibrations, sounds, . . . ). Model manager 626 may provide information to/from application 610 in response to user input (e.g. speech/gesture). For example, a user may initiate or perform a search query using the application 610 or, alternatively, the application 610 may be an image, text or speech related application.
As illustrated, service 710 is a multi-tenant service that provides resources 720 and services to any number of tenants (e.g. Tenants 1-N). Multi-tenant service 710 is a cloud based service that provides resources/services 720 to tenants subscribed to the service and maintains each tenant's data separately and protected from other tenant data. System 700 as illustrated comprises a touch screen input device 714 (e.g. a slate/tablet device) and smart phone 716 that detects when a touch input has been received (e.g. a finger touching or nearly touching the touch screen). Any type of touch screen may be utilized that detects a user's touch input. For example, the touch screen may include one or more layers of capacitive material that detects the touch input. Other sensors may be used in addition to or in place of the capacitive material. For example, Infrared (IR) sensors may be used. According to an embodiment, the touch screen is configured to detect objects that in contact with or above a touchable surface. Although the term “above” is used in this description, it should be understood that the orientation of the touch panel system is irrelevant. The term “above” is intended to be applicable to all such orientations. The touch screen may be configured to determine locations of where touch input is received (e.g. a starting point, intermediate points and an ending point). Actual contact between the touchable surface and the object may be detected by any suitable means, including, for example, by a vibration sensor or microphone coupled to the touch panel. A non-exhaustive list of examples for sensors to detect contact includes pressure-based mechanisms, micro-machined accelerometers, piezoelectric devices, capacitive sensors, resistive sensors, inductive sensors, laser vibrometers, and LED vibrometers.
According to an embodiment, smart phone 716, touch screen input device 714, and display device 718 are configured with multimodal applications and each include an application (730, 740, 750) that is configured to receive input such as, but not limited to, a search query or speech input.
As illustrated, touch screen input device 714, smart phone 716, and display device 718 shows exemplary displays 760/762/764 showing the use of an application using multimodal input/output. Data may be stored on a device (e.g. smart phone 716, touch screen input device 714 and/or at some other location (e.g. network data store 712). Data store 712, or some other store, may be used to store data. The applications used by the devices may be client based applications, server based applications, cloud based applications and/or some combination. According to an embodiment, display device 718 is a device such as a MICROSOFT XBOX coupled to a display.
Model manager 626 is configured to perform operations relating to a DEF model. While manager 626 is shown via service 710, the functionality of the manager may be included in other locations (e.g. on smart phone 716 and/or touch screen input device 714 and/or device 718). The DEF model may be included on smart phone 716, 714, 718.
The embodiments and functionalities described herein may operate via a multitude of computing systems including, without limitation, desktop computer systems, wired and wireless computing systems, mobile computing systems (e.g., mobile telephones, netbooks, tablet or slate type computers, notebook computers, and laptop computers), handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, and mainframe computers.
In addition, the embodiments and functionalities described herein may operate over distributed systems (e.g., cloud-based computing systems), where application functionality, memory, data storage and retrieval and various processing functions may be operated remotely from each other over a distributed computing network, such as the Internet or an intranet. User interfaces and information of various types may be displayed via on-board computing device displays or via remote display units associated with one or more computing devices. For example user interfaces and information of various types may be displayed and interacted with on a wall surface onto which user interfaces and information of various types are projected. Interaction with the multitude of computing systems with which embodiments of the invention may be practiced include, keystroke entry, touch screen entry, voice or other audio entry, gesture entry where an associated computing device is equipped with detection (e.g., camera) functionality for capturing and interpreting user gestures for controlling the functionality of the computing device, and the like.
As stated above, a number of program modules and data files may be stored in the system memory 804. While executing on the processing unit 802, the program modules 808 (e.g., the model manager 626) may perform processes including, but not limited to, one or more of the stages of the methods and processes illustrated in the figures. Other program modules that may be used in accordance with embodiments of the present invention may include electronic mail and contacts applications, word processing applications, spreadsheet applications, database applications, slide presentation applications, drawing or computer-aided application programs, etc.
Furthermore, embodiments of the invention may be practiced in an electrical circuit comprising discrete electronic elements, packaged or integrated electronic chips containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, embodiments of the invention may be practiced via a system-on-a-chip (SOC) where each or many of the components illustrated in
The computing device 800 may also have one or more input device(s) 830 such as a keyboard, a mouse, a pen, a sound input device, a touch input device, etc. The output device(s) 832 such as a display, speakers, a printer, etc. may also be included. The aforementioned devices are examples and others may be used. The computing device 800 may include one or more communication connections 834 allowing communications with other computing devices 840. Examples of suitable communication connections 834 include, but are not limited to, RF transmitter, receiver, and/or transceiver circuitry; universal serial bus (USB), parallel, and/or serial ports.
The term computer readable media as used herein may include computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. The system memory 804, the removable storage device 824, and the non-removable storage device 826 are all computer storage media examples (i.e., memory storage.) Computer storage media may include RAM, ROM, electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture which can be used to store information and which can be accessed by the computing device 800. Any such computer storage media may be part of the computing device 800. Computer storage media does not include a carrier wave or other propagated or modulated data signal.
Communication media may be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” may describe a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media may include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.
One or more application programs 956 may be loaded into the memory 958 and run on or in association with the operating system 960. Examples of the application programs include phone dialer programs, e-mail programs, personal information management (PIM) programs, word processing programs, spreadsheet programs, Internet browser programs, messaging programs, and so forth. The system 950 also includes a non-volatile storage area 962 within the memory 958. The non-volatile storage area 962 may be used to store persistent information that should not be lost if the system 950 is powered down. The application programs 956 may use and store information in the non-volatile storage area 962, such as e-mail or other messages used by an e-mail application, and the like. A synchronization application (not shown) also resides on the system 950 and is programmed to interact with a corresponding synchronization application resident on a host computer to keep the information stored in the non-volatile storage area 962 synchronized with corresponding information stored at the host computer. As should be appreciated, other applications may be loaded into the memory 958 and run on the mobile computing device 900, including the model manager 626 as described herein.
The system 950 has a power supply 970, which may be implemented as one or more batteries. The power supply 970 might further include an external power source, such as an AC adapter or a powered docking cradle that supplements or recharges the batteries. The system 950 may also include a radio 972 that performs the function of transmitting and receiving radio frequency communications. The radio 972 facilitates wireless connectivity between the system 950 and the “outside world,” via a communications carrier or service provider. Transmissions to and from the radio 972 are conducted under control of the operating system 960. In other words, communications received by the radio 972 may be disseminated to the application programs 956 via the operating system 960, and vice versa.
The visual indicator 932 may be used to provide visual notifications, and/or an audio interface 974 may be used for producing audible notifications via the audio transducer 936. In the illustrated embodiment, the visual indicator 932 is a light emitting diode (LED) and the audio transducer 936 is a speaker. These devices may be directly coupled to the power supply 970 so that when activated, they remain on for a duration dictated by the notification mechanism even though the processor 980 and other components might shut down for conserving battery power. The LED may be programmed to remain on indefinitely until the user takes action to indicate the powered-on status of the device. The audio interface 1274 is used to provide audible signals to and receive audible signals from the user. For example, in addition to being coupled to the audio transducer 936, the audio interface 974 may also be coupled to a microphone to receive audible input, such as to facilitate a telephone conversation. In accordance with embodiments of the present invention, the microphone may also serve as an audio sensor to facilitate control of notifications, as will be described below. The system 950 may further include a video interface 982 that enables an operation of an on-board camera to record still images, video stream, and the like.
A mobile computing device 900 implementing the system 950 may have additional features or functionality. For example, the mobile computing device 900 may also include additional data storage devices (removable and/or non-removable) such as, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
Data/information generated or captured by the mobile computing device 900 and stored via the system 950 may be stored locally on the mobile computing device 900, as described above, or the data may be stored on any number of storage media that may be accessed by the device via the radio 972 or via a wired connection between the mobile computing device 900 and a separate computing device associated with the mobile computing device 900, for example, a server computer in a distributed computing network, such as the Internet. As should be appreciated such data/information may be accessed via the mobile computing device 900 via the radio 972 or via a distributed computing network. Similarly, such data/information may be readily transferred between computing devices for storage and use according to well-known data/information transfer and storage means, including electronic mail and collaborative data/information sharing systems.
Embodiments of the present invention, for example, are described above with reference to block diagrams and/or operational illustrations of methods, systems, and computer program products according to embodiments of the invention. The functions/acts noted in the blocks may occur out of the order as shown in any flowchart. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The description and illustration of one or more embodiments provided in this application are not intended to limit or restrict the scope of the invention as claimed in any way. The embodiments, examples, and details provided in this application are considered sufficient to convey possession and enable others to make and use the best mode of claimed invention. The claimed invention should not be construed as being limited to any embodiment, example, or detail provided in this application. Regardless of whether shown and described in combination or separately, the various features (both structural and methodological) are intended to be selectively included or omitted to produce an embodiment with a particular set of features. Having been provided with the description and illustration of the present application, one skilled in the art may envision variations, modifications, and alternate embodiments falling within the spirit of the broader aspects of the general inventive concept embodied in this application that do not depart from the broader scope of the claimed invention.