The present disclosure relates generally to machine-learning devices.
Developments in self-supervised learning (SSL) have yielded visual representations having associated accuracy approaching an accuracy of visual representations obtained from fully supervised learning on large computer vision downstream tasks. To date, most SSL studies and systems have been directed to applications of well-curated data sets.
Claimed subject matter is particularly pointed out and distinctly claimed in the concluding portion of the specification. However, both as to organization and/or method of operation, together with objects, features, and/or advantages thereof, it may best be understood by reference to the following detailed description if read with the accompanying drawings in which:
Reference is made in the following detailed description to accompanying drawings, which form a part hereof, wherein like numerals may designate like parts throughout that are corresponding and/or analogous. It will be appreciated that the figures have not necessarily been drawn to scale, such as for simplicity and/or clarity of illustration. For example, dimensions of some aspects may be exaggerated relative to others. Further, it is to be understood that other embodiments may be utilized. Furthermore, structural and/or other changes may be made without departing from claimed subject matter. References throughout this specification to “claimed subject matter” refer to subject matter intended to be covered by one or more claims, or any portion thereof, and are not necessarily intended to refer to a complete claim set, to a particular combination of claim sets (e.g., method claims, apparatus claims, etc.), or to a particular claim. It should also be noted that directions and/or references, for example, such as up, down, top, bottom, and so on, may be used to facilitate discussion of drawings and are not intended to restrict application of claimed subject matter. Therefore, the following detailed description is not to be taken to limit claimed subject matter and/or equivalents.
References throughout this specification to one implementation, an implementation, one embodiment, an embodiment, and/or the like means that a particular feature, structure, characteristic, and/or the like described in relation to a particular implementation and/or embodiment is included in at least one implementation and/or embodiment of claimed subject matter. Thus, appearances of such phrases, for example, in various places throughout this specification are not necessarily intended to refer to the same implementation and/or embodiment or to any one particular implementation and/or embodiment. Furthermore, it is to be understood that particular features, structures, characteristics, and/or the like described are capable of being combined in various ways in one or more implementations and/or embodiments and, therefore, are within intended claim scope. In general, of course, as has always been the case for the specification of a patent application, these and other issues have a potential to vary in a particular context of usage. In other words, throughout the disclosure, particular context of description and/or usage provides helpful guidance regarding reasonable inferences to be drawn; however, likewise, “in this context” in general without further qualification refers at least to the context of the present patent application.
As pointed out above, self-supervised learning (SSL) techniques have yielded visual representations having an associated accuracy that approaches a level of accuracy enabled using fully supervised learning operations on large computer vision downstream tasks, for example.
While some implementations of an SSL training operations are directed to use of well-curated datasets, particular embodiments disclosed herein are directed to applications of structured document images. In a particular implementation, to develop an SSL approach for structured document images, an information bottleneck framework may be applied to derive a negative-sample-free contrastive learning objective. This may lead to simplified objective function that avoids negative pair construction and strong dependency on use of large batch sizes.
One embodiment disclosed herein is directed to a method comprising: obtaining first and second views of a content signal; applying a first encoder to the first view to provide a first encoded view; applying a second encoder to the second view to provide a second encoded view; applying a first decoder to the first encoded view to provide a recovered first view; applying a second encoder to the second view to provide a second encoded view; and updating parameters of the first encoder, the second encoder, first decoder or the second decoder, or a combination thereof, based, at least in part, on a cross-correlation of features of the first encoded view and the second encoded view.
Another embodiment disclosed herein is directed to a method comprising: extracting samples of a content signal; applying the extracted samples as an input to an encoder to provide an encoding of the extracted samples; applying the encoding of the extracted samples as an input to a decoder trained to provide a reconstruction of the content signal; populating an input tensor with values based, at least in part, on intermediate states of the decoder; executing the one or more neural networks to obtain an output tensor; and detecting one or more features in the content signal based, at least in part, on the output tensor.
Another embodiment is directed to a method of training a system for detection of objects in a content signal, the method comprising: applying a self-supervised operation to train parameters of an encoder and a decoder based, at least in part, on a first loss function based, at least in part, on a computed loss associated with reconstruction of a view of the content signal; and applying a supervised operation to further train parameters of the encoder and the decoder trained in the self-supervised operation based, at least in, in part, on a second loss function based, at least in part, on a computed loss associated with detection of objects.
According to an embodiment, parser 104 may generate patch sequences A and B based, at least in part, on features detected in and/or extracted from electronic document 102. In a particular implementation, parser 104 may generate patch sequences A and B based, at least in part, on features detected in and/or extracted from electronic document 102 in different content domains for respective patch sequences A and B. In one particular example, electronic document 102 may comprise image pixel values expressing a mixture of objects including text objects and non-text objects (e.g., objects visible in a scene such as humans, written document formatting features, animals, plants, building structures, commercial products, etc.). Here, parser 104 may generate patch sequence A as non-text objects detected in and/or extracted from electronic document 102 while generating patch sequence B as a text sequence, for example. To generate patch sequence B as a text sequence, for example, parser 104 may implement optical character recognition to detect and/or extract text objects from pixel values in electronic document 102. In another example, electronic document 102 may comprise an audio signal including a mixture of components including, for example, human voices, sounds from a machine, a barking dog, automobile horn, etc. Here, parser 104 may generate patch sequence A as non-human voice features detected in and/or extracted from electronic document 102 (e.g., non-human sounds expressed in electronic document 102). Patch sequence B may be generated as text of words/phrases detected in and/or extracted from a human voice component of sounds expressed in electronic document 102. To generate patch sequence B as a text sequence, for example, parser 104 may implement a voice-to-text process to detect and/or extract text objects from an audio signal in electronic document 102 identified as being from of a human voice. It should be understood, however, that these are merely examples of how a parser may generate different patch sequences in respectively different content domains from an electronic document, and claimed subject matter is not limited in this respect.
According to an embodiment, processing branch 120 may process patch sequence A according to a first content domain and processing branch 122 may process patch sequence A according to a second content domain which is distinct and different from the first content domain. Nonetheless, processing paths 120 and 122 map output results to a common domain. According to an embodiment, encoders 110 and 116 may map features in patch sequences A and B to respectively different encoded domains content domains 112 (as encoded patch sequence A′) and 118 (as encoded patch sequence B′), for example. If features expressed electronic document 102 are parsed into patch sequences A and B respectively having text features and visual object features (as in the above example), encoded patch sequence A′ may comprise symbols and/or expressions encoded to represent text features and encoded patch sequence B′ may comprise symbols and/or expressions encoded to represent visual object features. Similarly, audio signal features expressed electronic document 102 may be parsed into patch sequences A and B respectively having voice-to-text features and non-human sound features. Encoded patch sequence A′ may then comprise symbols and/or expressions encoded to represent text features and encoded patch sequence B′ may comprise symbols and/or expressions encoded to represent non-human sound/audio features, for example.
Visually rich content in electronic document 102 may be parsed into patch sequences A and B respectively having text features and visual object features. Encoded patch sequence A′ may then comprise symbols and/or expressions encoded to a text sequence. Likewise, encoded patch sequence B′ may comprise symbols and/or expressions encoded to represent a corresponding region image sequence. In another example, an instructional audio-visual presentation in electronic document 102 may be parsed into patch sequences A and B respectively having an instructor's voice features and visual image features. Encoded patch sequence A′ may then comprise symbols and/or expressions encoded to represent the instructor's narrative (e.g., in audio symbols and/or text symbols) and encoded patch sequence B′ may comprise symbols and/or expressions encoded to represent a corresponding series of video images. In yet another example, a medical record in electronic document 102 may be parsed into patch sequences A and B respectively having a representation of clinical notes (e.g., in audio or written format) and features of a clinical image (e.g., X-ray and/or MRI image). Encoded patch sequence A′ may comprise symbols and/or expressions encoded to represent a clinician's description (e.g., in audio symbols and/or text) and encoded patch sequence B′ may then comprise symbols and/or expressions encoded to represent a corresponding series of still images.
While encoded patch sequences A′ and B′ may comprise symbols and/or expressions to represent features in different content domains, such symbols and/or expressions represented in encoded patch sequences A′ and B′ may nonetheless be correlated. For example, such symbols and/or expressions represented in encoded patch sequences A′ and B′ may be correlated with respect to a time domain, environmental context domain, situational context domain, just to provide a few examples. According to an embodiment, such a correlation of symbols and/or expressions represented in encoded patch sequences A′ and B′ may enable use of symbols and/or expressions in encoded patch sequence A′. Such a correlation of symbols and/or expressions may be used to derive a supervisory signal to assist in a machine-learning process to refine parameters defining processing paths 120 and 122.
According to an embodiment, projectors 114 and 115 may transform symbols and/or expressions in encoded patch sequences A′ and B′ to a common domain Z, where ZA and ZB respectively represent transformation of symbols and/or expressions in encoded patch sequences A′ and B′ to common domain Z. In a particular implementation, such a mapping of encoded patch sequences A′ and B′ to a common domain Z as ZA and ZB may enable one or more machine-learning processes to derive parameters for elements of processing paths 120 and 122 (e.g., encoders 110 and 116, and projectors 114 and 115), for example. In a particular example implementation, encoders 110 and 116, and projectors 114 and 116 may be implemented, at least in part, using neural networks and a machine-learning process may update/refine aspects of such neural networks based, at least in part, on ZA and ZB using backpropagation, for example.
According to an embodiment, domain Z may define a compressed format such that processing path 120 provides ZA as a compression/compressed representation of patch sequence A and processing path 122 provides ZB as a compression/compressed representation of patch sequence B. In a particular implementation, processing path 120 may compress patch sequence A occupying an uncompressed digital data size (e.g., quantified by bits or bytes) to provide a compressed representation ZA that occupies a smaller digital data size. Likewise, processing path 120 may compress patch sequence B occupying an uncompressed digital data size (e.g., quantified by bits or bytes) to provide a compressed representation ZB that occupies a smaller digital data size. According to an embodiment, parameters to define encoder 110 and projector 114 may be selected so as to compress A into ZA while preserving information regarding features of patch sequence B in ZA. Similarly, parameters to define encoder 116 and projector 115 may be selected so as to compress B into ZB while preserving information regarding features of patch sequence A in ZB. In a particular example in which A is a patch sequence of an image of a visual object and B is a patch sequence of text relating to features of the visual object, parameters of encoder 110 and projector 114 may be determined so as to preserve information relating to text features of B in ZA. Similarly, parameters of encoder 116 and projector 115 may be determined so as to preserve information relating to text features of A in ZB. According to an embodiment, parameters of encoders 110 and/or 116, and projectors 114 and/or 116 may be determined in machine learning operations according to a loss function that models loss of information about patch sequence A in ZB and/or models loss of information about patch sequence B in ZA.
According to an embodiment, features of neural networks to implement encoders 110 and/or 116, and projectors 114 and/or 116 (e.g., weights and/or numerical coefficients to be applied to and/or associated with nodes and/or edges in such neural networks) may be determined in backpropagation operations applied to a loss function. In a particular implementation, features of neural networks to implement encoders 110 and/or 116, and projectors 114 and/or 116 may be determined in iterations of backpropagation applied to a loss function that models loss of information about patch sequence A in compressed representation ZB and/or models loss of information about patch sequence B in compressed representation ZA. In a particular implementation, a loss function for such iterations of backpropagation may be provided as a loss function L in expression (1) as follows:
where:
As pointed out above, in a particular implementation, ZA and ZB may be modeled as two jointly multivariate Gaussian variables with zero means and covariance matrices KA∈dxd and KB∈
dxd, which may be full rank. In an embodiment, entropy of a d-dimensional Gaussian variable may be modeled according to expression (2) as follows:
h(Z)=½ log [(2πe)d|KZ|], (2)
where |KZ| denotes a determinate of KZ. A loss function of expression (1) may then be reduced as shown in expression (3) as follows:
L=log (|KZ
According to an embodiment, an upper bound of log (|K|) may be modeled according to expression (4) as follows:
log (|K|)=log (Πi=1nλi)=Σi=1n log λi<Σi=1nλi2=∥K∥F2, (4)
Applying an upper bound of expression (4) with a target loss function in expression (3) may provide a simplified loss function L′ according to expression (5) as follows:
L′=∥K
Z
∥F2+∥KZ
Since ZA and ZB are assumed to be zero mean, a cross-covariance matrix KZ
L
SSL=Σi(1−RiiZ
where μi and vi are hyper-parameters controlling diagonal and off-diagonal terms of corresponding matrices, and β2 is a tunable parameter that may be determined holistically.
Likewise, while block 204 may comprise processing patch sequence B in processing path 122 to generate encoded patch sequence B′ and/or ZB. In the particular embodiment shown in . Here, it should be recognized that function/mappings fT and
are distinct from one another as discussed above.
Block 206 may comprise a determination of parameters that at least in part define first and second mappings defined and/or executed in blocks 204 and 206, respectively. In a particular example implementation, block 206 may comprise determining parameters for neural networks that implement processing paths 120 and 122. For example, block 206 may comprise determining weights and/or numerical coefficients of neural networks implementing encoders 110 and 116, and projectors 114 and 115. In a particular example implementation, training sets may be applied as electronic document 102 in associated training epochs for which system 100 may execute for determination of RZ
With an encoding of parsed content features to different encoded content domains in different processing paths 120 and 122, block 206 may enable SSL to converge to acceptably accurate and/or reliable results with fewer/smaller sample batches in training operations.
According to an embodiment, SSL may be employed in particular techniques such as masked image modeling (MIM) for implementation in computer vision applications. Such techniques may employ bidirectional encoder representations from transformers-related (BERT-related), BERT-related pre-training techniques for modeling language, for example. In particular implementations, an MIM technique may randomly mask patches of an input image and reconstruct image signal intensity values of pixel locations of masked patches with features of a subset of patches that are unmasked. Despite their performance on large downstream tasks (e.g., including image classification and object detection), techniques for learning object-wise visual representations from complex multi-object images (e.g., visually rich document images, structured table images, graphical user interface (GUI) images, and cardiac MRI) remain challenging. For example, an MIM technique may learn visual image semantics implicitly by reconstructing local patches. Application of contrastive learning, on the other hand, may enable learning of global features of augmented views. In other words, during operations to train an MIM, global features representing an entire image may not be learned.
According to an embodiment, incorporating global feature learning may be incorporated into an MIM framework using masked autoencoders (MAE) applying implicit constraints on a joint representation space. Taking advantage of such an implicit supervision of a reconstruction loss and a negative sample-free contrastive loss, an MIM technique may incorporate training model parameters to learn representations that recognize individual objects and relationships between and/or among objects in complex images. According to an embodiment, an SSL technique may apply a loss function incorporating multiple terms including one or more terms to implement contrastive learning. In a particular implementation, such techniques may yield acceptable results with fewer training epochs and/or over fewer training sets. This may result in a reduced use of computing resources to train parameters of an encoder and/or decoder to achieve an acceptable performance.
Process 300 of
Encoded state 312 may be embedded with tokens to provide token-embedded encoded state 316. Such tokens may map associated encoded patches of encoded state to locations in image 302, for example. In one embodiment, patches in encoded state 312 may comprise compressed representations of corresponding unmasked patches 306. For example, an encoded patch in encoded state 312 may be derived from application of a compression operation (e.g., audio or image compression, including compression according to a standard technique such as H.25 X, MPEG or JPEG) to a corresponding unmasked patch. An embedded token in encoded state 312 may then reference the encoded patch to a location of the corresponding unmasked patch. In a particular implementation, token-embedded encoded state 316 may be transmitted to decoder 314 over a communication channel (e.g., in signal frames over a physical transmission medium in a communication network) or be stored in a memory device (not shown) to be retrieved for decoding by decoder 314. Here, decoder 314 may apply computing operations to token-embedded encoded state 316 (e.g., based, at least in part, on encoding operations applied by decoder 310) to provide a recovered/reconstructed image 326.
According to an embodiment, system 400 may expand MAE techniques by including a parallel branch and augmenting existing reconstruction objectives with a negative sample-free contrastive loss, LNSF. For example, encoder 410 may transform view U (406) of content signal 402 to encoded state WU, as encoder 310 may transform patches 306 to token-embedded encoded state 316. Additionally, encoder 416 of system 400 may transform view V (408) to encoded state WV. Implementing parallel encoding/decoding branches 420 and 422 where concurrent reconstruction losses may be applied to branches 420 and 422 independently, system 400 may enable computation of at least a third loss term LNSF to be applied jointly over a combination of branches 420 and 422.
In a particular implementation in which content signal 402 comprises an image (e.g., an image frame defining image signal intensity values associated with locations of pixels according to a pixel format) branch 420 may partition content signal 402 into multiple nonoverlapping visible patches (e.g., as in MAEs). In one embodiment, content signal 402 may be provided in the form of one or more electronic documents. In a linear projection, a significant portion of patches of an image (e.g., 75%) may be randomly masked. Remaining visible patches in view U at input signal 406, may be processed by an encoder 410 to obtain encoded state WU. In particular implementations, WU may be padded with mask tokens to produce a complete set of features. Patches in view of V at input signal 408 may be similarly processed by encoder 416 to obtain encoded state WV.
While the above example is directed to input signal 406 (comprising view U) and input signal 408 (comprising view V) being patches of one or more images in content signal 402, in other embodiments views U and V may be of different content types. For example, view U may comprise patches of an image component of content signal 402 while view V may comprise an audio, text (or other natural language component), metadata, sensor observations/signals, etc. component of content signal 402. In other embodiments, both views U and V may be directed to components of content signal 402 that do not include image content (e.g., view U is directed to text (or other natural language expression) while view V is directed to audio content or sensor observations/signals). Particular implementations of branches 420 and 422 may be symmetric such that encoders 410 and 416 have identical structure, and decoders 414 and 415 have identical structure. Additional parameters (e.g., weights and/or coefficients for nodes of neural networks implementing branches 420 and 422) may be identical or different. In other implementations of branches 420 and 422 may be asymmetric such that encoders 410 and 416 have a different processing structure, and decoders 414 and 415 have a different processing structure. As such, particular implementations of branches 420 and 422 need not employ identical parameters, architecture or input modality, for example.
In this context, an “embedding” as referred to herein means an expression of a mapping of tokens to a collection of content features (e.g., patches), such as a mapping of such content features to particular positions and/or locations. In the particular implementation in which such content features comprise patches of an image, such a token may map such patches to locations in the image. Such a whole collection of features combined with positional embedding may be processed by a decoder (e.g., decoder 414 or 415). A decoded signal may then be linearly mapped to a pixel space to provide recovered view U′ at output signal 424 or recovered view V′ at output signal 426. Given a level of redundancy in images in content signal 402, it should be understood that a typical human may quickly recognize an image even with only partial observation of the image. Branch 422 may employ another view V of content signal 402 (e.g., according to a smudge transformation) that is different and distinct from a view of patches U of content signal 402.
According to an embodiment, input signals 406 and 408 to respective encoders 410 and 416 may be based on and/or extracted from different and distinct views of content signal 402. In one aspect, a “view” as referred to herein may refer to a projection of an aspect of a signal phenomenon onto a projection space. In a particular implementation, a view may comprise an image of one or more objects in a scene defined, at least in part, by a viewing location, range to the one or more objects and/or orientation of the one or more objects relative to the viewing location. In another particular implementation, a corresponding view of a content signal may comprise, for example, image frames capturing objects in a scene obtained from different viewing angles and/or different ranges, for example. In another particular implementation, corresponding views of a content signal may comprise results of different transformations applied to the same content signal. For a content signal comprising a pixelated image frame, for example, corresponding view may comprise results of different transformations applied to the pixelated image frame. Such different transformations applied to a pixelated image frame, transposition about an axis, blurring, distorting shapes of objects in the pixelated image frame, just to provide a few examples of a transformation that may be applied to a content signal to provide an associated view of the content signal. It should be understood, however, that these are merely examples of different views of a content signal may be obtained, and claimed subject matter is not limited in this respect. Additionally, a view of a content signal is not necessarily limited to an aspect of an image/image frame. For example, a view of a content signal may be directed to an aspect of other types of content components such as, for example, audio, text and/or other natural language expression. Here, such a view may be obtained from application of an augmentation such as increasing or decreasing a sample rate of an audio component of a content signal. For a view of a text or other natural language component of a content signal, a view may be obtained from replacing particular words with synonyms, or translating words or phrases to a different spoken/written language (e.g., translating words or phrases from English to Spanish).
According to an embodiment, encoder 410 and/or encoder 416 may implement one or more features to apply encoding operations to distinct views U and V of content signal 402 and provide encoded states WU and WV. In particular implementations, each of encoder 410 and 416 may comprise a ViT (e.g., as set forth in He et al.) and/or CNN to generate encoded states WU and/or WV based on views U and V of content signal 402. For example, aspects of views U and V (e.g., image signal intensity values of unmasked patches) may be provided as input signals to one or more neural networks forming encoder 410 and 416 to generate encoded states WU and/or WV as output tensors and/or predictions (e.g., output vectors) of the one or more neural networks.
According to an embodiment, parameters of an overall architecture (e.g., to include parameters of encoder 410, decoder 414, encoder 416 and decoder 415) may be determined in training epochs using backpropagation by applying a gradient of a loss function comprised of one or more reconstruction loss terms and a negative sample-free loss term together. Training epochs applying such a gradient of a loss function comprising one or more reconstruction loss terms and a negative sample-free loss term together may enable a simultaneous learning of fine-grained local features and global features, for example. A reconstruction loss (e.g., mean absolute error) may then be computed between original and reconstructed views U and U′ (also between original and reconstructed views V and V′) based solely on masked patches. Encoded states WU and WV may be condensed into global image features first to be used in computing LNSF. In a particular implementation, encoded states WU and WV may be modeled as two jointly multivariate Gaussian variables with zero mean. Additionally, covariance matrices KU∈dxd and KV∈
dxd of views U and V, respectively, may be full rank. As such, a negative sample-free contrastive loss LNSF may be computed (e.g., based on reasoning shown above in expressions (1) through (6)) according to expression (8) as follows:
L
NSF=Σi(1−RiiW
where:
A loss function Lssl to be applied in machine learning operations to determine
parameters of encoder 410, decoder 414, encoder 416 and/or decoder 415 may be formulated to include a negative sample-free contrastive loss term (e.g., computed according to expression (8)) as shown in (9) as follows:
L
ss
=L
rec(U,U′)+Lrec(V,V′)+α2LNSF (9)
where:
According to an embodiment, parameters defining features of a system and/or device to encode aspects of a content signal and/or decode such encoded aspects of a content signal may be determined using machine learning according to process 500 shown in
Block 502 may comprising obtaining views of a content signal of a training set such as, for example, distinct views U and V of content signal 402. In one example, a first view of a content signal obtained at block 502 may comprise an image frame. Encoder 410 at block 504 may process unmasked patches of such an image frame (e.g., provided as a first view) to compute an encoded state WU. Similarly, encoder 416 at block 506 may process unmasked patches of such a different image frame (provided as a second view of a content signal obtained at block 502) to compute an encoded state WV. Decoders 414 and 415 at blocks 508 and 510, respectively, may then decode encoded states WU and WV to provide a recovered first view and recovered second view, respectively. Block 512 may then update parameters of encoder 410, encoder 416, decoder 414 or decoder 415, or any combination thereof, based, at least in part on a cross-correlation of features of encoded states WU and WV (as incorporated in a loss function according to expression (9)). In the particular application of a loss function according to expressions (8) and (9), block 512 may further determine parameters of encoder 410, encoder 416, decoder 414 or decoder 415, or any combination thereof based, at least in part, on reconstruction losses based on differences between view U and reconstructed view U′ (Lrec(U,U′)) and/or based on differences between view V and reconstructed view V′ (Lrec(V,V′)). Such a reconstruction loss may be computed, for example as a means square error loss or mean absolute error loss, for example. As pointed out above, parameters to be updated at block 512 may comprise neural network weights, coefficients and/or other parameters to define encoder 410, encoder 416, decoder 414 or decoder 415, or a combination thereof.
In a particular implementation, block 512 may comprise updating parameters (e.g., neural network weights and/or coefficients) defining encoder 410, encoder 416, decoder 414 or decoder 415, or a combination thereof using back propagation based, at least in part, on a computed one or more gradients of a loss function (e.g., according to expressions (8) and/or (9)). Process 500 may be executed for multiple iterations/training epochs over multiple training sets. With use of a cross-correlation of features of encoded states WU and WV, block 512 may be capable of determining parameters of encoder 410, encoder 416, decoder 414 or decoder 415, or a combination thereof, to converge to acceptably accurate and/or reliable results with fewer/smaller sample batches.
In particular implementations, process 500 may provide certain advantages over other SSL approaches by learning better semantics and making training more efficient. For example, it can be shown that reconstruction loss components operating on a large percentage of invisible patches and contrastive loss components operating on a remaining smaller percentage of visible patches enables utilization of a larger portion of an image in training epochs. As such, use of contrastive loss components in a loss function employed in process 500 to train parameters of an encoder/decoder pair (e.g., weights of neural networks forming encoder 310 and decoder 314) may enable use of fewer training epochs (e.g., with fewer computing resources) to train the encoder/decoder pair to have a sufficient reconstruction accuracy.
One particular challenge in document processing relates to extracting tables and/or other structured objects for further analysis and/or processing. In practice, real-world table recognition scenarios (e.g., extracting tables from document images) may range from recognition in standard Word® and Latex documents to even more challenging electronic health records (EHR) and/or computer screen images. In particular scenarios, tables may be used to represent and communicate structured data in a wide range of document image types such as, for example, financial statements, scientific papers and electronic medical health documents, just to provide a few examples. Despite explosive growth in use of these types of document images, SSL approaches to processing such documents (e.g., feature detection and/or classification) have been limited to techniques applied in a natural image domain which may include, for example, application of detection models trained on human-labeled natural images.
Particular implementations described herein are directed to SSL approaches to document processing and/or analysis that consider particular tabular and/or structured document image domains. While table objects may provide a compact representation that a human can easily understand, recognizing and understanding table objects remains a challenge for machines since, unlike classic object detection classes, tables may have widely disparate sizes, types, styles and aspect ratios, for example. In other words, a table structure may vary greatly between document domains (e.g., Microsoft Word® vs graphical user interface (GUI) screenshot), and a large variety of table styles are feasible even within the same document format (e.g., borderless vs bordered).
Like encoder 310, encoder 610 may apply any one of several encoding techniques to generate encoded state 626. For example, in training operations, decoder 614 may apply computing operations to token-embedded encoded state 626 (e.g., compressed patches in combination with tokens of localization information from encoding operations applied by encoder 610) to provide a recovered/reconstructed image (not shown). According to an embodiment, detection of objects in image 602 may be facilitated, at least in part, by a feature pyramid network 628 and/or cascade mask region-based CNN (R-CNN) 630. In one particular implementation, aspects of cascade mask R-CNN 630 may be as shown by Zhaowei Cai and Nuno Vasconcelos, “Cascade R-CNN: High Quality Object Detection and Instance Segmentation,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019, ISSN 1939-3539.
According to an embodiment, feature pyramid network 628 may comprise a feature pyramid network (FPN) that may receive a single-scale image of an arbitrary size as an input (e.g., in an input tensor for a neural network), and output proportionally sized feature maps at multiple levels, in a fully convolutional fashion. In an implementation, such a process by an FPN may be applied independently of any particular backbone convolutional architecture. As such, an FPN may be applied as a generic solution for building feature pyramids within deep convolutional networks to be used in tasks like object detection. In a particular implementation, aspects of pyramid network 628 may be as shown by Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan and Serge Belongie, “Feature Pyramid Networks for Object Detection, arXiv:1612.03144v2, 19 Apr. 2017.
According to an embodiment, feature pyramid network 628 may comprise one or more neural networks to receive parameters and/or values from extractor 604 and/or decoder 614 formatted into one or more input tensors to be processed by feature pyramid network 628. Based, at least in part, on the one or more input tensors of the feature pyramid network 628, feature pyramid network 628 may compute one or more output tensors. An input tensor to one or more neural networks of cascade mask R-CNN 630 may be determined based, at least in part, on the one or more output tensors computed by feature pyramid network 628. According to an embodiment, an input tensor to a neural network of feature pyramid network 628 may be populated with tap values 632 which may be output signals from nodes of selected neural network layers of extractor 604 and decoder 614.
According to an embodiment, cascade mask R-CNN 630 may configure one or more detectors to solve a recognition problem to distinguish foreground objects from background and assigning the foreground objects object class labels, for example. Cascade mask R-CNN 630 may configure one or more detectors to solve a localization problem to, for example, define bounding boxes over different objects detected. Cascade mask R-CNN 630 may also configure one or more detectors to solve a classification problem to, for example, classify one or more objects detected to be within defined bounding boxes. In a particular implementation, parameters of detectors of cascade mask R-CNN 630 may be configured from one or more neural network layers that may be determined and/or tuned using training operations.
According to an embodiment, while a decoder (e.g., decoder 614) trained to provide a recovered content signal is executing, block 658 may populate an input tensor of one or more neural networks (e.g., one or more neural networks to implement feature pyramid 628 and/or cascade mask R-CNN 630) with values based at least in part, on intermediate states of the decoder. Such intermediate states may comprise, for example, output signals from nodes of selected neural network layers forming the decoder. Such selected neural network layers forming the decoder may precede an output layer that is to infer/predict reconstructed features of content signal 602. In another implementation, process 650 may further populate the one or more input tensors of the one or more neural networks with values based, at least in part, on intermediate states of an extractor that extracts samples at block 652 (e.g., output signals from nodes of selected neural network layers forming extractor 604). Block 660 may comprise executing one or more neural networks forming pyramid 628 and/or cascade mask R-CNN 630 to provide an output tensor. Block 662 may comprise detecting one or more features (e.g., objects) in a content signal samples at block 652 based, at least in part, on an output tensor provided at block 660.
Block 674 may comprise executing a decoder, such as decoder 614, to process the embedded state provided at block 672. In a particular implementation, an encoder executed at block 672 and a decoder executed at block 674 may trained based, at least in part, on a reconstruction of content signal provided in an output state of the decoder. For example, parameters of such an encoder executed at block 672 and decoder executed at block 674 may be pretrained according to process 750. In a particular implementation in which an encoder executed at block 672 and decoder executed at block 674 comprise neural networks, such parameters may comprise neural network weights associated with nodes that are trained, at least in part, in a self-supervised training operation.
Block 676 may comprise executing one or more first neural networks to provide an output tensor indicating detections of features in the content signal based, at least in part on an input tensor. The one or more first neural networks may comprise neural networks such as feature pyramid network 628 and/or cascade mask R-CNN) 630, for example. The input tensor may be populated with one or more intermediate states of the decoder executed at block 674. In a particular implementation, such detections of features by the one or more first neural networks may comprise classifications and localizations of objects in an image. As discussed in particular examples below, a content signal obtained from an electronic document may comprise screen images and/or screenshots of electronic health records. Here, an output tensor of the one or more first neural networks executed at block 676 may comprise classifications of objects such as tables, table columns or graphical user interface (GUI) elements, and localizations such as locations of these objects in the images of the content signal.
According to an embodiment, system 700 (
L
c
=L
MAE
+L
eBT, (10)
where:
In a particular implementation, LMAE may be formulated to compute a mean squared error (MSE) between reconstructed and original images (e.g., between X1 and recovered view X1′) in an image pixel space. Such an MSE in an image pixel space may comprise an MSE in image signal intensity values of pixels between X1 and recovered view X1′. Computation of LMAE may be limited to computation of an MSE over masked patches. It should be understood, however, that this is merely an example of how a reconstruction loss may be computed for LMAE may be, computed the loss only on masked patches.
In the presently illustrated embodiment, X may comprise an input image where X1,X2,X3 comprise augmented and/or varied views of input image X. For example, X1 may be provided by application of a weak augmentation 706 to X such as, for example, a resizing (e.g., random resize cropping and/or such that a shortest side is between 480 and 800 pixels while a longest side is no more than 1333 pixels, or such that a shortest side is between 307 and 512 pixels and a longest side is no more than 853 pixels), random horizontal flipping and/or adaptive binarization. Additionally, X2 and X3 may be provided by application of a strong augmentation 708 to X such as, for example, a smudge transform and/or dilation (e.g., in addition to a resizing and/or adaptive binarization). According to an embodiment, different augmentation operations may be applied by strong augmentation 708 to provide corresponding different and distinct augmentations X2 and X3.
Encoded states Y1,Y2,Y3 may comprise corresponding hidden/latent representations. In one aspect, an ideal and/or best representation Y may retain as much information about input image X as possible with a given representation constraint such as, for example, an information bottleneck (IB) framework set forth by Noam Slonim, Nir Friedman, and Naftali Tishby, “Multivariate Information Bottleneck,” Neural Computation, 18(8):1739-1789, Aug. 2006. As pointed out above, encoded states Y1,Y2,Y3 may comprise token-embedded encoded states where tokens associate patches (e.g., patches based on a compression operation applied to patches in X) with locations in an image (e.g., an image of X) in some manner. In one application of such an IB framework, n may denote a number of samples, d may denote a feature dimension, and Z2,Z3∈Rnxd may denote projected features. In one aspect, Z2 and Z3 may be modeled at least in part as two jointly multivariate Gaussian variables with zero means and respective covariance matrices K2, K3∈Rdxd of Z2, Z3 that are full rank. Correlation matrices for Z2 and Z3 may be provided by application of a projection 715 and/or 738 to encoded states Y2 and Y3. Projection 715 and/or 738 may be implemented, for example, as a two-layer/multi-layer perceptron with a 1024 dimensional output, for example. It should be understood, however, that this is merely an example of how projection 715 and/or 738 may be implemented, and claimed subject matter is not limited in this respect. In one particular implementation, projections 715 and 738 may comprise identical operations to map encoded states Y2 and Y3 to the same vector space as Z2 and Z3, respectively. In another implementation, projections 715 and 738 may comprise different operations to map encoded states Y2 and Y3 to different vector spaces.
In one implementation, a constraint according to an IB framework may compress view X2 into Z2 while preserving the information regarding Z3. Similarly, such a constraint may compress view X3 into Z3 while preserving information regarding Z2. In other words, X2 and X3 may be compressed as much as possible subject to a constraint according to an IB framework while also making Z2 and Z3 as informative about one another as possible. In one example, such a constraint may be set forth, at least in part, by θ in expression (11) as follows:
According to an embodiment, branch 720 may apply a relatively weak augmentation at block 706 and masking to obtain recovered view X1, and then follow a procedure introduced in MAE to compute a reconstructed loss for unmasked patches as LMAE to obtain X1′. Branch 722, on the other hand, may apply a relatively strong augmentation at block 708 applied twice to provide views X2 and X3. In one embodiment, encoders 710, 716 and 734 may comprise identical ViT encoders for use in providing a recovered view in branch 720 and in providing projected feature of views X2 and X3 as Z2 and Z3, respectively, in branch 722. In other embodiments, encoders 710, 716 and 734 may have different processing structures (e.g., neural networks with different topologies) and/or processing structures with different tunable parameters (e.g., neural network weights). In an embodiment, Z2 and Z3 may be expressed as correlation matrices computed to approach identity matrices.
In a particular implementation, loss function Lc according to expression (10) may be modeled according to expression (12) as follows:
L
c
=L
1
+L
2, (12)
where:
As may be observed from expression (10), h(X1) may be constant while an input distribution is fixed and h(Z2, X2)=h(Z3, X3)=0. It may be observed that minimizing an expected reconstruction error may equate to maximizing a lower bound on loss term L1 in expression (10). This may hold true even if Y is a function of a corrupted input (e.g., masked out image). Therefore, for example, a mean squared error (MSE) between an augmented the augmented image X1 and a reconstructed version X1′ (as LMAE) may be considered to be an equivalent of loss term L1. Remaining components of loss term L2 in expression (12) may be expressed according to expression (13) as follows:
L
2→log (|K2|)+log (|K3|)+β4 log (|K23|), (13)
where
K2 is a covariance matrix for Z2, K3 is a covariance matrix for Z3 and K23 is a cross-covariance matrix for Z2and Z3. An upper bound may be applied according to expression (14) as follows:
log (|K|)=log (Πi=1nλi)=Σi=1n log λi<Σi=1nλi2=∥K∥F2. (14)
Combining expressions (13) and (14), loss term L2 may be further simplified according to expression (15) as follows:
L
2
→∥K
2∥F2+∥K3∥F2+β∥K23∥F2 (15)
Assuming Z2 and Z3 are at least approximately zero mean, covariance matrix K23 may be computed as a cross-correlation matrix R23. Similarly, covariance matrices K2 and K3 may be computed as correlation matrices R2 and R3, respectively. Since a solution of zero matrices may be trivial in minimizing expression (15), such a solution may be circumvented by urging diagonal terms to be one and off-diagonal terms to be zero to simplify loss term L2 to provide a loss function component according to expression (16) as follows:
L
eBT=v31Σi(1−R2,ii)2+v31Σi(1−R3,ii)2+v32Σi(1−R23,ii)2+μ31ΣiΣj≠i(R3,ij)2+μ32ΣiΣj≠i(R3,ij)2 (16)
where v31, v32, μ31 and μ32 are hyperparameters for controlling diagonal and off-diagonal terms of corresponding matrices. In one implementation, values of v31=0.00255, v32=0.0051, μ31=0.5 and μ32=1.0 may be used to balance between auto-correlation and cross-correlation terms during training.
According to an embodiment, application of LeBT as L2 may provide an architecture that incorporates a combination of contrastive learning (by use of LeBT expression (16)) and regularized self-supervised learning (SSL) (e.g., with implementation of LMAE) to achieve improvement in training computing devices for both detection and classification of objects.
According to an embodiment, block 752 may comprise an initial “coarse” training of parameters of an encoder and decoder such as encoder 610 and decoder 614. Block 754 may comprise a subsequent “fine” training such as a loss function set forth in expression (10) or expression (11) having term computed at blocks 752 and 754. In such a fine training at block 754, labeled training sets may be applied to update/train parameters of encoder 610 and decoder 614, in addition to parameters of extractor 604, feature pyramid network 628 and/or cascade mask R-CNN 630. In an iteration/training epoch of such a fine training stage at block 754, a second loss function may be defined based, at least in part, on a comparison of labels associated with a training input from content signal 602 and a resulting inference generated by cascade mask R-CNN 630 in the localization and/or classification of objects. According to an embodiment, fine training stage at block 754 may be based on a loss function incorporating a localization loss component (Lloc) and a classification loss component (Lcls) according to expression (17) as follows:
L=L
loc
+L
cls (17)
Location loss component Lloc may be computed based, at least in part, on inferred positions of detected objects within associated bounding boxes. Classification loss component Lcls may be computed based, at least in part, on an inferred classification of objects detected to be located within bounding boxes. In a particular implementation, location loss component Lloc and classification loss component Lcls may be computed using techniques and methodologies shown by Lilian Weng, “Object Detection for Dummies Part 3: R-CNN Family,” Lil'Log, github, 17 Dec. 2017 and Lilian Weng, “Object Detection Part 4: Detection Models,” Lil'Log, github, 27 Dec. 2018. It should be understood, however, that these are merely examples of how a localization loss and a classification loss may be computed, and claimed subject matter is not limited in this respect.
In iterations of a fine training stage at block 754, parameters of encoder 610 and decoder 614, in addition to parameters of extractor 604, feature pyramid network 628 and/or cascade mask R-CNN 630 (e.g., neural network weights, coefficients and/or other neural network parameters) may be updated using backpropagation based, at least in part, on one or more computed gradients of the second loss function computed according to expression (17), for example.
According to an embodiment, block 752 may execute a first training operation to determine parameters of an encoder (such as an instance of encoder 610) to transform samples of a content signal obtained from an electronic document to an embedded state, and to determine parameters of a decoder (such as an instance of decoder 614) to transform the embedded state to a reconstruction of at least a portion of the content signal. The embedded state may comprise encoded samples of the content signal and tokens associating the encoded samples with positional references in the content signal. Following a first training operation at block 752, block 754 may execute a second training operation to determine parameters of one or more first neural networks to detect features in the content signal based, at least in part, on an input tensor populated with intermediate states of the decoder.
According to an embodiment, a first training operation at block 752 may comprise: computing a first term of a first loss function based, at least in part, on a reconstruction loss and a contrastive loss (e.g., according to expression (10)). Parameters of the encoder and decoder may then be based, at least in part, on a gradient of the first loss function in a backpropagation process. In an implementation, such a contrastive loss may comprise applying of an instance of the decoder to multiple distinct views of a training set content signal to provide multiple encoded views; and computing a cross-correlation of projections of at least two of the encoded views, for example.
According to an embodiment, the second training operation at block 754 may further comprise: executing the one or more first neural networks to compute an inference; and computing a loss function based, at least in part, on the computed inference. Such a loss function applied at block 754 may comprise at least a localization loss term and a classification loss term (e.g., as shown in expression (17)). In a particular implementation, such a localization loss term may be based, at least in part, on an inferred localization of detected objects within one or more bounding boxes defined in an image. Such a classification loss term may be based, at least in part, on an inferred classification of the detected objects.
According to an embodiment, a second training operation at block 754 may further comprise determining parameters of an extractor (e.g., an instance of extractor 604) to map the content signal to the samples of the content signal. Such the parameters of the extractor comprise parameters of one or more second neural networks. In a particular implementation, the input tensor of the one or more first neural networks may be further populated with intermediate states of the one or more second neural networks.
It should be appreciated that embodiments of an approach to training system 600 using a coarse SSL training stage followed by a finer training stage with labeled data sets (e.g., according to process 750) have shown superior performance over techniques to train such a computing device using merely an SSL training stage or merely a supervised training stage (with labeled data sets). This has been demonstrated using a TableBank dataset and an EHRBank dataset. TableBank dataset comprises a publicly available image-based table dataset for Word® and Latex containing 417K high-quality tables labeled with a weak supervision split across Word® and Latex sets (with a Word document sets containing English, Chinese, Japanese, Arabic, and other languages, while areas the Latex document set is primarily in English. EHRBank Dataset comprises a systematically curated dataset of screen images from real-world electronic health record (EHR) systems, which consists of screenshots collected by bots as they navigate EHR systems of ten US health systems from various EHR providers. Particular screens may then be selected to include essential template screens and labeled by an internal team of labelers, including tables, table columns, and other graphical user interface (GUI) elements. Details of TableBank dataset and an EHRBank dataset composition are summarized in Table 1 below. It is noted that that the unlabeled EHRBank Screenshot dataset (shown in the last row) was used only for an initial coarse training.
For the EHRBank Column dataset, images were further cropped to just tables, removing examples that were occluded from overlays. In addition to the aforementioned supervised dataset with labeled objects, an unlabeled screenshot dataset was collected from records and video recordings of hospital staff interacting with an EHR system. Randomly sampled frames were obtained from screen recordings randomly sampled from the database. Randomly sampled frames were split into two parts to account for staff members having a dual monitor set up. Randomly sampled frames without tables or columns, and sampled frames corrupted due to the splitting process, were removed to provide a dataset containing 28,121 PNG images of resolution of 1920×1080, which corresponds with 10.8% of the volume of the TableBank dataset.
Results for table detection on the TableBank dataset for detection average-precision (AP) are shown in
It may be observed that REGCLR may perform particularly well for pretraining with the EHRBank Screenshot dataset, increasing AP scores relatively by 4.8% for detection of table objects and 11.8% for column over the ResNET supervised baseline, as seen by comparing the first and second rows of Table 3 below. Despite an initial coarse training stage with approximately 10% volumes of TableBank, REGCLR was shown to fast approach the best cross-domain transfer results from TableBank to EHRBank in the last row of Table 3.
Results of detection of GUI elements in an EHRBank GUI test set based on detection AP and AP75 are summarized in Table 4 below, while results of detection of GUI elements based on detection AP for individual GUI elements is shown in Table 5 below (where AP75 is a precision evaluated at a 75% intersection-over-union (IoU) threshold). As may be observed, REGCLR appears to outperform baselines in both AP and AP75. Specifically, REGCLR appears to outperform baselines in eight of twelve categories while MAE appears to perform even worse than ResNet in six.
Test sets were evaluated for REGCLR applied to the subsets of 1k, 2k, 5k, 10k, and 20k sizes. In the present experiment, 10,000 iterations with a batch size of 12 were used. As shown in
For the EHRBank dataset, REGCLR was evaluated on internal EHRBank dataset. As shown in Table 3, when pretrained on unlabeled EHRBank, REGCLR outperforms baselines in both Table and Column detection, increasing relative AP scores by 4.8% and 11.8% respectively over the ResNET baseline, as seen by comparing the first and second rows of Table 3. Furthermore, even though pretrained with only around 10% of TableBank volume, REGCLR is shown to quickly approach a best cross-domain transfer performance from TableBank to EHRBank, as shown in the last row of Table 3. Additionally, it may be observed that MAE is shown to perform worse than even ResNet on Table 3 when pretrained on EHRBank (by comparing the first and third rows). MAE may, however, transfer better than REGCLR in scenarios involving cross-domain transfer from public TableBank to private EHRBank (by comparing the last two rows of Table 3). Table 5 presents results for detection of GUI elements detection, for which a coarse stage training for REGCLR was based on EHRBank Screenshot again produces the highest overall detection scores compared to baselines. As such, it may be observed that REGCLR may improve performance even in more complicated scenarios with a larger number of classes and possible occlusions between different GUI elements. Performance variation across different
GUI categories is also presented in Table 5.
In the context of the present patent application, the term “connection,” the term “component” and/or similar terms are intended to be physical but are not necessarily always tangible. Whether or not these terms refer to tangible subject matter, thus, may vary in a particular context of usage. As an example, a tangible connection and/or tangible connection path may be made, such as by a tangible, electrical connection, such as an electrically conductive path comprising metal or other conductor, that is able to conduct electrical current between two tangible components. Likewise, a tangible connection path may be at least partially affected and/or controlled, such that, as is typical, a tangible connection path may be open or closed, at times resulting from influence of one or more externally derived signals, such as external currents and/or voltages, such as for an electrical switch. Non-limiting illustrations of an electrical switch include a transistor, a diode, etc. However, a “connection” and/or “component,” in a particular context of usage, likewise, although physical, can also be non-tangible, such as a connection between a client and a server over a network, particularly a wireless network, which generally refers to the ability for the client and server to transmit, receive, and/or exchange communications, as discussed in more detail later.
In a particular context of usage, such as a particular context in which tangible components are being discussed, therefore, the terms “coupled” and “connected” are used in a manner so that the terms are not synonymous. Similar terms may also be used in a manner in which a similar intention is exhibited. Thus, “connected” is used to indicate that two or more tangible components and/or the like, for example, are tangibly in direct physical contact. Thus, using the previous example, two tangible components that are electrically connected are physically connected via a tangible electrical connection, as previously discussed. However, “coupled,” is used to mean that potentially two or more tangible components are tangibly in direct physical contact. Nonetheless, “coupled” is also used to mean that two or more tangible components and/or the like are not necessarily tangibly in direct physical contact, but are able to co-operate, liaise, and/or interact, such as, for example, by being “optically coupled.” Likewise, the term “coupled” is also understood to mean indirectly connected. It is further noted, in the context of the present patent application, since memory, such as a memory component and/or memory states, is intended to be non-transitory, the term physical, at least if used in relation to memory necessarily implies that such memory components and/or memory states, continuing with the example, are tangible.
Unless otherwise indicated, in the context of the present patent application, the term “or” if used to associate a list, such as A, B, or C, is intended to mean A, B, and C, here used in the inclusive sense, as well as A, B, or C, here used in the exclusive sense. With this understanding, “and” is used in the inclusive sense and intended to mean A, B, and C; whereas “and/or” can be used in an abundance of caution to make clear that all of the foregoing meanings are intended, although such usage is not required. In addition, the term “one or more” and/or similar terms is used to describe any feature, structure, characteristic, and/or the like in the singular, “and/or” is also used to describe a plurality and/or some other combination of features, structures, characteristics, and/or the like. Likewise, the term “based on” and/or similar terms are understood as not necessarily intending to convey an exhaustive list of factors, but to allow for existence of additional factors not necessarily expressly described.
Furthermore, it is intended, for a situation that relates to implementation of claimed subject matter and is subject to testing, measurement, and/or specification regarding degree, that the particular situation be understood in the following manner. As an example, in a given situation, assume a value of a physical property is to be measured. If alternatively reasonable approaches to testing, measurement, and/or specification regarding degree, at least with respect to the property, continuing with the example, is reasonably likely to occur to one of ordinary skill, at least for implementation purposes, claimed subject matter is intended to cover those alternatively reasonable approaches unless otherwise expressly indicated. As an example, if a plot of measurements over a region is produced and implementation of claimed subject matter refers to employing a measurement of slope over the region, but a variety of reasonable and alternative techniques to estimate the slope over that region exist, claimed subject matter is intended to cover those reasonable alternative techniques unless otherwise expressly indicated.
To the extent claimed subject matter is related to one or more particular measurements, such as with regard to physical manifestations capable of being measured physically, such as, without limit, temperature, pressure, voltage, current, electromagnetic radiation, etc., it is believed that claimed subject matter does not fall with the abstract idea judicial exception to statutory subject matter. Rather, it is asserted, that physical measurements are not mental steps and, likewise, are not abstract ideas.
It is noted, nonetheless, that a typical measurement model employed is that one or more measurements may respectively comprise a sum of at least two components. Thus, for a given measurement, for example, one component may comprise a deterministic component, which in an ideal sense, may comprise a physical value (e.g., sought via one or more measurements), often in the form of one or more signals, signal samples and/or states, and one component may comprise a random component, which may have a variety of sources that may be challenging to quantify. At times, for example, lack of measurement precision may affect a given measurement. Thus, for claimed subject matter, a statistical or stochastic model may be used in addition to a deterministic model as an approach to identification and/or prediction regarding one or more measurement values that may relate to claimed subject matter.
For example, a relatively large number of measurements may be collected to better estimate a deterministic component. Likewise, if measurements vary, which may typically occur, it may be that some portion of a variance may be explained as a deterministic component, while some portion of a variance may be explained as a random component. Typically, it is desirable to have stochastic variance associated with measurements be relatively small, if feasible. That is, typically, it may be preferable to be able to account for a reasonable portion of measurement variation in a deterministic manner, rather than a stochastic matter as an aid to identification and/or predictability.
Along these lines, a variety of techniques have come into use so that one or more measurements may be processed to better estimate an underlying deterministic component, as well as to estimate potentially random components. These techniques, of course, may vary with details surrounding a given situation. Typically, however, more complex problems may involve use of more complex techniques. In this regard, as alluded to above, one or more measurements of physical manifestations may be modelled deterministically and/or stochastically. Employing a model permits collected measurements to potentially be identified and/or processed, and/or potentially permits estimation and/or prediction of an underlying deterministic component, for example, with respect to later measurements to be taken. A given estimate may not be a perfect estimate; however, in general, it is expected that on average one or more estimates may better reflect an underlying deterministic component, for example, if random components that may be included in one or more obtained measurements, are considered. Practically speaking, of course, it is desirable to be able to generate, such as through estimation approaches, a physically meaningful model of processes affecting measurements to be taken.
In some situations, however, as indicated, potential influences may be complex. Therefore, seeking to understand appropriate factors to consider may be particularly challenging. In such situations, it is, therefore, not unusual to employ heuristics with respect to generating one or more estimates. Heuristics refers to use of experience related approaches that may reflect realized processes and/or realized results, such as with respect to use of historical measurements, for example. Heuristics, for example, may be employed in situations where more analytical approaches may be overly complex and/or nearly intractable. Thus, regarding claimed subject matter, an innovative feature may include, in an example embodiment, heuristics that may be employed, for example, to estimate and/or predict one or more measurements.
It is further noted that the terms “type” and/or “like,” if used, such as with a feature, structure, characteristic, and/or the like, using “optical” or “electrical” as simple examples, means at least partially of and/or relating to the feature, structure, characteristic, and/or the like in such a way that presence of minor variations, even variations that might otherwise not be considered fully consistent with the feature, structure, characteristic, and/or the like, do not in general prevent the feature, structure, characteristic, and/or the like from being of a “type” and/or being “like,” (such as being an “optical-type” or being “optical-like,” for example) if the minor variations are sufficiently minor so that the feature, structure, characteristic, and/or the like would still be considered to be substantially present with such variations also present. Thus, continuing with this example, the terms optical-type and/or optical-like properties are necessarily intended to include optical properties. Likewise, the terms electrical-type and/or electrical-like properties, as another example, are necessarily intended to include electrical properties. It should be noted that the specification of the present patent application merely provides one or more illustrative examples and claimed subject matter is intended to not be limited to one or more illustrative examples; however, again, as has always been the case with respect to the specification of a patent application, particular context of description and/or usage provides helpful guidance regarding reasonable inferences to be drawn.
The term electronic file and/or the term electronic document are used throughout this document to refer to a set of stored memory states and/or a set of physical signals associated in a manner so as to thereby at least logically form a file (e.g., electronic) and/or an electronic document. That is, it is not meant to implicitly reference a particular syntax, format and/or approach used, for example, with respect to a set of associated memory states and/or a set of associated physical signals. If a particular type of file storage format and/or syntax, for example, is intended, it is referenced expressly. It is further noted an association of memory states, for example, may be in a logical sense and not necessarily in a tangible, physical sense. Thus, although signal and/or state components of a file and/or an electronic document, for example, are to be associated logically, storage thereof, for example, may reside in one or more different places in a tangible, physical memory, in an embodiment.
A Hyper Text Markup Language (“HTML”), for example, may be utilized to specify digital content and/or to specify a format thereof, such as in the form of an electronic file and/or an electronic document, such as a Web page, Web site, etc., for example. An Extensible Markup Language (“XML”) may also be utilized to specify digital content and/or to specify a format thereof, such as in the form of an electronic file and/or an electronic document, such as a Web page, Web site, etc., in an embodiment. Of course, HTML and/or XML are merely examples of “markup” languages, provided as non-limiting illustrations. Furthermore, HTML and/or XML are intended to refer to any version, now known and/or to be later developed, of these languages. Likewise, claimed subject matter are not intended to be limited to examples provided as illustrations, of course.
In the context of the present patent application, the terms “entry,” “electronic entry,” “document,” “electronic document,” “content”, “digital content,” “item,” and/or similar terms are meant to refer to signals and/or states in a physical format, such as a digital signal and/or digital state format, e.g., that may be perceived by a user if displayed, played, tactilely generated, etc. and/or otherwise executed by a device, such as a digital device, including, for example, a computing device, but otherwise might not necessarily be readily perceivable by humans (e.g., if in a digital format). Likewise, in the context of the present patent application, digital content provided to a user in a form so that the user is able to readily perceive the underlying content itself (e.g., content presented in a form consumable by a human, such as hearing audio, feeling tactile sensations and/or seeing images, as examples) is referred to, with respect to the user, as “consuming” digital content, “consumption” of digital content, “consumable” digital content and/or similar terms. For one or more embodiments, an electronic document and/or an electronic file may comprise a Web page of code (e.g., computer instructions) in a markup language executed or to be executed by a computing and/or networking device, for example. In another embodiment, an electronic document and/or electronic file may comprise a portion and/or a region of a Web page. However, claimed subject matter is not intended to be limited in these respects.
Also, for one or more embodiments, an electronic document and/or electronic file may comprise a number of components. As previously indicated, in the context of the present patent application, a component is physical, but is not necessarily tangible. As an example, components with reference to an electronic document and/or electronic file, in one or more embodiments, may comprise text, for example, in the form of physical signals and/or physical states (e.g., capable of being physically displayed). Typically, memory states, for example, comprise tangible components, whereas physical signals are not necessarily tangible, although signals may become (e.g., be made) tangible, such as if appearing on a tangible display, for example, as is not uncommon. Also, for one or more embodiments, components with reference to an electronic document and/or electronic file may comprise a graphical object, such as, for example, an image, such as a digital image, and/or sub-objects, including attributes thereof, which, again, comprise physical signals and/or physical states (e.g., capable of being tangibly displayed). In an embodiment, digital content may comprise, for example, text, images, audio, video, and/or other types of electronic documents and/or electronic files, including portions thereof, for example.
Also, in the context of the present patent application, the term “parameters” (e.g., one or more parameters), “values” (e.g., one or more values), “symbols” (e.g., one or more symbols) “bits” (e.g., one or more bits), “elements” (e.g., one or more elements), “characters” (e.g., one or more characters), “numbers” (e.g., one or more numbers), “numerals” (e.g., one or more numerals) or “measurements” (e.g., one or more measurements) refer to material descriptive of a collection of signals, such as in one or more electronic documents and/or electronic files, and exist in the form of physical signals and/or physical states, such as memory states. For example, one or more parameters, values, symbols, bits, elements, characters, numbers, numerals or measurements, such as referring to one or more aspects of an electronic document and/or an electronic file comprising an image, may include, as examples, time of day at which an image was captured, latitude and longitude of an image capture device, such as a camera, for example, etc. In another example, one or more parameters, values, symbols, bits, elements, characters, numbers, numerals or measurements, relevant to digital content, such as digital content comprising a technical article, as an example, may include one or more authors, for example. Claimed subject matter is intended to embrace meaningful, descriptive parameters, values, symbols, bits, elements, characters, numbers, numerals or measurements in any format, so long as the one or more parameters, values, symbols, bits, elements, characters, numbers, numerals or measurements comprise physical signals and/or states, which may include, as parameter, value, symbol bits, elements, characters, numbers, numerals or measurements examples, collection name (e.g., electronic file and/or electronic document identifier name), technique of creation, purpose of creation, time and date of creation, logical path if stored, coding formats (e.g., type of computer instructions, such as a markup language) and/or standards and/or specifications used so as to be protocol compliant (e.g., meaning substantially compliant and/or substantially compatible) for one or more uses, and so forth.
Signal packet communications and/or signal frame communications, also referred to as signal packet transmissions and/or signal frame transmissions (or merely “signal packets” or “signal frames”), may be communicated between nodes of a network, where a node may comprise one or more network devices and/or one or more computing devices, for example. As an illustrative example, but without limitation, a node may comprise one or more sites employing a local network address, such as in a local network address space. Likewise, a device, such as a network device and/or a computing device, may be associated with that node. It is also noted that in the context of this patent application, the term “transmission” is intended as another term for a type of signal communication that may occur in any one of a variety of situations. Thus, it is not intended to imply a particular directionality of communication and/or a particular initiating end of a communication path for the “transmission” communication. For example, the mere use of the term in and of itself is not intended, in the context of the present patent application, to have particular implications with respect to the one or more signals being communicated, such as, for example, whether the signals are being communicated “to” a particular device, whether the signals are being communicated “from” a particular device, and/or regarding which end of a communication path may be initiating communication, such as, for example, in a “push type” of signal transfer or in a “pull type” of signal transfer. In the context of the present patent application, push and/or pull type signal transfers are distinguished by which end of a communications path initiates signal transfer.
Thus, a signal packet and/or frame may, as an example, be communicated via a communication channel and/or a communication path, such as comprising a portion of the Internet and/or the Web, from a site via an access node coupled to the Internet or vice-versa. Likewise, a signal packet and/or frame may be forwarded via network nodes to a target site coupled to a local network, for example. A signal packet and/or frame communicated via the Internet and/or the Web, for example, may be routed via a path, such as either being “pushed” or “pulled,” comprising one or more gateways, servers, etc. that may, for example, route a signal packet and/or frame, such as, for example, substantially in accordance with a target and/or destination address and availability of a network path of network nodes to the target and/or destination address. Although the Internet and/or the Web comprise a network of interoperable networks, not all of those interoperable networks are necessarily available and/or accessible to the public. According to an embodiment, a signal packet and/or frame may comprise all or a portion of a “message” transmitted between devices. In an implementation, a message may comprise signals and/or states expressing content to be delivered to a recipient device. For example, a message may at least in part comprise a physical signal in a transmission medium that is modulated by content that is to be stored in a non-transitory storage medium at a recipient device, and subsequently processed.
In the context of the particular patent application, a network protocol, such as for communicating between devices of a network, may be characterized, at least in part, substantially in accordance with a layered description, such as the so-called Open Systems Interconnection (OSI) seven layer type of approach and/or description. A network computing and/or communications protocol (also referred to as a network protocol) refers to a set of signaling conventions, such as for communication transmissions, for example, as may take place between and/or among devices in a network. In the context of the present patent application, the term “between” and/or similar terms are understood to include “among” if appropriate for the particular usage and vice-versa. Likewise, in the context of the present patent application, the terms “compatible with,” “comply with” and/or similar terms are understood to respectively include substantial compatibility and/or substantial compliance.
A network protocol, such as protocols characterized substantially in accordance with the aforementioned OSI description, has several layers. These layers are referred to as a network stack. Various types of communications (e.g., transmissions), such as network communications, may occur across various layers. A lowest level layer in a network stack, such as the so-called physical layer, may characterize how symbols (e.g., bits and/or bytes) are communicated as one or more signals (and/or signal samples) via a physical medium (e.g., twisted pair copper wire, coaxial cable, fiber optic cable, wireless air interface, combinations thereof, etc.). Progressing to higher-level layers in a network protocol stack, additional operations and/or features may be available via engaging in communications that are substantially compatible and/or substantially compliant with a particular network protocol at these higher-level layers. For example, higher-level layers of a network protocol may, for example, affect device permissions, user permissions, etc.
In one example embodiment, as shown in
Example devices in
Referring now to
For one or more embodiments, a device, such as a computing device and/or networking device, may comprise, for example, any of a wide range of digital electronic devices, including, but not limited to, desktop and/or notebook computers, high-definition televisions, digital versatile disc (DVD) and/or other optical disc players and/or recorders, game consoles, satellite television receivers, cellular telephones, tablet devices, wearable devices, personal digital assistants, mobile audio and/or video playback and/or recording devices, Internet of Things (IoT) type devices, or any combination of the foregoing. Further, unless specifically stated otherwise, a process as described, such as with reference to flow diagrams and/or otherwise, may also be executed and/or affected, in whole or in part, by a computing device and/or a network device. A device, such as a computing device and/or network device, may vary in terms of capabilities and/or features. Claimed subject matter is intended to cover a wide range of potential variations. For example, a device may include a numeric keypad and/or other display of limited functionality, such as a monochrome liquid crystal display (LCD) for displaying text, for example. In contrast, however, as another example, a web-enabled device may include a physical and/or a virtual keyboard, mass storage, one or more accelerometers, one or more gyroscopes, GNSS receiver and/or other location-identifying type capability, and/or a display with a higher degree of functionality, such as a touch-sensitive color 5D or 3D display, for example.
In
Memory 822 may comprise any non-transitory storage mechanism. Memory 822 may comprise, for example, primary memory 824 and secondary memory 826, additional memory circuits, mechanisms, or combinations thereof may be used. Memory 822 may comprise, for example, random access memory, read only memory, etc., such as in the form of one or more storage devices and/or systems, such as, for example, a disk drive including an optical disc drive, a tape drive, a solid-state memory drive, etc., just to name a few examples.
Memory 822 may be utilized to store a program of executable computer instructions. For example, processor 820 may fetch executable instructions from memory and proceed to execute the fetched instructions. Memory 822 may also comprise a memory controller for accessing device readable-medium 840 that may carry and/or make accessible digital content, which may include code, and/or instructions, for example, executable by processor 820 and/or some other device, such as a controller, as one example, capable of executing computer instructions, for example. Under direction of processor 820, a non-transitory memory, such as memory cells storing physical states (e.g., memory states), comprising, for example, a program of executable computer instructions, may be executed by processor 820 and able to generate signals to be communicated via a network, for example, as previously described. Generated signals may also be stored in memory, also previously suggested.
Memory 822 may store electronic files and/or electronic documents, such as relating to one or more users, and may also comprise a computer-readable medium that may carry and/or make accessible content, including code and/or instructions, for example, executable by processor 820 and/or some other device, such as a controller, as one example, capable of executing computer instructions, for example. As previously mentioned, the term electronic file and/or the term electronic document are used throughout this document to refer to a set of stored memory states and/or a set of physical signals associated in a manner so as to thereby form an electronic file and/or an electronic document. That is, it is not meant to implicitly reference a particular syntax, format and/or approach used, for example, with respect to a set of associated memory states and/or a set of associated physical signals. It is further noted an association of memory states, for example, may be in a logical sense and not necessarily in a tangible, physical sense. Thus, although signal and/or state components of an electronic file and/or electronic document, are to be associated logically, storage thereof, for example, may reside in one or more different places in a tangible, physical memory, in an embodiment.
Algorithmic descriptions and/or symbolic representations are examples of techniques used by those of ordinary skill in the signal processing and/or related arts to convey the substance of their work to others skilled in the art. An algorithm is, in the context of the present patent application, and generally, is considered to be a self-consistent sequence of operations and/or similar signal processing leading to a desired result. In the context of the present patent application, operations and/or processing involve physical manipulation of physical quantities. Typically, although not necessarily, such quantities may take the form of electrical and/or magnetic signals and/or states capable of being stored, transferred, combined, compared, processed and/or otherwise manipulated, for example, as electronic signals and/or states making up components of various forms of digital content, such as signal measurements, text, images, video, audio, etc.
It has proven convenient at times, principally for reasons of common usage, to refer to such physical signals and/or physical states as bits, values, elements, parameters, symbols, characters, terms, samples, observations, weights, numbers, numerals, measurements, content and/or the like. It should be understood, however, that all of these and/or similar terms are to be associated with appropriate physical quantities and are merely convenient labels. Unless specifically stated otherwise, as apparent from the preceding discussion, it is appreciated that throughout this specification discussions utilizing terms such as “processing,” “computing,” “calculating,” “determining”, “establishing”, “obtaining”, “identifying”, “selecting”, “generating”, and/or the like may refer to actions and/or processes of a specific apparatus, such as a special purpose computer and/or a similar special purpose computing and/or network device. In the context of this specification, therefore, a special purpose computer and/or a similar special purpose computing and/or network device is capable of processing, manipulating and/or transforming signals and/or states, typically in the form of physical electronic and/or magnetic quantities, within memories, registers, and/or other storage devices, processing devices, and/or display devices of the special purpose computer and/or similar special purpose computing and/or network device. In the context of this particular patent application, as mentioned, the term “specific apparatus” therefore includes a general purpose computing and/or network device, such as a general purpose computer, once it is programmed to perform particular functions, such as pursuant to program software instructions.
In some circumstances, operation of a memory device, such as a change in state from a binary one to a binary zero or vice-versa, for example, may comprise a transformation, such as a physical transformation. With particular types of memory devices, such a physical transformation may comprise a physical transformation of an article to a different state or thing. For example, but without limitation, for some types of memory devices, a change in state may involve an accumulation and/or storage of charge or a release of stored charge. Likewise, in other memory devices, a change of state may comprise a physical change, such as a transformation in magnetic orientation. Likewise, a physical change may comprise a transformation in molecular structure, such as from crystalline form to amorphous form or vice-versa. In still other memory devices, a change in physical state may involve quantum mechanical phenomena, such as, superposition, entanglement, and/or the like, which may involve quantum bits (qubits), for example. The foregoing is not intended to be an exhaustive list of all examples in which a change in state from a binary one to a binary zero or vice-versa in a memory device may comprise a transformation, such as a physical, but non-transitory, transformation. Rather, the foregoing is intended as illustrative examples.
Referring again to
According to an embodiment, a neural network may comprise a graph comprising nodes to model neurons in a brain. In this context, a “neural network” as referred to herein means an architecture of a processing device defined and/or represented by a graph including nodes to represent neurons that process input signals to generate output signals, and edges connecting the nodes to represent input and/or output signal paths between and/or among neurons represented by the graph. In particular implementations, a neural network may comprise a biological neural network, made up of real biological neurons, or an artificial neural network, made up of artificial neurons, for solving artificial intelligence (AI) problems, for example. In an implementation, such an artificial neural network may be implemented by one or more computing devices such as computing devices including a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) unit and/or neural processing unit (NPU), just to provide a few examples. In a particular implementation, neural network weights and/or numerical coefficients associated with edges to represent input and/or output paths may reflect gains to be applied and/or whether an associated connection between connected nodes is to be excitatory (e.g., weight with a positive value) or inhibitory connections (e.g., weight with negative value). In an example implementation, a neuron may apply a neural network weight to input signals, and sum weighted input signals to generate a linear combination.
According to an embodiment, edges in a neural network connecting nodes may model synapses capable of transmitting signals (e.g., represented by real number values) between neurons. Responsive to receipt of such a signal, a node/neural may perform some computation to generate an output signal (e.g., to be provided to another node in the neural network connected by an edge). Such an output signal may be based, at least in part, on one or more weights and/or numerical coefficients associated with the node and/or edges providing the output signal. For example, such a weight may increase or decrease a strength of an output signal. In a particular implementation, such weights and/or numerical coefficients may be adjusted and/or updated as a machine learning process progresses. In an implementation, transmission of an output signal from a node in a neural network may be inhibited if a strength of the output signal does not exceed a threshold value.
According to an embodiment, a node 1002, 1004 and/or 1006 may process input signals (e.g., received on one or more incoming edges) to provide output signals (e.g., on one or more outgoing edges) according to an activation function. An “activation function” as referred to herein means a set of one or more operations associated with a node of a neural network to map one or more input signals to one or more output signals. In a particular implementation, such an activation function may be defined based, at least in part, on a weight associated with a node of a neural network. Operations of an activation function to map one or more input signals to one or more output signals may comprise, for example, identity, binary step, logistic (e.g., sigmoid and/or soft step), hyperbolic tangent, rectified linear unit, Gaussian error linear unit, Softplus, exponential linear unit, scaled exponential linear unit, leaky rectified linear unit, parametric rectified linear unit, sigmoid linear unit, Swish, Mish, Gaussian and/or growing cosine unit operations. It should be understood, however, that these are merely examples of operations that may be applied to map input signals of a node to output signals in an activation function, and claimed subject matter is not limited in this respect. Additionally, an “activation input value” as referred to herein means a value provided as an input parameter and/or signal to an activation function defined and/or represented by a node in a neural network. Likewise, an “activation output value” as referred to herein means an output value provided by an activation function defined and/or represented by a node of a neural network. In a particular implementation, an activation output value may be computed and/or generated according to an activation function based on and/or responsive to one or more activation input values received at a node. In a particular implementation, an activation input value and/or activation output value may be structured, dimensioned and/or formatted as “tensors”. Thus, in this context, an “activation input tensor” or “input tensor” as referred to herein means an expression of one or more activation input values according to a particular structure, dimension and/or format. Likewise in this context, an “activation output tensor” or “output tensor” as referred to herein means an expression of one or more activation output values according to a particular structure, dimension and/or format.
According to an embodiment, neural network 1000 may be characterized as having a particular structure or topology based on, for example. a number of layers, number of nodes in each layers, activation functions implemented at each node, quantization of weights and quantization of input/output activations. Neural network 1000 may be further characterized by weights to be assigned to nodes to affect activation functions at respective nodes. During execution, neural network 1000 may be characterized as having a particular state or “intermediate state” determined based on values/signals computed by nodes (e.g., as activation values to be provided to nodes in a subsequent layer of nodes and/or an output tensor).
In particular implementations, neural networks may enable improved results in a wide range of tasks, including image recognition, speech recognition, just to provide a couple of example applications. To enable performing such tasks, features of a neural network (e.g., nodes, edges, weights, layers of nodes and edges) may be structured and/or configured to form “filters” that may have a measurable/numerical state such as a value of an output signal. Such a filter may comprise nodes and/or edges arranged in “paths” and are to be responsive to sensor observations provided as input signals. In an implementation, a state and/or output signal of such a filter may indicate and/or infer detection of a presence or absence of a feature in an input signal.
In particular implementations, intelligent computing devices to perform functions supported by neural networks may comprise a wide variety of stationary and/or mobile devices, such as, for example, automobile sensors, biochip transponders, heart monitoring implants, Internet of things (IoT) devices, kitchen appliances, locks or like fastening devices, solar panel arrays, home gateways, smart gauges, robots, financial trading platforms, smart telephones, cellular telephones, security cameras, wearable devices, thermostats, Global Positioning System (GPS) transceivers, personal digital assistants (PDAs), virtual assistants, laptop computers, personal entertainment systems, tablet personal computers (PCs), PCs, personal audio or video devices, personal navigation devices, just to provide a few examples.
According to an embodiment, a neural network may be structured in layers such that a node in a particular neural network layer may receive output signals from one or more nodes in an upstream layer in the neural network, and provide an output signal to one or more nodes in a downstream layer in the neural network. One specific class of layered neural networks may comprise a convolutional neural network (CNN) or space invariant artificial neural networks (SIANN) that enable deep learning. Such CNNs and/or SIANNs may be based, at least in part, on a shared-weight architecture of a convolution kernels that shift over input features and provide translation equivariant responses. Such CNNs and/or SIANNs may be applied to image and/or video recognition, recommender systems, image classification, image segmentation, medical image analysis, natural language processing (e.g., medical records processing), brain-computer interfaces, financial time series, just to provide a few examples.
Another class of layered neural network may comprise a recursive neural network (RNN) that is a class of neural networks in which connections between nodes form a directed cyclic graph along a temporal sequence. Such a temporal sequence may enable modeling of temporal dynamic behavior. In an implementation, an RNN may employ an internal state (e.g., memory) to process variable length sequences of inputs. This may be applied, for example, to tasks such as unsegmented, connected handwriting recognition or speech recognition, just to provide a few examples. In particular implementations, an RNN may emulate temporal behavior using finite impulse response (FIR) or infinite impulse response (IIR) structures. An RNN may include additional structures to control stored states of such FIR and IIR structures to be aged. Structures to control such stored states may include a network or graph that incorporates time delays and/or has feedback loops, such as in long short-term memory networks (LSTMs) and gated recurrent units.
According to an embodiment, output signals of one or more neural networks (e.g., taken individually or in combination) may at least in part, define a “predictor” to generate prediction values associated with some observable and/or measurable phenomenon and/or state. In an implementation, a neural network may be “trained” to provide a predictor that is capable of generating such prediction values based on input values (e.g., measurements and/or observations) optimized according to a loss function. For example, a training process may employ backpropagation techniques. “Backpropagation,” as referred to herein, is to mean a process of fitting parameters of a trained inference model such a model comprising one or more neural networks. In fitting parameters of a neural network, for example, backpropagation is to compute a gradient of a loss function with respect to the weights of the neural network. Based on such a computed gradient of a loss function, weights may be updated so as to minimize and/or reduce such a loss function. In one particular implementation, a gradient descent of a loss function, or variants such as stochastic gradient descent of a loss function, may be used. In training parameters of a neural network, backpropagation may comprise computing a gradient of a loss function with respect to individual weights by the chain rule, computing a gradient one layer at a time, iterating backward from the last layer to avoid redundant calculations of intermediate terms in the chain rule, for example. It should be understood, however, that this is merely an example of how a process of backpropagation may be applied, and claimed subject matter is not limited in this respect. In particular implementations, backpropagation may be used to iteratively update neural network weights to be associated with nodes and/or edges of a neural network based, at least in part on “training sets.” Such training sets may include training measurements and/or observations to be supplied as input values that are paired with “ground truth” observations. Based on a comparison of such ground truth observations and associated prediction values generated based on such input values in a training process, weights may be updated according to a loss function using backpropagation.
In the particular embodiment of
h
(1)
=g
(1)(W(1)TX+b(1))
h
(2)
=g
(2)(W(2)Th(1)+b(2))
ŷ(x)=W(3)Th(2)+b(3),
where:
In a particular implementation in which a feedforward neural network includes three or more hidden layers, computation of ŷ(x) may be generalized as follows:
ŷ(x)=W(N)Th(N−1)+b(N).
Loss function C(y,ŷ) may be computed according to any one of several formulations of a loss function as described above. In a particular implementation, C(y,ŷ) may be differentiable such that
may be determined using the chain rule and may be computed for any weight Wjk(i). According to an embodiment, values for W(i) may be determined iteratively for training sets (x,y) using a gradient descent technique.
In this context, a “supervised operation” as referred to herein is to mean a machine-learning operation in which training sets provided as inputs for training iterations are paired with “ground truth” labels. In a training iteration/epoch of such a supervised operation, for example, a loss function may be computed based, at least in part, on an inference computed by a trainable model based on a training set and a ground truth label paired with the training set. For example, a supervised operation may compute a loss function based, at least in part, on a comparison of a computed inference and ground truth observations/values paired with the computed inference.
In this context, a “self-supervised operation” as referred to herein is to mean a machine-learning operation in which input training sets are provided without “ground truth” labels. In a training iteration/epoch of such a self-supervised operation, for example, a loss function may be computed based, at least in part, on an inference computed based on a training set and in the absence of any ground truth label paired with the training set.
Another embodiment disclosed herein is directed to a method of training a system for detection of objects in a content signal, the method comprising: applying a self-supervised operation to train parameters of an encoder and a decoder based, at least in part, on a first loss function based, at least in part, on a computed loss associated with reconstruction of a view of the content signal; and applying a supervised operation to further train parameters of the encoder and the decoder trained in the self-supervised operation based, at least in, in part, on a second loss function based, at least in part, on a computed loss associated with detection of objects. In one particular implementation, applying the self-supervised operation to train the parameters of the encoder and the decoder further comprises: computing a first term of the first loss function based, at least in part, on a reconstruction loss; computing a second term of the first loss function based, at least in part, on a contrastive loss; and updating of parameters of the decoder and decoder based, at least in part, on a gradient of the computed first and second terms of the first loss function. For example, computing the second term of the first loss function may comprise: applying of an instance of the decoder to multiple distinct views of a training set content signal to provide multiple encoded views; and computing a cross-correlation of projections of at least two of the encoded views. Also, applying the supervised operation may further comprise: computing the second loss function based, at least in part, on labeled data sets; and updating the parameters of the encoder and the decoder further based, at least in part, on a gradient of the second loss function. The supervised operation may further comprise: populating an input tensor to one or more neural networks with values based, at least in part, on intermediate states of the decoder; executing the one or more neural networks to compute an inference; and computing the second loss function further based, at least in part, on the computed inference. The second loss function may comprise at least a localization loss term and a classification loss term. The localization loss term is based, at least in part, on an inferred localization of detected objects within one or more bounding boxes defined in an image. The classification loss term may be based, at least in part, on an inferred classification of the detected objects. Also, applying the supervised operation may further comprise: updating parameters of an extractor to map the content signal to image patches. The extractor may comprise one or more neural networks.
Another embodiment disclosed herein is directed to a method comprising: extracting samples of a content signal; applying the extracted samples as an input to an encoder to provide an encoding of the extracted samples; applying the encoding of the extracted samples as an input to a decoder trained to provide a reconstruction of the content signal; populating an input tensor with values based, at least in part, on intermediate states of the decoder; executing the one or more neural networks to obtain an output tensor; and detecting one or more features in the content signal based, at least in part, on the output tensor. In one particular implementation, extracting samples from the content signal further comprises applying the content signal as an input to one or more layers of a neural network, the neural network to provide one or more samples of the content signal to a feature extractor to extract features. In another particular implementation, the one or more neural networks comprise a cascade mask region-based convolutional neural network. For example, the one or more neural networks comprise a feature pyramid network. In another particular implementation, parameters of the encoder and decoder are determined in executions of a self-supervised pretraining operation applied to a plurality of training sets of the content signal. For example, the self-supervised pretraining operation may comprise: computation of a first term of a loss function based, at least in part, on a reconstruction loss; computation of a second term of the loss function based, at least in part, on a contrastive loss; and update of parameters of the decoder and decoder based, at least in part, on a gradient of the loss function. Computation of the second term of the loss function may comprise: application of an instance of the decoder to multiple distinct views of a training set content signal to provide multiple encoded views; and computation of a cross-correlation of projections of at least two of the encoded views. The parameters of the encoder and decoder may be further determined in executions of a supervised training operation by applying labeled data sets.
Another embodiment disclosed herein is directed to a method of training a system for detection of objects, the method comprising: executing a first training operation to determine parameters of an encoder to transform samples of a content signal obtained from an electronic document to an embedded state, the embedded state comprising encoded samples of the content signal and tokens associating the encoded samples with positional references in the content signal, and to determine parameters of a decoder to transform the embedded state to a reconstruction of at least a portion of the content signal; and following the first training operation, executing a second training operation to determine parameters of one or more first neural networks to detect features in the content signal based, at least in part, on an input tensor populated with intermediate states of the decoder. In one particular implementation, the first training operation may comprise: computing a first term of a first loss function based, at least in part, on a reconstruction loss; computing a second term of the first loss function based, at least in part, on a contrastive loss; and updating of parameters of the encoder and decoder based, at least in part, on a gradient of the first loss function. For example, computing the second term of the first loss function may comprise: applying of an instance of the decoder to multiple distinct views of a training set content signal to provide multiple encoded views; and computing a cross-correlation of projections of at least two of the encoded views. In another particular implementation, the second training operation may further comprise: executing the one or more first neural networks to compute an inference; and computing a loss function based, at least in part, on the computed inference. For example, the loss function may comprise at least a localization loss term and a classification loss term. Also, the content signal may comprise screen images and/or screenshots of electronic health records; and the localization loss term and classification loss term may be computed based, at least in part, on locations and classifications of tables, table columns or graphical user interface (GUI) elements, or a combination thereof, in the screen images and/or screenshots. Additionally, the localization loss term may be based, at least in part, on an inferred localization of detected objects within one or more bounding boxes defined in an image. Furthermore, the classification loss term may be based, at least in part, on an inferred classification of the detected objects. In another particular implementation, the second training operation may further comprise: determining parameters of an extractor to map the content signal to the samples of the content signal. For example, the parameters of the extractor may comprise parameters of one or more second neural networks; and the input tensor may be further populated with intermediate states of the one or more second neural networks.
Another embodiment disclosed herein is directed to an apparatus comprising: an encoder to transform samples of a content signal obtained from an electronic document to an embedded state, the embedded state comprising encoded samples and tokens associating the encoded samples with positional references in the content signal; a decoder to transform the embedded state to a reconstruction of at least a portion of the content signal; one or more first neural networks to detect features in the content signal based, at least in part, on an input tensor populated with intermediate states of the decoder; and one or more processors to: execute a first training operation to determine parameters of the encoder and the decoder based, at least in part, on a gradient of a loss associated with the reconstruction of the at least a portion of the content signal; and following execution of the first training operation, execute a second training operation to determine parameters of one or more first neural networks based, at least in part, on a gradient of a loss associated with detection of features in the content signal. In one particular implementation, detection of features in the content signal may comprise an inference classification and localization of objects in the content signal. In another particular implementation, the first training operation may comprise: computation of a first term of a first loss function based, at least in part, on a reconstruction loss; and computation of a second term of the first loss function based, at least in part, on a contrastive loss, wherein parameters of the encoder and decoder to be updated based, at least in part, on a gradient of the first loss function. For example, computation of the second term of the first loss function may be based, at least in part, on: application of an instance of the decoder to multiple distinct views of a training set content signal to provide multiple encoded views; and computation of a cross-correlation of projections of at least two of the encoded views. In another particular implementation, the second training operation may further comprise: execution of the one or more first neural networks to compute an inference; and computation of a loss function based, at least in part, on the computed inference. For example, the loss function may comprise at least a localization loss term and a classification loss term. Also, the localization loss term may be based, at least in part, on an inferred localization of detected objects within one or more bounding boxes defined in an image. Additionally, the classification loss term may be based, at least in part, on an inferred classification of the detected objects. In another particular implementation, the second training operation may further comprise: determination of parameters of an extractor to map the content signal to the samples of the content signal. For example, the parameters of the extractor may comprise parameters of one or more second neural networks; and the input tensor may be further populated with intermediate states of the one or more second neural networks.
In the preceding description, various aspects of claimed subject matter have been described. For purposes of explanation, specifics, such as amounts, systems and/or configurations, as examples, were set forth. In other instances, well-known features were omitted and/or simplified so as not to obscure claimed subject matter. While certain features have been illustrated and/or described herein, many modifications, substitutions, changes and/or equivalents will now occur to those skilled in the art. It is, therefore, to be understood that the appended claims are intended to cover all modifications and/or changes as fall within claimed subject matter.
This is a continuation-in-part of U.S. patent application Ser. No. 17/575,852, titled “SYSTEM, DEVICES AND/OR PROCESSES FOR SELF-SUPERVISED MACHINE-LEARNING,” filed on Jan. 14, 2022, which claims the benefit of priority under 35 USC § 119 (e) to U.S. Provisional Patent Application No. 63/194,139, titled “SYSTEM, DEVICES AND/OR PROCESSES FOR SELF-SUPERVISED MACHINE-LEARNING,” filed on May 27, 2021, which are incorporated herein by reference in their entirety. This application also claims the benefit of priority under 35 USC § 119 (e) to U.S. Provisional Patent Application Nos. 63/377,322, titled “SYSTEM, DEVICE AND/OR PROCESS FOR SELF-SUPERVISED TRAINING ENCODER AND/OR DECODER PARAMETERS,” filed on Sep. 27, 2022, 63/421,874, titled “SYSTEM, DEVICES AND/OR PROCESSES FOR TRAINING ENCODER AND/OR DECODER PARAMETERS FOR OBJECT DETECTION AND/OR CLASSIFICATION,” filed on Nov. 2, 2022, and 63/384,744 titled “SYSTEM, DEVICES AND/OR PROCESSES FOR TRAINING ENCODER AND/OR DECODER PARAMETERS FOR OBJECT DETECTION AND/OR CLASSIFICATION,” filed on Nov. 22, 2022, which are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
63194139 | May 2021 | US | |
63377322 | Sep 2022 | US | |
63421874 | Nov 2022 | US | |
63384744 | Nov 2022 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 17575852 | Jan 2022 | US |
Child | 18474672 | US |