US20210103777A1 - System and method for batch-normalized recurrent highway networks - Google Patents

System and method for batch-normalized recurrent highway networks Download PDF

Info

Publication number
US20210103777A1
US20210103777A1 US17/126,745 US202017126745A US2021103777A1 US 20210103777 A1 US20210103777 A1 US 20210103777A1 US 202017126745 A US202017126745 A US 202017126745A US 2021103777 A1 US2021103777 A1 US 2021103777A1
Authority
US
United States
Prior art keywords
digital image
image input
network
highway
recurrent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
US17/126,745
Inventor
Chi Zhang
Raymond Ptucha
Alexander Loui
Carl SALVAGGIO
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kodak Alaris Inc
Original Assignee
Kodak Alaris Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kodak Alaris Inc filed Critical Kodak Alaris Inc
Priority to US17/126,745 priority Critical patent/US20210103777A1/en
Publication of US20210103777A1 publication Critical patent/US20210103777A1/en
Assigned to THE BOARD OF THE PENSION PROTECTION FUND reassignment THE BOARD OF THE PENSION PROTECTION FUND SECURITY INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: KODAK ALARIS INC.
Assigned to Kodak Alaris, Inc. reassignment Kodak Alaris, Inc. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: ZHANG, CHI, LOUI, ALEXANDER, PTUCHA, Raymond, SALVAGGIO, Carl
Pending legal-status Critical Current

Links

Images

Classifications

    • G06K9/6262
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
    • G06F18/24133Distances to prototypes
    • G06F18/24143Distances to neighbourhood prototypes, e.g. restricted Coulomb energy networks [RCEN]
    • G06K9/6256
    • G06K9/6274
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • G06N3/0442Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
    • G06N3/0445
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/776Validation; Performance evaluation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • G06N3/0454

Definitions

  • the present disclosure relates to computer vision, and more particularly, to systems and methods for batch-normalized recurrent highway networks for object recognition and image captioning.
  • Deep learning methods such as Convolutional Neural Networks (CNNs)
  • CNNs Convolutional Neural Networks
  • CNNs and other neural networks
  • CNNs may be improved by increasing the depth of the networks, thereby reducing error on competitive benchmark testing.
  • training may be challenging because the distribution of each layer's input will change during training.
  • RNNs Recurrent Neural Networks
  • RNNs Recurrent Neural Networks
  • RNNs Recurrent Neural Networks
  • RNNs Recurrent Neural Networks
  • gradients are unstable and may vanish or explode over time.
  • Batch normalization can address the internal covariate shift problems associated with CNNs, particularly feed forward CNNs, by normalizing the layer inputs per mini-batch. As such, training may be sped up because of more aggressive learning rates, stable models may be created which are not as susceptible to parameter initialization, and vanishing and exploding gradients may be reduced. Moreover, certain batch normalization techniques may be applied to RNNs to obtain faster convergence, although these techniques do not improve the generalization of performance on sequence modeling tasks. For example, batch normalization may be used on the input-to-hidden transitions and/or the hidden-to-hidden transitions to reduce covariate shifts between time steps.
  • CNNs may receive benefit from an interface to explicitly constructed memory mechanisms interacting with a CNN feature processing hierarchy.
  • the convolutional residual memory network may be used as a memory mechanism which enhances CNN architecture based on augmenting convolutional residual networks with a Long Short-Term Memory (LSTM) mechanism.
  • Weight normalization may be used for recurrent models, such as LSTMs compared to batch normalization.
  • layer normalization normalizes across the inputs on a layer-by-layer basis at each time step. This stabilizes the dynamics of the hidden layers in the network and accelerates training, without the limitation of being tied to a batched implementation.
  • a computer-implemented method for object recognition and image captioning comprises first loading a pre-trained model into a computing network. Next, the method receives, identifies, or selects a digital image input on which to perform object recognition and captioning in accordance with the methods described herein. The digital image must therefore contain one or more objects. Next, the method comprises batch normalizing the digital image input and applying one or more non-linear transforms to the digital input image to generate one or more transform outputs from the computing network.
  • the method lastly combines the one or more transform outputs to generate a final output from the computing network.
  • the final output contains a caption describing the content of the digital image input.
  • the method comprises additional features.
  • the pre-trained model may contain parameters for the computing network nodes.
  • the computing network incorporated into the methods of the present invention may be multi-layer neural networks. More specifically, an exemplary multi-layer neural network is a Recurrent Highway Network (RHN), or alternatively, a batch-normalized RHN.
  • RHN Recurrent Highway Network
  • One advantage of embodiments of the present invention is that the constraints within the Recurrent Highway Network are relaxed to reduce or avoid gradient vanishing or exploding by normalizing the current transition units in highway layers.
  • another computer-implemented method for object recognition and image captioning comprises, as a first step, receiving a digital image input, wherein the digital image input containing one or more objects.
  • the method calls for batch normalizing the digital image input and applying one or more non-linear transforms to the digital input image to generate one or more transform outputs.
  • the method comprises combining the one or more transform outputs to generate a final output.
  • FIG. 1 is a schematic diagram of an embodiment of a recurrent neural network, in accordance with embodiments of the present disclosure
  • FIG. 2 is a schematic diagram of an embodiment of a batch normalized recurrent highway network, in accordance with embodiments of the present disclosure
  • FIG. 3 is a graphical representation of loss change during training, in accordance with embodiments of the present disclosure.
  • FIG. 4 is a schematic diagram of an embodiment example results, in accordance with embodiments of the present disclosure.
  • Embodiments of the present invention relate to a recurrent framework based on Recurrent Highway Networks (RHNs) for sequence modeling using batch normalization.
  • RHNs Recurrent Highway Networks
  • constraints within the RHNs are relaxed to reduce or avoid gradient vanishing or exploding by normalizing the current transition units in highway layers.
  • FIG. 1 is a schematic block diagram of an embodiment of a Recurrent Neural Network (RNN) 10 .
  • RNNs make use of information in sequence—for example, input data that has a temporal relationship, such as video streams and batch image data. Instead of independent inputs and outputs, RNNs use outputs from a previous node in subsequent nodes, performing the same task on every element with the input being dependent on the output of the previous node, which is fed into subsequent nodes.
  • the RNN 10 consists of L layers 12 and T time states 14 . Each node 16 in the layer 12 l ⁇ 1, 2, . . . , L ⁇ and time state 14 t ⁇ 1, 2, . . .
  • T ⁇ takes input 18 represented by x l t and output 20 represented by o l t , respectively, with a non-linear transformation H at a hidden state 22 represented by s l t .
  • the hidden state 22 which is fed into other portions of the RNN, can be represented as
  • the non-linear activation H is typically specified by hyperbolic tangent function tan h, and W H is the associated weight matrix. Accordingly, the output 20 at each time state 14 can be retrieved while additional information can be fed into subsequent nodes 16 , along with the inputs 18 .
  • FIG. 2 is a schematic block diagram of an embodiment of a batch normalized Recurrent Highway Network (RHN) 30 .
  • RHNs use highway layers instead of Long Short-Term Memory (LSTM) in regular RNNs.
  • LSTM Long Short-Term Memory
  • Batch normalized highway layers 32 are illustrated in the dotted box of FIG. 2 .
  • the highway layers 32 include transform gates 34 , labeled as “T” and carry gates 36 , labeled as “C”. These gates determine how much information is transformed and carried to the output, as represented by Equations (2) and (3) below,
  • T and C are defined as a sigmoid function in Equation (4)
  • the RHN layer with recurrence depth D is defined as
  • each recurrent loop (in a particular highway layer 32 ) includes two inputs.
  • a first input 38 is represented by an output of the last recurrent unit in a previous loop.
  • the first input 38 is represented by s D t-1 .
  • the second input 40 is represented by x t .
  • Each of these inputs 38 , 40 is batch normalized 42 before further processing, as represented by BN.
  • the inputs 38 , 40 are processed by the transform gate 34 , the carry gate 36 , and a nonlinear transform 44 , represented by H.
  • subsequent processing through the node as represented by Equation (5) illustrates an output 46 from the node. This output 46 is then utilized as the input 38 for subsequent operations along the depth of the RHN layer.
  • all eigenvalues of the temporal Jacobian are preferably set to 1 across time steps in order to keep the gradient flow steady. In this case, the Ger ⁇ gorin circle radius is reduced to 0 and each diagonal entry of temporal Jacobian is set to 1.
  • the mean and variance are extracted across each channel and spatial locations. Each individual in the batch is normalized by subtracting the mean value and dividing by variance, and the data are recovered by shifting and scaling the normalized value during training. Accordingly, each final output 46 may be fed through the RNN 10 .
  • FIG. 3 is a graphical representation 60 of an embodiment of an experimental operation of an RHN of the present invention, like RHN 30 from FIG. 2 .
  • the graphical representation 60 graphs loss 62 vs. training steps 64 .
  • Testing of the RHN was performed on an image captioning task. The evaluation was carried out on the popular MSCOCO captioning dataset. This dataset contains approximately 80,000 training images, approximately 40,000 validation images, and approximately 40,000 test images. With this data set, ground truth captions are only available for training and validation sets. In order to efficiently use the available data, the validation set is split into three parts: 85% of the images are merged into the training set, 10% are used for testing, and the remaining 5% are used as a validation set for hyperparameter tuning. All the experimental results are evaluated using the MSCOCO caption evaluation server.
  • BLEU is a metric for precision of word n-grams between predicted and ground truth sentences.
  • ROUGE-L takes into account sentence level structure similarity naturally and identifies the longest co-occurring sequence in n-grams automatically.
  • METEOR was designed to fix some of the problems found in the more popular BLEU metric, and also produces good correlation with human judgment at the sentence or segment level. It has several features not found in other metrics, such as stemming and synonymy matching, along with the standard exact word matching.
  • CIDEr computes the average cosine similarity between n-grams found in the generated caption and those found in reference sentences, weighting them using TF-IDF.
  • METEOR is more semantically preferred than BLEU and ROUGE-L.
  • the ⁇ START> token is added at the beginning of the sentence and the ⁇ END> token at the end of the sentence so that the model can generate captions of varying lengths.
  • the caption generation is started with ⁇ START> and the word combination with highest probability will be selected.
  • the initial time state vector is extracted from the Inception_v3 model and all the other weight matrices are initialized with a random uniform distribution.
  • the training process minimizes a softmax loss function.
  • the proposed network is implemented using TensorFlow and trained on a server with dual GeForce GTX 1080 graphics cards. However, it should be appreciated that other networks and servers may be used.
  • the results of the MSCOCO imaging caption dataset are reported in Table 1.
  • the evaluation metrics described above are evaluated with relationship to LSTM, RHN, and BN_RHN (i.e., batch normalized RHNs according to the present invention).
  • the evaluation extracted an image feature vector as initialization of the hidden state using the same Inception_v3 model, and lock the parameters in it (without fine-tuning) in all test models.
  • LSTM denotes the im2txt model using regular LSTM cells
  • RHN denotes the image captioning generation performed by original RHNs
  • BN_RHN in the present disclosure with batch normalization instead of the C 1 ⁇ T constraint in RHN cell.
  • Table 1 illustrates that the BN_RHN is the best performing model.
  • METEOR and CIDEr are generally considered the most robust scores for captioning. The higher BLEU-4 and METEOR scores, due to fluency of language in the image captions, can be attributed to the RHN depth. More depth increases the complexity that helps learn the grammatical rules and language semantics.
  • the LSTM employs a mechanism with input, output, and forget gates to generate complex captions.
  • the present invention demonstrates better performance than LSTM, which may indicate that simplifying the gate mechanism and increasing depth do not affect performance for image captioning.
  • the test model with RHN cells benefits from having less parameters during training, and good gradient control, in a simple way.
  • the present invention BN_RHN achieves better results than original RHN, because the gate value model biases are more flexible, and batch normalization guarantees the steady gradient flow in back propagation.
  • FIG. 3 illustrates the loss change during training, or deep learning, for each of the three test models.
  • the BN_RHN model 66 as described by the various embodiments herein, achieves the steady loss fastest among all three models. Adding batch normalization allows a more aggressive learning rate and achieves faster convergence.
  • a gradient norm clipping strategy is adopted to deal with exploding gradients and a soft constraint for the vanishing gradients problem to generate reasonable captions. For BN_RHN, this restriction can be relaxed. This confirms that the present invention is effective on gradient control. It should be appreciated that in FIG. 3 , all dark curves are smoothed by a factor of 0.8, while light curves are not smoothed.
  • FIG. 4 is a graphical representation of captions 80 obtained from image files 82 using the LSTM, RHN, and BH_RHN models.
  • “G.T.” in captions 80 represents the ground truth.
  • the image files 82 illustrated in FIG. 4 were picked randomly.
  • the captions generated utilizing the BH_RHN are improved over the RHN model.
  • the BN_RHN model describes the object in the image more accurately than the other models and can generate better descriptions of the image even for very complex images than the other models.
  • the captions generated by the BN_RHN model have better grammar and language semantics due to the increased depth of recurrent network. Accordingly, embodiments of the present invention illustrate a method that provides improved results while also enabling more aggressive learning rates and faster convergence.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Medical Informatics (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Image Analysis (AREA)

Abstract

Embodiments of the present disclosure relate to a recurrent framework based on Recurrent Highway Networks (RHNs) for sequence modeling using batch normalization. In certain embodiments, constraints within the RHNs are relaxed to reduce or avoid gradient vanishing or exploding by normalizing the current transition units in highway layers.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. patent application Ser. No. 15/968,012, filed May 1, 2018, which claims priority to U.S. provisional application No. 62/500,347, filed on May 2, 2017.
  • BACKGROUND
  • The present disclosure relates to computer vision, and more particularly, to systems and methods for batch-normalized recurrent highway networks for object recognition and image captioning. Deep learning methods, such as Convolutional Neural Networks (CNNs), are often used in various pattern recognition tasks, such as optical character recognition or image matching. CNNs, and other neural networks, may be improved by increasing the depth of the networks, thereby reducing error on competitive benchmark testing. Yet, as the depth of these networks increases, training may be challenging because the distribution of each layer's input will change during training. Moreover, increasing the depth for Recurrent Neural Networks (RNNs), which are already deep in time domain, typically does not provide significant advantages because the state update modeled by certain internal function mapping in modern RNNs is usually represented by non-linear activations. Additionally, for RNNs, gradients are unstable and may vanish or explode over time.
  • To combat problems associated with gradients, techniques such as batch normalization may be used. Batch normalization can address the internal covariate shift problems associated with CNNs, particularly feed forward CNNs, by normalizing the layer inputs per mini-batch. As such, training may be sped up because of more aggressive learning rates, stable models may be created which are not as susceptible to parameter initialization, and vanishing and exploding gradients may be reduced. Moreover, certain batch normalization techniques may be applied to RNNs to obtain faster convergence, although these techniques do not improve the generalization of performance on sequence modeling tasks. For example, batch normalization may be used on the input-to-hidden transitions and/or the hidden-to-hidden transitions to reduce covariate shifts between time steps.
  • Additionally, focus in neural networks is placed on controlling gradient behavior by modifying network structures. For example, establishing networks with stochastic depth enables training of short networks and also using deep networks at test time. Elements of this approach may be applied to residual networks to reduce training time and improve test error. Additionally, in certain configurations, CNNs may receive benefit from an interface to explicitly constructed memory mechanisms interacting with a CNN feature processing hierarchy. Correspondingly, the convolutional residual memory network may be used as a memory mechanism which enhances CNN architecture based on augmenting convolutional residual networks with a Long Short-Term Memory (LSTM) mechanism. Weight normalization may be used for recurrent models, such as LSTMs compared to batch normalization. It improves the conditioning of the optimization problem and speeds up convergence of stochastic gradient descent without introducing any dependencies between the examples in a mini-batch. Similarly, layer normalization normalizes across the inputs on a layer-by-layer basis at each time step. This stabilizes the dynamics of the hidden layers in the network and accelerates training, without the limitation of being tied to a batched implementation.
  • Further gradient control may be obtained with the introduction of highway layers. Recurrent Highway Networks (RHNs), based on highway layers, relax the limitation of training deep RNNs. Specifically, a highway network defines two nonlinear transforms: the transform gate and carry gate. These gates express how much of the output is produced by transforming the input and carrying it, respectively. By coupling the transform gate and carrying gate, a highway layer can smoothly vary its behavior between that of a plain layer and that of a layer which simply passes its inputs through. Due to this gating mechanism, a neural network can have paths along which information can flow across several layers without attenuation. Thus, highway networks, even with hundreds of layers, can be trained directly using stochastic gradient descent. These networks, when used with a variety of activation functions, have been shown to avoid the vanishing or exploding gradient problem. Highway layers have achieved success in the fields of speech recognition and language modeling.
  • Highway layers have contributed to the establishment of RHNs that have long credit assignment paths, not just in time, but also long in space (per time step). By replacing the LSTM cell in the recurrent loop, the RHN layer instead stacks the highway layers inside the recurrent units. By increasing recurrence depth, additional non-linearity strengthens the ability of the recurrent network without slowing down the convergence. Compared to regular RNNs, RHNs provide more versatile ways to deal with data flow in terms of transforming and carrying information. It has been theoretically proven that coupling a carrying and transforming gate effectively controls the gradient. However, such a constraint may limit the power of the network to some extent. Hence, new solutions are needed to overcome these problems by potentially relaxing the constraints in RHNs.
  • SUMMARY
  • Applicant has recognized the problems noted above and has conceived and developed embodiments of system and method, according to the present disclosure, for object recognition and image captioning. According to an embodiment of the present invention, a computer-implemented method for object recognition and image captioning is provided. The method comprises first loading a pre-trained model into a computing network. Next, the method receives, identifies, or selects a digital image input on which to perform object recognition and captioning in accordance with the methods described herein. The digital image must therefore contain one or more objects. Next, the method comprises batch normalizing the digital image input and applying one or more non-linear transforms to the digital input image to generate one or more transform outputs from the computing network. The method lastly combines the one or more transform outputs to generate a final output from the computing network. In an exemplary embodiment, the final output contains a caption describing the content of the digital image input. In other embodiments, the method comprises additional features. For example, the pre-trained model may contain parameters for the computing network nodes. The computing network incorporated into the methods of the present invention may be multi-layer neural networks. More specifically, an exemplary multi-layer neural network is a Recurrent Highway Network (RHN), or alternatively, a batch-normalized RHN. One advantage of embodiments of the present invention is that the constraints within the Recurrent Highway Network are relaxed to reduce or avoid gradient vanishing or exploding by normalizing the current transition units in highway layers.
  • According to another exemplary embodiment, another computer-implemented method for object recognition and image captioning is provided. Such method comprises, as a first step, receiving a digital image input, wherein the digital image input containing one or more objects. Next, the method calls for batch normalizing the digital image input and applying one or more non-linear transforms to the digital input image to generate one or more transform outputs. And, lastly, the method comprises combining the one or more transform outputs to generate a final output.
  • BRIEF DESCRIPTION OF DRAWINGS
  • The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee. The features of the invention will become more readily apparent and may be better understood by referring to the following detailed description in conjunction with the drawings, which include:
  • FIG. 1 is a schematic diagram of an embodiment of a recurrent neural network, in accordance with embodiments of the present disclosure;
  • FIG. 2 is a schematic diagram of an embodiment of a batch normalized recurrent highway network, in accordance with embodiments of the present disclosure;
  • FIG. 3 is a graphical representation of loss change during training, in accordance with embodiments of the present disclosure; and
  • FIG. 4 is a schematic diagram of an embodiment example results, in accordance with embodiments of the present disclosure.
  • DETAILED DESCRIPTION
  • The foregoing aspects, features, and advantages of the present disclosure will be further appreciated when considered with reference to the following description of embodiments and accompanying drawings. In describing the embodiments of the disclosure illustrated in the appended drawings, specific terminology will be used for the sake of clarity. However, the disclosure is not intended to be limited to the specific terms used, and it is to be understood that each specific term includes equivalents that operate in a similar manner to accomplish a similar purpose.
  • When introducing elements of various embodiments of the present disclosure, the articles “a,” “an,” “the,” and “said” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements. Any examples of operating parameters and/or environmental conditions are not exclusive of other parameters/conditions of the disclosed embodiments. Additionally, it should be understood that references to “one embodiment,” “an embodiment,” “certain embodiments,” or “other embodiments” of the present invention are not intended to be interpreted as excluding the existence of additional embodiments that also incorporate the recited features.
  • Embodiments of the present invention relate to a recurrent framework based on Recurrent Highway Networks (RHNs) for sequence modeling using batch normalization. In certain embodiments, constraints within the RHNs are relaxed to reduce or avoid gradient vanishing or exploding by normalizing the current transition units in highway layers. These methods simultaneously improve network performance while avoiding the vanishing and exploding gradient problems.
  • FIG. 1 is a schematic block diagram of an embodiment of a Recurrent Neural Network (RNN) 10. RNNs make use of information in sequence—for example, input data that has a temporal relationship, such as video streams and batch image data. Instead of independent inputs and outputs, RNNs use outputs from a previous node in subsequent nodes, performing the same task on every element with the input being dependent on the output of the previous node, which is fed into subsequent nodes. The RNN 10 consists of L layers 12 and T time states 14. Each node 16 in the layer 12 l∈{1, 2, . . . , L} and time state 14 t∈{1, 2, . . . , T} takes input 18 represented by xl t and output 20 represented by ol t, respectively, with a non-linear transformation H at a hidden state 22 represented by sl t. Omitting the bias term for simplicity, the hidden state 22, which is fed into other portions of the RNN, can be represented as

  • s=H(x,W H)  (1)
  • where the non-linear activation H is typically specified by hyperbolic tangent function tan h, and WH is the associated weight matrix. Accordingly, the output 20 at each time state 14 can be retrieved while additional information can be fed into subsequent nodes 16, along with the inputs 18.
  • FIG. 2 is a schematic block diagram of an embodiment of a batch normalized Recurrent Highway Network (RHN) 30. In highway networks, the training process is facilitated by using adaptive computation. RHNs use highway layers instead of Long Short-Term Memory (LSTM) in regular RNNs. Batch normalized highway layers 32 are illustrated in the dotted box of FIG. 2. The highway layers 32 include transform gates 34, labeled as “T” and carry gates 36, labeled as “C”. These gates determine how much information is transformed and carried to the output, as represented by Equations (2) and (3) below,

  • t=T(x,W T)  (2)

  • c=C(x,W c)  (3)
  • where t, c are the output of the transform and carry gate respectively. In operation, T and C are defined as a sigmoid function in Equation (4)

  • σ(x)=1/(1+e −x)  (4)
  • and WT,WC are corresponding weights. The RHN layer with recurrence depth D is defined as

  • s d t =h d t ⊙t d t +s d-1 t ⊙c d t  (5)
  • where ⊙ implies the element-wise product.
  • As illustrated in FIG. 2, each recurrent loop (in a particular highway layer 32) includes two inputs. A first input 38 is represented by an output of the last recurrent unit in a previous loop. In the illustrated embodiment, the first input 38 is represented by sD t-1. The second input 40 is represented by xt. Each of these inputs 38, 40 is batch normalized 42 before further processing, as represented by BN. Thereafter, the inputs 38, 40 are processed by the transform gate 34, the carry gate 36, and a nonlinear transform 44, represented by H. As shown in FIG. 2, subsequent processing through the node as represented by Equation (5) illustrates an output 46 from the node. This output 46 is then utilized as the input 38 for subsequent operations along the depth of the RHN layer.
  • In the embodiment illustrated in FIG. 2, each recurrent loop takes the output of the last recurrent unit in the previous loop (st d-1) as input, and the time-varying data xt is only fed into the recurrent loop to the recurrence depth, d=1. According to Geršgorin circle theorem, all eigenvalues of the temporal Jacobian are preferably set to 1 across time steps in order to keep the gradient flow steady. In this case, the Geršgorin circle radius is reduced to 0 and each diagonal entry of temporal Jacobian is set to 1. This is accomplished by coupling the carry gate to the transform gate by setting C=1−T, as a constraint, in order to prevent an unbounded “blow-up” of state values which leads to more stable training. However, this constraint may limit the ability of the gates to freely learn parameter values and imposes a modeling bias which may be suboptimal for certain tasks.
  • Because of its ability to control the gradient during back propagation, batch normalization is incorporated to the inputs 38, 40 of each recurrent loop. This allows relaxation of the C=1−T constraint, while simultaneously making gradients less prone to vanishing or exploding. Specifically, in batch normalization, the mean and variance are extracted across each channel and spatial locations. Each individual in the batch is normalized by subtracting the mean value and dividing by variance, and the data are recovered by shifting and scaling the normalized value during training. Accordingly, each final output 46 may be fed through the RNN 10.
  • FIG. 3 is a graphical representation 60 of an embodiment of an experimental operation of an RHN of the present invention, like RHN 30 from FIG. 2. The graphical representation 60 graphs loss 62 vs. training steps 64. Testing of the RHN was performed on an image captioning task. The evaluation was carried out on the popular MSCOCO captioning dataset. This dataset contains approximately 80,000 training images, approximately 40,000 validation images, and approximately 40,000 test images. With this data set, ground truth captions are only available for training and validation sets. In order to efficiently use the available data, the validation set is split into three parts: 85% of the images are merged into the training set, 10% are used for testing, and the remaining 5% are used as a validation set for hyperparameter tuning. All the experimental results are evaluated using the MSCOCO caption evaluation server.
  • When evaluating the data, experimental results are compared against metrics. Four different metrics were used for evaluation. First, BLEU is a metric for precision of word n-grams between predicted and ground truth sentences. Second, ROUGE-L takes into account sentence level structure similarity naturally and identifies the longest co-occurring sequence in n-grams automatically. Third, METEOR was designed to fix some of the problems found in the more popular BLEU metric, and also produces good correlation with human judgment at the sentence or segment level. It has several features not found in other metrics, such as stemming and synonymy matching, along with the standard exact word matching. Fourth, CIDEr computes the average cosine similarity between n-grams found in the generated caption and those found in reference sentences, weighting them using TF-IDF. In practice, METEOR is more semantically preferred than BLEU and ROUGE-L.
  • In the training phase, the <START> token is added at the beginning of the sentence and the <END> token at the end of the sentence so that the model can generate captions of varying lengths. In inference mode, the caption generation is started with <START> and the word combination with highest probability will be selected. The word embedding size and number of RHN neurons per layer are empirically set to 512. Based on empirical results, the evaluation adopted the recurrence depth D=3. However, in other embodiments, different recurrence depths may be used. Stochastic gradient descent is employed for optimization, where the initial learning rate and decay factor are set to 0.1 and 0.5, respectively, and the learning rate decays exponentially every 8 epochs. The initial time state vector is extracted from the Inception_v3 model and all the other weight matrices are initialized with a random uniform distribution. The training process minimizes a softmax loss function. The proposed network is implemented using TensorFlow and trained on a server with dual GeForce GTX 1080 graphics cards. However, it should be appreciated that other networks and servers may be used.
  • The results of the MSCOCO imaging caption dataset are reported in Table 1. The evaluation metrics described above are evaluated with relationship to LSTM, RHN, and BN_RHN (i.e., batch normalized RHNs according to the present invention). The evaluation extracted an image feature vector as initialization of the hidden state using the same Inception_v3 model, and lock the parameters in it (without fine-tuning) in all test models. Of the three test models (LSTM, RHN, and BN_RHN), LSTM denotes the im2txt model using regular LSTM cells, RHN denotes the image captioning generation performed by original RHNs, and BN_RHN in the present disclosure with batch normalization instead of the C=1−T constraint in RHN cell. Table 1 illustrates that the BN_RHN is the best performing model. METEOR and CIDEr are generally considered the most robust scores for captioning. The higher BLEU-4 and METEOR scores, due to fluency of language in the image captions, can be attributed to the RHN depth. More depth increases the complexity that helps learn the grammatical rules and language semantics. The LSTM employs a mechanism with input, output, and forget gates to generate complex captions. The present invention demonstrates better performance than LSTM, which may indicate that simplifying the gate mechanism and increasing depth do not affect performance for image captioning. The test model with RHN cells benefits from having less parameters during training, and good gradient control, in a simple way. The present invention BN_RHN achieves better results than original RHN, because the gate value model biases are more flexible, and batch normalization guarantees the steady gradient flow in back propagation.
  • TABLE 1
    Model LSTM RHN BN_RHN
    BLEU-1 0.706 0.688 0.710
    BLEU-2 0.533 0.512 0.541
    BLEU-3 0.397 0.377 0.408
    BLEU-4 0.298 0.281 0.311
    ROUGE-L 0.524 0.511 0.533
    METEOR 0.248 0.241 0.254
    CIDEr 0.917 0.864 0.955
  • Returning again to FIG. 3, a comparison was also made based on the speed of convergence. FIG. 3 illustrates the loss change during training, or deep learning, for each of the three test models. The BN_RHN model 66, as described by the various embodiments herein, achieves the steady loss fastest among all three models. Adding batch normalization allows a more aggressive learning rate and achieves faster convergence. Furthermore, during back propagation in the original LSTM 68 and RHN 70 models, a gradient norm clipping strategy is adopted to deal with exploding gradients and a soft constraint for the vanishing gradients problem to generate reasonable captions. For BN_RHN, this restriction can be relaxed. This confirms that the present invention is effective on gradient control. It should be appreciated that in FIG. 3, all dark curves are smoothed by a factor of 0.8, while light curves are not smoothed.
  • FIG. 4 is a graphical representation of captions 80 obtained from image files 82 using the LSTM, RHN, and BH_RHN models. In FIG. 4, “G.T.” in captions 80 represents the ground truth. The image files 82 illustrated in FIG. 4 were picked randomly. As illustrated in FIG. 4, the captions generated utilizing the BH_RHN are improved over the RHN model. For example, the BN_RHN model describes the object in the image more accurately than the other models and can generate better descriptions of the image even for very complex images than the other models. Additionally, the captions generated by the BN_RHN model have better grammar and language semantics due to the increased depth of recurrent network. Accordingly, embodiments of the present invention illustrate a method that provides improved results while also enabling more aggressive learning rates and faster convergence.
  • The foregoing disclosure and description of the disclosed embodiments is illustrative and explanatory of the embodiments of the invention. Various changes in the details of the illustrated embodiments can be made within the scope of the appended claims without departing from the true spirit of the disclosure.

Claims (14)

1. A computer-implemented method, comprising:
loading a pre-trained model into a computing network;
receiving a digital image input, the digital image input containing one or more objects;
batch normalizing the digital image input;
applying one or more non-linear transforms to the digital input image to generate one or more transform outputs from the computing network; and
combining the one or more transform outputs to generate a final output from the computing network.
2. The method of claim 1 wherein the pre-trained model contains parameters for the computing network nodes.
3. The method of claim 2 wherein the computing network is a multi-layer neural network.
4. The method of claim 3 wherein the multi-layer neural network is a Recurrent Highway Network.
5. The method of claim 4 wherein the multi-layer neural network is a batch-normalized Recurrent Highway Network.
6. The method of claim 5 wherein the constraints within the Recurrent Highway Network are relaxed to reduce or avoid gradient vanishing or exploding by normalizing the current transition units in highway layers.
7. The method of claim 1 wherein the final output contains a caption describing the content of the digital image input.
8. A computer-implemented method, comprising:
receiving a digital image input, the digital image input containing one or more objects;
batch normalizing the digital image input;
applying one or more non-linear transforms to the digital input image to generate one or more transform outputs; and
combining the one or more transform outputs to generate a final output.
9. The computer-implemented method of claim 8, wherein batch normalizing occurs at one or more highway layers of a recurrent highway network.
10. The computer-implemented method of claim 9, wherein the one or more highway layers comprise a transform gate and a carry gate.
11. The computer-implemented method of claim 10, wherein the transform gate is coupled to the carry gate.
12. The computer-implemented method of claim 9, wherein the digital image input is an output of a prior processing loop in the recurrent highway network.
13. The computer-implemented method of claim 8, wherein batch normalizing the digital image input comprises extracting a mean and a variance across each channel and spatial location.
14. The computer-implemented method of claim 13, wherein batch normalizing the digital image input comprises subtracting the mean of the digital image input and dividing by the variance of the digital image input.
US17/126,745 2017-05-02 2020-12-18 System and method for batch-normalized recurrent highway networks Pending US20210103777A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/126,745 US20210103777A1 (en) 2017-05-02 2020-12-18 System and method for batch-normalized recurrent highway networks

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US201762500347P 2017-05-02 2017-05-02
US15/968,012 US10872273B2 (en) 2017-05-02 2018-05-01 System and method for batch-normalized recurrent highway networks
US17/126,745 US20210103777A1 (en) 2017-05-02 2020-12-18 System and method for batch-normalized recurrent highway networks

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US15/968,012 Continuation US10872273B2 (en) 2017-05-02 2018-05-01 System and method for batch-normalized recurrent highway networks

Publications (1)

Publication Number Publication Date
US20210103777A1 true US20210103777A1 (en) 2021-04-08

Family

ID=62196725

Family Applications (2)

Application Number Title Priority Date Filing Date
US15/968,012 Active US10872273B2 (en) 2017-05-02 2018-05-01 System and method for batch-normalized recurrent highway networks
US17/126,745 Pending US20210103777A1 (en) 2017-05-02 2020-12-18 System and method for batch-normalized recurrent highway networks

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US15/968,012 Active US10872273B2 (en) 2017-05-02 2018-05-01 System and method for batch-normalized recurrent highway networks

Country Status (4)

Country Link
US (2) US10872273B2 (en)
EP (2) EP4372616A1 (en)
CN (1) CN110612537A (en)
WO (1) WO2018204371A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11423143B1 (en) 2017-12-21 2022-08-23 Exabeam, Inc. Anomaly detection based on processes executed within a network
US11431741B1 (en) * 2018-05-16 2022-08-30 Exabeam, Inc. Detecting unmanaged and unauthorized assets in an information technology network with a recurrent neural network that identifies anomalously-named assets
JP7059151B2 (en) * 2018-09-12 2022-04-25 株式会社日立製作所 Time series data analyzer, time series data analysis method, and time series data analysis program
CN109816008A (en) * 2019-01-20 2019-05-28 北京工业大学 A kind of astronomical big data light curve predicting abnormality method based on shot and long term memory network
US10325185B1 (en) * 2019-01-23 2019-06-18 StradVision, Inc. Method and device for online batch normalization, on-device learning, and continual learning applicable to mobile devices or IOT devices additionally referring to one or more previous batches to be used for military purpose, drone or robot, and testing method and testing device using the same
CN109978139B (en) * 2019-03-20 2021-06-04 深圳大学 Method, system, electronic device and storage medium for automatically generating description of picture
US11625366B1 (en) 2019-06-04 2023-04-11 Exabeam, Inc. System, method, and computer program for automatic parser creation
CN114222986A (en) * 2019-09-16 2022-03-22 英特尔公司 Random trajectory prediction using social graph networks
US11956253B1 (en) 2020-06-15 2024-04-09 Exabeam, Inc. Ranking cybersecurity alerts from multiple sources using machine learning
US11763544B2 (en) * 2020-07-07 2023-09-19 International Business Machines Corporation Denoising autoencoder image captioning
US11651522B2 (en) 2020-07-08 2023-05-16 International Business Machines Corporation Adaptive cycle consistency multimodal image captioning
CN112906860A (en) * 2021-02-04 2021-06-04 深圳大学 Network structure searching method and device
CN113657596B (en) * 2021-08-27 2023-11-03 京东科技信息技术有限公司 Method and device for training model and image recognition
CN113722872B (en) * 2021-11-04 2022-01-25 长安大学 Method for extracting start and end point attributes of roads in batch in urban area road network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288242A1 (en) * 2006-06-12 2007-12-13 Lockheed Martin Corporation Speech recognition and control system, program product, and related methods

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100266179A1 (en) * 2005-05-25 2010-10-21 Ramsay Thomas E System and method for texture visualization and image analysis to differentiate between malignant and benign lesions
CN105279495B (en) * 2015-10-23 2019-06-04 天津大学 A kind of video presentation method summarized based on deep learning and text

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288242A1 (en) * 2006-06-12 2007-12-13 Lockheed Martin Corporation Speech recognition and control system, program product, and related methods

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Greff, Klaus, Rupesh K. Srivastava, and Jürgen Schmidhuber. "Highway and residual networks learn unrolled iterative estimation." arXiv preprint arXiv:1612.07771 (2016). (Year: 2016) *

Also Published As

Publication number Publication date
EP4372616A1 (en) 2024-05-22
EP3619651B1 (en) 2024-03-27
US10872273B2 (en) 2020-12-22
EP3619651A1 (en) 2020-03-11
US20180322368A1 (en) 2018-11-08
CN110612537A (en) 2019-12-24
WO2018204371A1 (en) 2018-11-08

Similar Documents

Publication Publication Date Title
US20210103777A1 (en) System and method for batch-normalized recurrent highway networks
CN112487182B (en) Training method of text processing model, text processing method and device
EP3459021B1 (en) Training neural networks using synthetic gradients
US20200410365A1 (en) Unsupervised neural network training using learned optimizers
US20170161640A1 (en) Regularization of machine learning models
Chien et al. Deep unfolding for topic models
Ravi et al. Explicitly imposing constraints in deep networks via conditional gradients gives improved generalization and faster convergence
WO2019220113A1 (en) Device and method for natural language processing
Friesen et al. Deep learning as a mixed convex-combinatorial optimization problem
US20220335303A1 (en) Methods, devices and media for improving knowledge distillation using intermediate representations
US20230107409A1 (en) Ensembling mixture-of-experts neural networks
CN111860364A (en) Training method and device of face recognition model, electronic equipment and storage medium
Wang Rra: Recurrent residual attention for sequence learning
Zhang et al. Batch-normalized recurrent highway networks
WO2020106871A1 (en) Image processing neural networks with dynamic filter activation
Chowdhury et al. A continuous space neural language model for bengali language
CN116051388A (en) Automatic photo editing via language request
CN115169548A (en) Tensor-based continuous learning method and device
CN114648021A (en) Question-answering model training method, question-answering method and device, equipment and storage medium
CN113590815A (en) Method and system for classifying hierarchical multi-element label texts
Cheng et al. CatVRNN: Generating category texts via multi-task learning
Chen et al. Static correlative filter based convolutional neural network for visual question answering
Nguyen et al. Task-Agnostic Robust Representation Learning
US20230136609A1 (en) Method and apparatus for unsupervised domain adaptation
CN117521759B (en) Training method and device for large model

Legal Events

Date Code Title Description
STPP Information on status: patent application and granting procedure in general

Free format text: APPLICATION DISPATCHED FROM PREEXAM, NOT YET DOCKETED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

AS Assignment

Owner name: THE BOARD OF THE PENSION PROTECTION FUND, UNITED KINGDOM

Free format text: SECURITY INTEREST;ASSIGNOR:KODAK ALARIS INC.;REEL/FRAME:058571/0857

Effective date: 20211031

AS Assignment

Owner name: KODAK ALARIS, INC., NEW YORK

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ZHANG, CHI;PTUCHA, RAYMOND;LOUI, ALEXANDER;AND OTHERS;SIGNING DATES FROM 20180503 TO 20180508;REEL/FRAME:059053/0441

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED