Multimodal adaptor for image description
A multimodal adaptor trained on image/text combinations enhances pretrained models for resource-efficient, real-time image description on edge devices, addressing the challenges of large model sizes and limited multimodal analysis in existing technologies.
Patent Information
- Application Number
- US19/217650
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2026-11-26
AI Technical Summary
Existing machine learning models require large numbers of parameters and intensive computation resources, making real-time, on-device processing challenging, especially for resource-constrained devices, and struggle with advanced multimodal input analysis.
A multimodal adaptor trained on image/text combinations is deployed with a pretrained model to enhance descriptive text generation, using a reverse delta approach to share parameters with the first transformer block of the pretrained model, allowing efficient image description without increasing the model size.
The solution enables real-time, resource-efficient generation of detailed image descriptions on edge devices, improving the pretrained model's ability to provide nuanced and context-rich descriptions of images, including text within images.
Smart Images

Figure US20260378211A1-D00000_ABST
Abstract
Description
BACKGROUND
[0001] Machine learning has witnessed a surge in interest in recent years, allowing many individuals and businesses to access powerful models with wide ranges of applications, including the ability to recognize or generate text from an image input. However, these models usually require a large number of parameters to be trained, and the size of these models has been growing rapidly thereby demanding intensive computation, storage, and energy resources. Since many real-world applications demand real-time, on-device processing capabilities, model deployment and inference on resource-constrained devices (e.g., edge devices, mobile devices) become challenging. Such constraints may further reduce a trained model to handle new or different tasks, including advanced multimodal input analysis.
[0002] It is with respect to these and other general considerations that the aspects disclosed herein have been made. Also, although relatively specific problems may be discussed, it should be understood that the examples should not be limited to solving the specific problems identified in the background or elsewhere in this disclosure.SUMMARY
[0003] In accordance with at least one example of the present disclosure, a multimodal adaptor is provided. The multimodal adaptor is trained on a corpus of image / text combinations. The multimodal adaptor is deployed to user devices and operates in conjunction with a pretrained models to improve descriptive text generation. Since pretrained models are not designed to provide detailed descriptions to given images, the multimodal adaptor is used to increase the model's ability to do so.
[0004] In embodiments, the pretrained model receives an image having text as part of the image. In such a case, the image is processed initially with optical character recognition to effectively extract the text. The text is then provided, with the prompt, to the multimodal adaptor which can then use the text to help provide a detailed description of the image.
[0005] With respect to some aspects, the multimodal adapter architecture is a transformer block. Generally speaking, it can have any form of specific underlying architecture in the block (positional embeddings, etc.) as the pretrained model that it is designed to work with. To make the multimodal adapter efficient in terms of number of parameters, a reverse delta approach is used where the parameters of the multimodal adaptor transformer block are shared with the first transformer block of the pretrained model.
[0006] This Summary is provided to introduce a selection of concepts in a simplified form, which is further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Additional aspects, features, and / or advantages of examples will be set forth in part in the following description and, in part, will be apparent from the description, or may be learned by practice of the disclosure.BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Non-limiting and non-exhaustive examples are described with reference to the following Figures.
[0008] FIG. 1 depicts a block diagram of an example of an operating environment for use of a multimodal adaptor in accordance with examples of the present disclosure.
[0009] FIG. 2 depicts a block diagram of another example of an operating environment for use of a multimodal adaptor in accordance with examples of the present disclosure.
[0010] FIG. 3 depicts a transformer-based language model which may be used to implement a machine learning model with which a multimodal adaptor may operate.
[0011] FIG. 4 depicts a block diagram showing portions of an operating environment in use with a multimodal adaptor.
[0012] FIG. 5 depicts a block diagram showing portions of an operating environment in use with a multimodal adaptor.
[0013] FIG. 6 depicts a flowchart of an example method for generating descriptive text in accordance with examples of the present disclosure.
[0014] FIG. 7 depicts a flowchart of an example method for generating descriptive text in accordance with examples of the present disclosure.
[0015] FIG. 8 depicts examples of generated text in accordance with aspects of the presentation disclosure.
[0016] FIG. 9 depicts a flowchart of an example method for generating descriptive text in accordance with examples of the present disclosure.
[0017] FIG. 10 depicts an example of generated text in accordance with aspects of the presentation disclosure.
[0018] FIG. 11 depicts an example of generated text in accordance with aspects of the presentation disclosure.
[0019] FIG. 12 is a simplified block diagram of a computing device with which aspects of the present disclosure may be practiced; and
[0020] FIG. 13 is a simplified block diagram of a distributed computing system in which aspects of the present disclosure may be practiced.DETAILED DESCRIPTION
[0021] In the following detailed description, references are made to the accompanying drawings that form a part hereof, and in which are shown by way of illustrations specific aspects or examples. These aspects may be combined, other aspects may be utilized, and structural changes may be made without departing from the present disclosure. Aspects may be practiced as methods, systems or devices. Accordingly, aspects may take the form of a hardware implementation, an entirely software implementation, or an implementation combining software and hardware aspects. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims and their equivalents.
[0022] In examples, a model, also sometimes referred to as a machine learning (ML) model, processes a set of input tokens to generate model output accordingly. In examples, multimodal processing by the ML model is performed according to a subset of tokens that corresponds to a prompt (e.g., text and / or natural language input) and a subset of tokens corresponding to one or more other input types (e.g., text input, and / or image input). Thus, the multimodal tokens may provide additional context for the ML model generating output text.
[0023] Existing models are typically pretrained, end to end, and sent to different devices, e.g., end user devices for operation. In many cases, these models are considered large language models or LLMs and have been trained primarily on a large amount of language / text input. These pretrained models, while effective at operating on text input, are limited in processing image input. Indeed, either these models are not trained on any images or the amount of image training is limited. Indeed, training models using images is in tension with trying to reduce the size of the models themselves, which is a goal to save device resources. Moreover, since these models are used with many other tools not requiring or benefiting from image related training such that added image training may be considered excessive.
[0024] Understanding this environment, the present disclosure relates to a multimodal adaptor that is specifically trained on image data, and can be deployed separate from a pretrained language model. The multimodal adaptor works with the pretrained model to provide enhanced descriptive text of input images without modifying or increasing the size of the pretrained model itself.
[0025] FIG. 1 depicts a block diagram of an exemplary operating environment 100 for training and deploying a multimodal adaptor in accordance with examples of the present disclosure. The operating environment 100 includes a plurality of computing devices 110 communicatively coupled to a server 120 via a network 130. As described further below, the server 120 may include a number of different elements, such as a pretrained model 124, which may or may not be trained at the server 120 and can be sent to the one or more computing devices 110. The server elements may further include a multimodal adaptor 126 that is also sent to the one or more computing devices 110. In operation, when the pretrained model 124 operates with the multimodal adaptor 126, for the purposes of this description, the combination forms a multimodal model 122.
[0026] In embodiments, the network 130 may further be communicatively coupled to one or more data stores 132. It should be appreciated that the pretrained model may be on the server 120 and / or in the data store 132 prior to the deployment. At or before runtime, one or more pretrained models 124 are deployed to one or more computing devices 110. For example, a computing device 110 may request a model to be deployed and / or the server 120 may proactively deploy a model 124 to one or more computing devices 110 (e.g., based on resources and capabilities of computing devices).
[0027] Server 120 is also illustrative of a server that may be used to distribute a multimodal adaptor 126 to the different computing devices 110. The multimodal adaptor is used in conjunction with the pretrained model 124, on the devices 110 to provide improved text generation for describing images. Although the pretrained model 124 and the multimodal adaptor 126 may be deployed by the server 120 at substantially the same time, such elements may also be deployed separately, at different times, and potentially by different servers. In embodiments, multimodal adaptor 126 may be trained or fine-tuned on the server 120. As will be discussed in more detail below, the multimodal adaptor 126 may be trained on a significant number of images with corresponding captions or descriptive text related to the images as represented by block 128. As will be apparent to those skilled in the art, the multimodal adaptor 126 may be trained on another computer system, not shown, and deployed to server 120 for further deployment to devices 110.
[0028] FIG. 2 depicts a block diagram of another example of an operating environment 200 for image description in accordance with examples of the present disclosure. The operating environment 200 includes a server 120 and a computing device 110 associated with a user 150. The server 120 may be any suitable computing device that is capable of executing the pretrained model 124 and the multimodal adaptor 126 and communicating with the computing devices 120, separately or combined as multimodal model 122, via a network 130 as discussed above. As will be appreciated by those skilled in the art, the server 120 may comprise a processor 160, a memory 162 and a communication interface 164. The server 120 further comprises one or more applications 168 for executing one or more functions, such as training the model 124, fine-tuning the pretrained model 124, training the multimodal adaptor 126, and / or deploying the model 124 or the multimodal adaptor 126 to the device 110.
[0029] In embodiments wherein the server 120 is configured to generate and train a model and or the multimodal adaptor, the server 120 is configured to determine appropriate weight values of the model or the multimodal adaptor to optimize output. The weights of the model are parameters that determine the strength and direction of the influence between layers in the model. For example, in neural networks, the weights are associated with connections between neurons or nodes of the model. Similarly, when server 120 is configured to train the multimodal adaptor 126, the server 120 determines appropriate weight values for a transformer block portion of a transformer-block model based on images and related text.
[0030] The computing device 110 may be, but is not limited to, a computer, a notebook, a laptop, a mobile device, a smartphone, a tablet, a portable device, a wearable device, or any other suitable computing device that can execute the multimodal model 122, according to aspects described herein. For example, the computing device 110 may be an edge device or a system-on-chip. The computing device 110 includes a processor 170, a memory 172 and a communication interface 174. For example, the computing device 110 may be an edge device or a system-on-chip. As illustrated, the computing device 110 includes a processor 170, a memory 172 and a communication interface 174. As illustrated, the computing device 110 further comprises one or more applications 176 for executing one or more functions, which, for example, may include perform model processing using multimodal model 122. In certain embodiments, the computing device may further comprise an image receiver 178 allowing a user to load an image for processing using the multimodal model 122.
[0031] The network 130 may include any kind of computing network including, without limitation, a wired or wireless local area network (LAN), a wired or wireless wide area network (WAN), and / or the Internet.
[0032] In operation, the computing device 110 may perform real-time, on-device text generation. This technique allows the computing device 110 to execute and use a machine learning model for predictions of text describing images in resource-constraint settings. Further the generation of the descriptive text does not modify the existing pretrained model such that future uses of the pretrained model will operate as expected prior to the use of the multimodal adaptor 126.
[0033] FIG. 3 shows a transformer-based language model (“language model”) 302 for implementing the pretrained model 124 referenced by FIGS. 1 and 2. The language model 302 is composed, in part, of a pipeline of transformer blocks, including a first transformer block 304. FIG. 3 provides details regarding one way to implement the first transformer block 304. Although not specifically illustrated, other transformer blocks of the language model 302 have the same architecture, perform the same functions, and produce the same-shaped output results (e.g., same-dimensioned output embeddings) as the first transformer block 304, but are governed by separate sets of weights.
[0034] The language model 302 commences its operation with the receipt of input information, such as a passage of text. The prompt includes a series of linguistic tokens. In some examples, a “token” refers to a unit of text having any granularity, such as an individual word, a word fragment produced by byte pair encoding (BPE), a character n-gram, a word fragment identified by the WordPiece or SentencePiece algorithm, etc. To facilitate explanation, assume that each token corresponds to a complete word. The principles set forth herein, however, are not limited to the processing of text information; in other examples, the language model 302 operates on any of: audio information, image information, video information, sensor information, and so on, or any combination thereof.
[0035] Next, an embedding component (not shown) maps the sequence of tokens into respective token embeddings. For example, the embedding component produces one-hot vectors that describe the tokens, and then maps the one-hot vectors into the token embeddings using a machine-trained transformation. The embedding component then adds position information (and, in some cases, segment information) to the respective token embeddings to produce position-supplemented embedding vectors 306. The position information added to each token embedding describes the embedding vector's position in the sequence of token embeddings.
[0036] The first transformer block 304 operates on the position-supplemented embedding vectors 306. In some implementations, the first transformer block 304 includes, in order, an attention component 308, a first add-and-normalize component 310, a feed-forward neural network (FFN) component 312, and a second add-and-normalize component 314.
[0037] The attention component 308 determines how much emphasis should be placed on parts of input information when interpreting other parts of the input information. Consider, for example, a sentence that reads: “I asked the professor a question, but he could not answer it.” When interpreting the word “it,” the attention component 308 will determine how much weight or emphasis should be placed on each of the words of the sentence. The attention component 308 will find that the word “question” is most significant.
[0038] The attention component 308 performs attention analysis using the following equation:Attention(Q,K,V)=softmax(QKTdk)V.(1)
[0039] The attention component 308 produces query information Q by multiplying the position-supplemented embedding vectors 306 by a query weighting matrix WQ. Similarly, the attention component 308 produces key information K and value information V by multiplying the position-supplemented embedding vectors 306 by a key weighting matrix WK and a value weighting matrix WV, respectively. To execute Equation (1), the attention component 308 takes the product of Q with the transpose of K, and then divides the product by a scaling factor √{square root over (d)}, to produce a scaled result. The symbol d represents the dimensionality of Q and K. The attention component 308 takes the Softmax (normalized exponential function) of the scaled result, and then multiplies the result of the Softmax operation by V, to produce attention output information. In some cases, the attention component 308 is said to perform masked attention insofar as the attention component 308 masks output token information that, at any given time, has not yet been determined. Background information regarding the general concept of attention is provided in Vaswani, et al., “Attention Is All You Need,” in 31st Conference on Neural Information Processing Systems (NIPS 2017), 2017, 11 pages.
[0040] Note that FIG. 3 shows that the attention component 308 is composed of plural attention heads, including a representative attention head 316. Each attention head performs the computations specified by Equation (1), but with respect to a particular representational subspace that is different than the subspaces of the other attention heads. To accomplish this operation, the attention heads perform the computations described above using different respective sets of query, key, and value weight matrices. Although not shown, the attention component 308 concatenates the output results of the attention component's separate attention heads, and then multiplies the results of this concatenation by another weight matrix W°.
[0041] The add-and-normalize component 310 includes a residual connection that combines (e.g., sums) input information fed to the attention component 308 with the output information generated by the attention component 308. The add-and-normalize component 310 then normalizes the output information generated by the residual connection, e.g., by normalizing values in the output information based on the mean and standard deviation of those values, or by performing root-mean-squared normalization. The other add-and-normalize component 314 performs the same functions as the first-mentioned add-and-normalize component 310. The FFN component 312 transforms input information to output information using a feed-forward neural network having any number of layers.
[0042] The first transformer block 304 produces output information 318. A series of other transformer blocks (320, . . . , 322) perform the same functions as the first transformer block 304 and produce output results of the same shape (e.g., the same dimensions), each operating on output information produced by its immediately preceding transformer block. Each transformer block uses its own level-specific set of machine-trained weights. The final transformer block 322 in the language model 302 produces final output information 324.
[0043] In some implementations, a post-processing component 326 performs post-processing operations on the final output information 324. For example, the post-processing component 326 performs a machine-trained linear transformation on the final output information 324, and processes the results of this transformation using a Softmax component (not shown). The language model 302 uses the output of the post-processing component 326 to predict the next token in the input sequence of tokens. In some applications, the language model 302 performs this task using a greedy selection approach (e.g., by selecting the token having the highest probability), or by using the beam search algorithm (e.g., by traversing a tree that expresses a search space of candidate next tokens).
[0044] In some implementations, the language model 302 operates in an auto-regressive manner, as indicated by the loop 328. To operate in this way, the language model 302 appends a predicted token to the end of the sequence of input tokens, to provide an updated sequence of tokens. The predicted token leads to the production of a new position-supplemented vector 330. In a next pass, the language model 302 processes the updated sequence of position-supplemented vectors to generate a next predicted token. The language model 302 repeats the above process until it generates a specified stop token.
[0045] The above-described implementation of the language model 302 relies on a decoder-only architecture. Other implementations of the language model 302 use an encoder-decoder transformer-based architecture. Here, a transformer-based decoder receives encoder output information produced by a transformer-based encoder, together with decoder input information.
[0046] In other implementations, the post-processing component 326 represents a classification component that produces a classification result. In some implementations, the classification component is implemented by using a fully-connected feed-forward neural network having one or more layers followed by a Softmax component. A BERT-based transformer model is an example of this configuration. General background information on the BERT-based transformer model is provided in Devlin, et al., “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” arXiv, arXiv:1810.04805v2 [cs.CL], May 24, 2019, 16 pages.
[0047] FIG. 4 illustrates the architecture 400 for embodiments of the present disclosure for generating output text describing an input image 410, using a multimodal model, such as multimodal model 122 described above in conjunction with FIGS. 1 and 2. The architecture 400 comprises image encoder transformer block(s) 412, referred to herein the image encoder. The image encoder, in embodiments, is the image encoder for the pretrained model, such as pretrained model 124 show and described above. In operation, the image encoder operates in a similar manner as if there was no multimodal adaptor. In embodiments, the image encoder 412 provides related information to other transformer blocks 414 for other AI features 416 in its normal course. However for descriptive text generation operations related embodiments herein for providing enhanced descriptions of the image 410, the process follows another path 417.
[0048] When generating descriptive text, the image encoder 412 passes image information to the vision projector 418. The vision projector 418 evaluates the image and creates image embeddings 420 which are then passed to the multimodal adaptor 422. In essence, the vision projector is trained to transform received image information into an image vector space providing more specific detail of a given image, as provided in image embeddings 420. These image embeddings are passed to multimodal adaptor 422.
[0049] Multimodal adaptor 422 receives the image embeddings and creates mixed embeddings 424. Given that the multimodal adaptor 422 has been trained on a significant number of images and related captions, the multimodal adaptor 422 interprets the image embeddings420 and provides detailed, mixed embeddings 424 to the remaining transformer blocks 426. Transformer blocks 426 represent the pretrained transformer blocks of the pretrained model, such as model 124 shown and described above with one exception. That is, as will be described below, the weights related to the first transformer block are modified based on the training of the multimodal adaptor 422. Consequently, when the mixed embeddings 424 are receive by the transformer blocks 426, a detailed description of the image 410 is produced, as opposed to a non-detailed description, as discussed below.
[0050] As an optional additional flow, when the input image 410 comprises image data and text data, the input image 410 may also have an OCR or optical character recognition process 428 applied to the image. In this manner, the text from the image may be extracted and used in further steps to better describe the image. In embodiments, the OCR process 428 uses existing OCR functionality from either the pretrained model or from other systems on the device 110. Consequently, the image encoder 412 does not need to be trained on text within images to extract and recognize relevant text.
[0051] When the OCR process 428 evaluates the image 410, input text 430 is passed to a tokenizer 432 to create tokens that result in embeddings 434, ultimately producing text embeddings 438. The text embeddings 438 are supplied to the multimodal adaptor 422 along with the image embeddings 420. Therefore, in embodiments, the multimodal adaptor 422 operates on both the improved image embeddings 420 and the text embeddings 438 to create the mixed embeddings 424. The result of the improved embeddings provides for increased information as to the details of the image, including any text associated with the image410. As may be appreciated, the text 430 may be considered to be appended to the user prompt requesting the description of the image 410 once tokenized.
[0052] FIG. 5 is a block diagram 500 illustrating the relationships between the transformer blocks of the multimodal adapter, such as multimodal adapter 422 shown in FIG. 4. As will be appreciated by those skilled in the art, during operation of transformer based model, first transformer block 502, operates first on the data to produce a result, that is passed to the second transformer block 504. The process continues through a number of transformer blocks, ultimately being transformed through Nth transformer block 506. As discussed with respect to FIG. 3, each of the transformer blocks has its own level-specific set of machine-trained weights and parameters to create its specific output. In current embodiments, the process is similar except that when an input prompt involves an input image and a request to describe the image, the first transformer block 502, is modified based on the multimodal adaptor values 508 to create modified weights and parameters for the first transformer block 502.
[0053] In embodiments, at runtime, a weight-modification process modifies the weights of the first transformer block 502. The weights are modified using the multimodal adaptor values 508 as provided from the multimodal adaptor. Using the modified weight values for the first transformer block 502, the generative operations can proceed for the model, as described above and with respect to FIG. 3.
[0054] Given this process at runtime, does not necessitate interacting with RAM memory to store full weights (thereby effectively bypassing interaction with the RAM). For instance, in the course of executing the operations of a particular transformer block of a transformer-based model, the runtime modification process modifies the full version of weights for the first transformer block without formally committing these weights to RAM memory. Further, in embodiments, only the delta values need to be provided as part of the multimodal adaptor values 508, thereby reducing the size of the multimodal adaptor 126 for deployment to the user devices 110.
[0055] FIG. 6 illustrates a method 600 for descriptive text generation for an input image in accordance with examples of the present disclosure. A general order for the steps of the method 600 is shown in FIG. 6. Generally, the method 600 starts at 602 and ends at 614. The method 600 may include more or fewer steps or may arrange the order of the steps differently than those shown in FIG. 6. In the illustrative aspect, the method 600 is performed by a computing device (e.g., a device 110, FIGS. 1 and 2). However, it should be appreciated that one or more steps of the method 600 may be performed by another device (e.g., another server).
[0056] Specifically, in some aspects, the method 600 may be performed by multimodal model (e.g., 122) executed on the device 110. For example, the device 110 may be any suitable computing device that is capable of communicating with the server 120. For example, the computing device 110 may be, but is not limited to, a computer, a notebook, a laptop, a mobile device, a smartphone, a tablet, a portable device, a wearable device, or any other suitable computing device. The method 600 can be executed as a set of computer-executable instructions executed by a computer system and encoded or stored on a computer readable medium. Further, the method 600 can be performed by gates or circuits associated with a processor, Application Specific Integrated Circuit (ASIC), a field programmable gate array (FPGA), a system on chip (SOC), a Neural Processing Unit (NPU), or other hardware device. Hereinafter, the method 600 shall be explained with reference to the systems, components, modules, software, data structures, user interfaces, etc. described in conjunction with FIGS. 1-5 and 12-13.
[0057] The method 600 starts at operation 602, where flow may proceed to receive operation 604. Receive operation 604 receives a pretrained model (e.g., any deep neural network model, generative artificial intelligence model, large language model, or machine learning model). In embodiments, receive operation 602 (and the remaining operations) occurs on a user device, such as shown and described above with respect to device 110. In embodiments, the received pretrained model has appropriate weight values of the model are determined to optimize the model's output for generalized text generation.
[0058] Next, at receive operation 606, the device receives a trained multimodal adaptor. In embodiments, the received trained adaptor is a transformer block trained on images and related text and therefore has appropriate weight values to supplement the trained model to optimize the model's output for descriptive text generation.
[0059] Next, at receive operation 608, the device receives, e.g., from a user, an image and a prompt to describe the image. Upon recognizing the input image and descriptive text request, operation flows to modify operation 610. Modify operation 610 modifies the first transformer block with weights and parameters based on the trained multimodal adaptor as discussed above in conjunction with FIG. 5.
[0060] Following the modify operation, generate text operation 612 generates the descriptive text of the received image. The descriptive text being more specific and detailed than would otherwise be provided to a user without the modification of transformer block based on the multimodal adaptor.
[0061] In embodiments, following the generation of the text operation 612, a display operation 614 occurs wherein the generated text is displayed to a user.
[0062] FIG. 7 illustrates a method 700 for training a multimodal adaptor to provide descriptive text generation capabilities in accordance with examples of the present disclosure. A general order for the steps of the method 700 is shown in FIG. 7. Generally, the method 700 starts at 702 and ends at 710. The method 700 may include more or fewer steps or may arrange the order of the steps differently than those shown in FIG. 7. In the illustrative aspect, the method 700 is performed by a server (e.g., a device 120, FIGS. 1 and 2). However, it should be appreciated that one or more steps of the method 700 may be performed by another device (e.g., another server).
[0063] Specifically, in some aspects, the method 700 may be performed by a server such as server 120. The server 120 may be any suitable computing device that is capable of communicating with the device 110. The server 120 may be, but is not limited to, a computer, a notebook, a laptop, a tablet, a portable device, or any other suitable computing device. The method 700 can be executed as a set of computer-executable instructions executed by a computer system and encoded or stored on a computer readable medium. Further, the method 700 can be performed by gates or circuits associated with a processor, Application Specific Integrated Circuit (ASIC), a field programmable gate array (FPGA), a system on chip (SOC), a Neural Processing Unit (NPU), or other hardware device. Hereinafter, the method 700 shall be explained with reference to the systems, components, modules, software, data structures, user interfaces, etc. described in conjunction with FIGS. 1-5 and 12-13.
[0064] The method 700 starts at operation 702, where flow may proceed to create corpus operation 704. Create corpus operation 704 relates to a process of creating image and descriptive text combinations. The more descriptive the text for a given image the better. In embodiments, the descriptive text is considered synthetic data. Synthetic text, in this example, may relate to artificially created data, such as data generated using machine learning algorithms. Using such algorithms allows for the creation of a significant quantity of descriptive text for each image and a significant number of text / image combinations.
[0065] Once the corpus of training data is created or collated, the text / image combinations are used to train the model at train operation 706. Those skilled in the art will appreciate train a model, and how to train such a model using the text / image combinations. That is, the multimodal adaptor may be trained in similar manners as used to train the pre-trained model. Each is trained and then frozen. In some embodiments, the multimodal adaptor maybe trained using the next token prediction loss method. Then, in embodiments, the multimodal adaptor is finetuned using reinforcement learning methods such as direct preference optimization or group relative optimization to improve chat capabilities. Next, the generate operation 708 completes the process in generating the multimodal adaptor using the transformer weights and parameters based on the provided text / image combinations. Flow then ends at 710.
[0066] FIG. 8 provides two separate examples of the difference between text descriptions generated by one or more embodiments of the present disclosure as compared by those text descriptions created by known models. For instance, as will be appreciated, image 802 illustrates two different people walking along a pier. Previously known models may create a standard text description, such as the description 804 stating “A person and person walking on a dock.” While potentially accurate, the description 804 is not detailed and barely provides the true nature of the image. In embodiments of the present disclosure, description 806 is generated, which states “The image captures a couple strolling together on a pier during sunset.” Description 806 is markedly more descriptive of the various nuances of the image 802. Indeed, description 806 provides context and concepts such as recognizing the two people are a “couple” likely due to the two “strolling together”, which is not appreciated by description 804.
[0067] Also, in FIG. 8, there is another example of two different descriptions of image 808. Image 808 is a detailed image of several people in a church. Example description from previously known models may provide a simple description 810 stating “A group of people in a building with stained glass windows.” Embodiments of the invention, however, may provide a much more rich and nuanced description, such as description 812 which states “This image shows people enjoying the colorful stained glass artwork inside the basilica, reflecting its rich history and vibrant ambiance.” Clearly, description 812 provides much more context for the image including the appreciation for the concepts such as “history” and “vibrant ambiance”.
[0068] FIG. 9 illustrates another flow diagram illustrating yet other aspects of the present disclosure. More specifically, FIG. 9 provides an exemplary flow for a method of generating descriptive text related to an image, the image having text within the image itself such as the exemplary images shown and described below in FIGS. 10 and 11. A general order for the steps of the method 900 is shown in FIG. 9. Generally, the method 900 starts at 902 and ends at 918. The method 900 may include more or fewer steps or may arrange the order of the steps differently than those shown in FIG. 9. In the illustrative aspect, the method 900 is performed by a computing device (e.g., a device 110, FIGS. 1 and 2). However, it should be appreciated that one or more steps of the method 900 may be performed by another device (e.g., another server).
[0069] As stated, flow for method 900 begins following start 902 with receive image 904. Receiving the image at step 904 relates, in embodiments, to the user providing an image to the model with a corresponding prompt to describe the image. Those skilled in the art will appreciate different aspects of receiving the image, such as allowing the user to point to or upload an image for processing. Portions of an image may also be evaluated, such that, in embodiments, more or less than the image for description is received. As will be appreciated by those skilled in the art, receive may also involve receiving a prompt or other instruction indicating a request to generate a text description of the image.
[0070] Upon receipt of the image, method 900 creates, at create operation 906 image embeddings related to the received image. It will be appreciated that create image embeddings relates to the use of the vision projector 418 and the product of the vision projector, image embeddings 420, as shown and described above in conjunction with FIG. 4.
[0071] Next, method 900 evaluates, at determine operation 908 whether there is text in the image itself. If there is no text within an image, such as in images 802 and 808 shown and described above in conjunction with FIG. 8, then flow branches NO to generate operation 916 which leads to the generation of descriptive text as discussed below.
[0072] However, if there is text in the image, then flow branches YES to operation 910. Many images include a significant amount of text associated with other graphic elements, such as the case for charts, block diagrams, architecture documents, or the like. Prior models fail to appreciate the text within the image and therefor do not include such substance of the text in associated descriptions. As a result, with respect to embodiments of the present disclosure, if text is recognized in the received image at determine operation 908 flow branches YES to perform OCR process 910. Perform OCR process 910 relates to analyzing the image using optical character recognition. As contemplated by the present disclosure, one or more OCR functions may be available on the device performing method 900 such that operation 910 may leverage the use of such pre-existing OCR capabilities to extract the text from the image.
[0073] Next, once the text is extracted from the image, create text embeddings operation 914 creates the associated embeddings related to the text from the image itself.
[0074] The created text embeddings are then combined, at combine operation 914, with the image embeddings as created at operation 906. It will also be appreciated that while operation 906 is shown and described as happening before other steps within method 900, such image embeddings may be generated after the creation of the text embeddings or in parallel.
[0075] The combined text embeddings and image embeddings are then used in generate operation 916 which generates the parameters using multimodal adaptor based on the received embeddings.
[0076] Next, generate descriptive text operation 918 performs the generation of the descriptive text related to the received image, based on both the graphical elements of the image and the textual elements of the image. While not shown, there may be other steps associated with method 900, such as storing the descriptive text and / or displaying the descriptive text, e.g., on the user device.
[0077] FIG. 10 illustrates an example showing the generation of descriptive text for an image, where the image contains text itself. In FIG. 10, an image 1002 may be submitted, e.g., by a user requesting a description of the image 1002. FIG. 10 further shows a description generated by one or more embodiments of the present disclosure as compared to a text description created by a known model. As will be appreciated, image 1002 illustrates an architectural diagram of a web page having various functionalities. Previously known models may create a standard text description, such as the description 1004 stating “A diagram of a web page.” While potentially accurate, the description 1004 is not detailed and therefore not as helpful. In embodiments of the present disclosure, description 1006 is generated, which states “This diagram illustrates various approaches to text processing and classification, including BOW, BOW Feature Selection, TOPIC_CURRENT Topic Model, TOPIC_INTEGRATED Topic Model with Integrated Neighbouring Pages, and classification models such as Support Vector Machines (SVM) and Hierarchical SVM (HSVM). Each model is represented in a hierarchical structure, with performance evaluation methods highlighted for each.” Description 1006 is markedly more descriptive of the various nuances of the image 1002. Indeed, description 1006 provides context and concepts such as recognizing the text of the various components of the web page, which is not appreciated by description 1004.
[0078] FIG. 11 illustrates another example showing the generation of descriptive text for an image, where the image contains text itself. As will be appreciated, image 1102 comprises a pie chart 1106 having colored portions 1106, 1108, 1110 and 1112. Image 1102 further comprises descriptive text, such as title 1114“Food Consumption by Age Group” and a legend section 1116 indicating the different age groups and corresponding colors represented in the pie chart 1104. When submitted, e.g., by a user requesting a description of the image 1102, different descriptions may be generated by one or more embodiments of the present disclosure which provide more detailed information as compared to a text description created by a known model. FIG. 11 illustrates one example of known model description 1118 which simply states that the image is “A pie chart with different colored sections”.
[0079] In contrast, embodiments of the present invention provide more detailed, and therefore more helpful descriptions, such as exemplary description 1120. Description 1120 states: “The diagram shows food consumption by age group, with 0-15 years having the highest percentage, followed by 15-60, 60-70 and 70-100 years. 0-15 years have a blue bar, 15-60 years have a green bar, 60-70 years have a yellow bar, and 70-100 years have a red bar. The pie chart also shows the percentage of each age group's food consumption. 0-15 years have 40%, 15-60 years have 35%, 60-70 years have 15% and 70-100 years have 10%.
[0080] FIGS. 12-13 and the associated descriptions provide a discussion of a variety of operating environments in which aspects of the disclosure may be practiced. However, the devices and systems illustrated and discussed with respect to FIGS. 12-13 are for purposes of example and illustration and are not limiting of a vast number of computing device configurations that may be utilized for practicing aspects of the disclosure, described herein.
[0081] FIG. 12 is a block diagram illustrating physical components (e.g., hardware) of a computing device 1200 with which aspects of the disclosure may be practiced. The computing device components described below may be suitable for the computing devices described above, including one or more devices associated with machine learning service (e.g., server 130), as well as computing device 120 discussed above with respect to FIG. 2. In a basic configuration, the computing device 1200 may include at least one processing unit 1202 and a system memory 1204. Depending on the configuration and type of computing device, the system memory 1204 may comprise, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories.
[0082] The system memory 1204 may include an operating system 1205 and one or more program modules 1206 suitable for running software application 1220, such as one or more components supported by the systems described herein. As examples, system memory 1204 may store a model inference manager 1221, including a model receiver 1222, a prediction request receiver 1223, a weight decompressor 1224, and / or a prediction generator 1225. The operating system 1205, for example, may be suitable for controlling the operation of the computing device 1200.
[0083] Furthermore, aspects of the disclosure may be practiced in conjunction with a graphics library, other operating systems, or any other application program and is not limited to any particular application or system. This basic configuration is illustrated in FIG. 6 by those components within a dashed line 1208. The computing device 1200 may have additional features or functionality. For example, the computing device 1200 may also include additional data storage devices (removable and / or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 12 by a removable storage device 1209 and a non-removable storage device 1210.
[0084] As stated above, a number of program modules and data files may be stored in the system memory 1204. While executing on the processing unit 1202, the program modules 1206 (e.g., application 1220) may perform processes including, but not limited to, the aspects, as described herein. Other program modules that may be used in accordance with aspects of the present disclosure may include electronic mail and contacts applications, word processing applications, spreadsheet applications, database applications, slide presentation applications, drawing or computer-aided application programs, etc.
[0085] Furthermore, aspects of the disclosure may be practiced in an electrical circuit comprising discrete electronic elements, packaged or integrated electronic chips containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, aspects of the disclosure may be practiced via a system-on-a-chip (SOC) where each or many of the components illustrated in FIG. 12 may be integrated onto a single integrated circuit. Such an SOC device may include one or more processing units, graphics units, communications units, system virtualization units and various application functionality all of which are integrated (or “burned”) onto the chip substrate as a single integrated circuit. When operating via an SOC, the functionality, described herein, with respect to the capability of client to switch protocols may be operated via application-specific logic integrated with other components of the computing device 1200 on the single integrated circuit (chip). Aspects of the disclosure may also be practiced using other technologies capable of performing logical operations such as, for example, AND, OR, and NOT, including but not limited to mechanical, optical, fluidic, and quantum technologies. In addition, aspects of the disclosure may be practiced within a general purpose computer or in any other circuits or systems.
[0086] The computing device 1200 may also have one or more input device(s) 1212 such as a keyboard, a mouse, a pen, a sound or voice input device, a touch or swipe input device, etc. The output device(s) 1214 such as a display, speakers, a printer, etc. may also be included. The aforementioned devices are examples and others may be used. The computing device 1200 may include one or more communication connections 1216 allowing communications with other computing devices 1250. Examples of suitable communication connections 12216 include, but are not limited to, radio frequency (RF) transmitter, receiver, and / or transceiver circuitry; universal serial bus (USB), parallel, and / or serial ports.
[0087] The term computer readable media as used herein may include computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. The system memory 1204, the removable storage device 1209, and the non-removable storage device 1210 are all computer storage media examples (e.g., memory storage). Computer storage media may include RAM, ROM, electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture which can be used to store information and which can be accessed by the computing device 1200. Any such computer storage media may be part of the computing device 1200. Computer storage media does not include a carrier wave or other propagated or modulated data signal.
[0088] Communication media may be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” may describe a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media may include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.
[0089] FIG. 13 illustrates a system 1300 that may, for example, be a mobile computing device, such as a mobile telephone, a smart phone, wearable computer (such as a smart watch), a tablet computer, a laptop computer, and the like, with which aspects of the disclosure may be practiced. In one example, the system 1300 is implemented as a “smart phone” capable of running one or more applications (e.g., browser, e-mail, calendaring, contact managers, messaging clients, games, and media clients / players). In some aspects, the system 1300 is integrated as a computing device, such as an integrated personal digital assistant (PDA) and wireless phone.
[0090] In a basic configuration, such a mobile computing device is a handheld computer having both input elements and output elements. The system 1300 typically includes a display 1305 and one or more input buttons that allow the user to enter information into the system 1300. The display 1305 may also function as an input device (e.g., a touch screen display).
[0091] If included, an optional side input element allows further user input. For example, the side input element may be a rotary switch, a button, or any other type of manual input element. In alternative aspects, system 1300 may incorporate more or less input elements. For example, the display 1305 may not be a touch screen in some aspects. In another example, an optional keypad 1335 may also be included, which may be a physical keypad or a “soft” keypad generated on the touch screen display.
[0092] In various aspects, the output elements include the display 1305 for showing a graphical user interface (GUI), a visual indicator (e.g., a light emitting diode 1320), and / or an audio transducer 1325 (e.g., a speaker). In some aspects, a vibration transducer is included for providing the user with tactile feedback. In yet another aspect, input and / or output ports are included, such as an audio input (e.g., a microphone jack), an audio output (e.g., a headphone jack), and a video output (e.g., a HDMI port) for sending signals to or receiving signals from an external device.
[0093] One or more application programs 1366 may be loaded into the memory 1362 and run on or in association with the operating system 1364. Examples of the application programs include phone dialer programs, e-mail programs, personal information management (PIM) programs, word processing programs, spreadsheet programs, Internet browser programs, messaging programs, and so forth. The system 1300 also includes a non-volatile storage area 1368 within the memory 1362. The non-volatile storage area 1368 may be used to store persistent information that should not be lost if the system 1300 is powered down. The application programs 1366 may use and store information in the non-volatile storage area 1368, such as e-mail or other messages used by an e-mail application, and the like. A synchronization application (not shown) also resides on the system 1300 and is programmed to interact with a corresponding synchronization application resident on a host computer to keep the information stored in the non-volatile storage area 1368 synchronized with corresponding information stored at the host computer. As should be appreciated, other applications may be loaded into the memory 1362 and run on the system 1300 described herein (e.g., a content capture manager, a content transformer, etc.).
[0094] The system 1300 has a power supply 1370, which may be implemented as one or more batteries. The power supply 1370 might further include an external power source, such as an AC adapter or a powered docking cradle that supplements or recharges the batteries.
[0095] The system 1300 may also include a radio interface layer 1372 that performs the function of transmitting and receiving radio frequency communications. The radio interface layer 1372 facilitates wireless connectivity between the system 1300 and the “outside world,” via a communications carrier or service provider. Transmissions to and from the radio interface layer 1372 are conducted under control of the operating system 1364. In other words, communications received by the radio interface layer 1372 may be disseminated to the application programs 1366 via the operating system 1364, and vice versa.
[0096] The T visual indicator 1320 may be used to provide visual notifications, and / or an audio interface 1374 may be used for producing audible notifications via the audio transducer 1325. In the illustrated example, the visual indicator 1320 is a light emitting diode (LED) and the audio transducer 1325 is a speaker. These devices may be directly coupled to the power supply 1370 so that when activated, they remain on for a duration dictated by the notification mechanism even though the processor 1360 and other components might shut down for conserving battery power. The LED may be programmed to remain on indefinitely until the user takes action to indicate the powered-on status of the device. The audio interface 1374 is used to provide audible signals to and receive audible signals from the user. For example, in addition to being coupled to the audio transducer 1325, the audio interface 1374 may also be coupled to a microphone to receive audible input, such as to facilitate a telephone conversation. In accordance with aspects of the present disclosure, the microphone may also serve as an audio sensor to facilitate control of notifications, as will be described below. The system 1300 may further include a video interface 1376 that enables an operation of an on-board camera 1330 to record still images, video stream, and the like.
[0097] It will be appreciated that system 1300 may have additional features or functionality. For example, system 1300 may also include additional data storage devices (removable and / or non-removable) such as, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 13 by the non-volatile storage area 1368.
[0098] Data / information generated or captured and stored via the system 1300 may be stored locally, as described above, or the data may be stored on any number of storage media that may be accessed by the device via the radio interface layer 1372 or via a wired connection between the system 1300 and a separate computing device associated with the system 1300, for example, a server computer in a distributed computing network, such as the Internet. As should be appreciated, such data / information may be accessed via the radio interface layer 1372 or via a distributed computing network. Similarly, such data / information may be readily transferred between computing devices for storage and use according to any of a variety of data / information transfer and storage means, including electronic mail and collaborative data / information sharing systems.
[0099] It will be appreciated that the aspects and functionalities described herein may operate over distributed systems (e.g., cloud-based computing systems), where application functionality, memory, data storage and retrieval and various processing functions may be operated remotely from each other over a distributed computing network, such as the Internet or an intranet. User interfaces and information of various types may be displayed via on-board computing device displays or via remote display units associated with one or more computing devices. For example, user interfaces and information of various types may be displayed and interacted with on a wall surface onto which user interfaces and information of various types are projected. Interaction with the multitude of computing systems with which aspects of the disclosure may be practiced include, keystroke entry, touch screen entry, voice or other audio entry, gesture entry where an associated computing device is equipped with detection (e.g., camera) functionality for capturing and interpreting user gestures for controlling the functionality of the computing device, and the like.
[0100] Aspects of the present disclosure, for example, are described above with reference to block diagrams and / or operational illustrations of methods, systems, and computer program products according to aspects of the disclosure. The functions / acts noted in the blocks may occur out of the order as shown in any flowchart. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality / acts involved.
[0101] The description and illustration of one or more aspects provided in this application are not intended to limit or restrict the scope of the disclosure as claimed in any way. The aspects, examples, and details provided in this application are considered sufficient to convey possession and enable others to make and use claimed aspects of the disclosure. The claimed disclosure should not be construed as being limited to any aspect, example, or detail provided in this application. Regardless of whether shown and described in combination or separately, the various features (both structural and methodological) are intended to be selectively included or omitted to produce an aspect with a particular set of features. Having been provided with the description and illustration of the present application, one skilled in the art may envision variations, modifications, and alternate aspects falling within the spirit of the broader aspects of the general inventive concept embodied in this application that do not depart from the broader scope of the claimed disclosure.
[0102] In addition, the aspects and functionalities described herein may operate over distributed systems (e.g., cloud-based computing systems), where application functionality, memory, data storage and retrieval and various processing functions may be operated remotely from each other over a distributed computing network, such as the Internet or an intranet. User interfaces and information of various types may be displayed via on-board computing device displays or via remote display units associated with one or more computing devices. For example, user interfaces and information of various types may be displayed and interacted with on a wall surface onto which user interfaces and information of various types are projected. Interaction with the multitude of computing systems with which aspects of the disclosure may be practiced include, keystroke entry, touch screen entry, voice or other audio entry, gesture entry where an associated computing device is equipped with detection (e.g., camera) functionality for capturing and interpreting user gestures for controlling the functionality of the computing device, and the like.
[0103] The phrases “at least one,”“one or more,”“or,” and “and / or” are open-ended expressions that are both conjunctive and disjunctive in operation. For example, each of the expressions “at least one of A, B and C,”“at least one of A, B, or C,”“one or more of A, B, and C,”“one or more of A, B, or C,”“A, B, and / or C,” and “A, B, or C” means A alone, B alone, C alone, A and B together, A and C together, B and C together, or A, B and C together.
[0104] The term “a” or “an” entity refers to one or more of that entity. As such, the terms “a” (or “an”), “one or more,” and “at least one” can be used interchangeably herein. It is also to be noted that the terms “comprising,”“including,” and “having” can be used interchangeably.
[0105] The term “automatic” and variations thereof, as used herein, refers to any process or operation, which is typically continuous or semi-continuous, done without material human input when the process or operation is performed. However, a process or operation can be automatic, even though performance of the process or operation uses material or immaterial human input, if the input is received before performance of the process or operation. Human input is deemed to be material if such input influences how the process or operation will be performed. Human input that consents to the performance of the process or operation is not deemed to be “material.”
[0106] Any of the steps, functions, and operations discussed herein can be performed continuously and automatically.
[0107] The example systems and methods of this disclosure have been described in relation to computing devices. However, to avoid unnecessarily obscuring the present disclosure, the preceding description omits several known structures and devices. This omission is not to be construed as a limitation. Specific details are set forth to provide an understanding of the present disclosure. It should, however, be appreciated that the present disclosure may be practiced in a variety of ways beyond the specific detail set forth herein.
[0108] Furthermore, while the example aspects illustrated herein show the various components of the system collocated, certain components of the system can be located remotely, at distant portions of a distributed network, such as a LAN and / or the Internet, or within a dedicated system. Thus, it should be appreciated, that the components of the system can be combined into one or more devices, such as a server, communication device, or collocated on a particular node of a distributed network, such as an analog and / or digital telecommunications network, a packet-switched network, or a circuit-switched network. It will be appreciated from the preceding description, and for reasons of computational efficiency, that the components of the system can be arranged at any location within a distributed network of components without affecting the operation of the system.
[0109] Furthermore, it should be appreciated that the various links connecting the elements can be wired or wireless links, or any combination thereof, or any other known or later developed element(s) that is capable of supplying and / or communicating data to and from the connected elements. These wired or wireless links can also be secure links and may be capable of communicating encrypted information. Transmission media used as links, for example, can be any suitable carrier for electrical signals, including coaxial cables, copper wire, and fiber optics, and may take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.
[0110] While the flowcharts have been discussed and illustrated in relation to a particular sequence of events, it should be appreciated that changes, additions, and omissions to this sequence can occur without materially affecting the operation of the disclosed configurations and aspects.
[0111] Several variations and modifications of the disclosure can be used. It would be possible to provide for some features of the disclosure without providing others.
[0112] In yet another configurations, the systems and methods of this disclosure can be implemented in conjunction with a special purpose computer, a programmed microprocessor or microcontroller and peripheral integrated circuit element(s), an ASIC or other integrated circuit, a digital signal processor, a hard-wired electronic or logic circuit such as discrete element circuit, a programmable logic device or gate array such as PLD, PLA, FPGA, PAL, special purpose computer, any comparable means, or the like. In general, any device(s) or means capable of implementing the methodology illustrated herein can be used to implement the various aspects of this disclosure. Example hardware that can be used for the present disclosure includes computers, handheld devices, telephones (e.g., cellular, Internet enabled, digital, analog, hybrids, and others), and other hardware known in the art. Some of these devices include processors (e.g., a single or multiple microprocessors), memory, nonvolatile storage, input devices, and output devices. Furthermore, alternative software implementations including, but not limited to, distributed processing or component / object distributed processing, parallel processing, or virtual machine processing can also be constructed to implement the methods described herein.
[0113] In yet another configuration, the disclosed methods may be readily implemented in conjunction with software using object or object-oriented software development environments that provide portable source code that can be used on a variety of computer or workstation platforms. Alternatively, the disclosed system may be implemented partially or fully in hardware using standard logic circuits or VLSI design. Whether software or hardware is used to implement the systems in accordance with this disclosure is dependent on the speed and / or efficiency requirements of the system, the particular function, and the particular software or hardware systems or microprocessor or microcomputer systems being utilized.
[0114] In yet another configuration, the disclosed methods may be partially implemented in software that can be stored on a storage medium, executed on programmed general-purpose computer with the cooperation of a controller and memory, a special purpose computer, a microprocessor, or the like. In these instances, the systems and methods of this disclosure can be implemented as a program embedded on a personal computer such as an applet, JAVA® or CGI script, as a resource residing on a server or computer workstation, as a routine embedded in a dedicated measurement system, system component, or the like. The system can also be implemented by physically incorporating the system and / or method into a software and / or hardware system.
[0115] The disclosure is not limited to standards and protocols if described. Other similar standards and protocols not mentioned herein are in existence and are included in the present disclosure. Moreover, the standards and protocols mentioned herein, and other similar standards and protocols not mentioned herein are periodically superseded by faster or more effective equivalents having essentially the same functions. Such replacement standards and protocols having the same functions are considered equivalents included in the present disclosure.
[0116] The present disclosure, in various configurations and aspects, includes components, methods, processes, systems and / or apparatus substantially as depicted and described herein, including various combinations, subcombinations, and subsets thereof. Those of skill in the art will understand how to make and use the systems and methods disclosed herein after understanding the present disclosure. The present disclosure, in various configurations and aspects, includes providing devices and processes in the absence of items not depicted and / or described herein or in various configurations or aspects hereof, including in the absence of such items as may have been used in previous devices or processes, e.g., for improving performance, achieving ease, and / or reducing cost of implementation.
Claims
1. A method for generating descriptive text of an image, the method comprises:receiving, by a computing device, a pretrained model, the pretrained model being transformer based having a plurality of transformer blocks;receiving, by a computing device, a pretrained multimodal adaptor;providing the image to the pretrained model and multimodal adaptor;creating image embeddings of the provided image;modifying a first transformer block of the pretrained model with parameters of the multimodal adaptor to create a multimodal model;performing, by the computing device, evaluation of the image using the multimodal model;generating, by the computing device, descriptive text of the image; anddisplaying the descriptive text.
2. The method of claim 1, further comprises training the multimodal adaptor using a corpus of combinations, wherein each combination comprises a text portion and an image portion and wherein each text portion is a caption of the image portion.
3. The method of claim 1 further comprises:recognizing text within the image;performing optical character recognition on the image to extract the text;create text embeddings using the extracted text; andmerge the text embeddings with the image embeddings prior to generating the descriptive text.
4. The method of claim 3, wherein the image is one of a chart and a graph.
5. The method of claim 1, wherein modifying the first transformer block comprises:receiving delta values associated with the multimodal adaptor; andapplying the delta values to the first transformer block values.
6. The method of claim 1 further comprises:finetuning the multimodal adaptor using reinforcement learning; andwherein the reinforcement learning is one of direct preference optimization or group relative optimization.
7. The method of claim 1 creating image embeddings comprises:transforming received image information to an image vector space thereby providing detail of the image.
8. A system for generating descriptive text of an image, the system comprising:a processor; anda memory that stores a program configured to be executed by the processor, the program including instructions to perform a method comprising:receiving a pretrained model, the pretrained model being transformer based having a plurality of transformer blocks;receiving, by a computing device, a pretrained multimodal adaptor;providing the image to the pretrained model and multimodal adaptor;creating image embeddings of the provided image;modifying a first transformer block of the pretrained model with parameters of the multimodal adaptor to create a multimodal model;performing, by the computing device, evaluation of the image using the multimodal model;generating, by the computing device, descriptive text of the image; anddisplaying the descriptive text.
9. The system of claim 8, wherein the multimodal adaptor was trained using a corpus of combinations, wherein each combination comprises a text portion and an image portion and wherein each text portion is a caption of the image portion.
10. The system of claim 8, wherein the method further comprises:recognizing text within the image;performing optical character recognition on the image to extract the text;create text embeddings using the extracted text; andmerge the text embeddings with the image embeddings prior to generating the descriptive text.
11. The system of claim 10, wherein the image is one of a chart and a graph.
12. The system of claim 8, wherein the modifying of the first transformer block comprises:receiving delta values associated with the multimodal adaptor; andapplying the delta values to the first transformer block values.
13. The system of claim 8 wherein the method further comprises:finetuning the multimodal adaptor using reinforcement learning; andwherein the reinforcement learning is one of direct preference optimization or group relative optimization.
14. The system of claim 8 wherein the creating image embeddings comprises:transforming received image information to an image vector space thereby providing detail of the image.
15. A storage device having stored thereon computer executable instructions that are structured to be executed by a processor of a computing device to thereby cause the computing device to perform actions comprising:receiving, by a computing device, a pretrained model, the pretrained model being transformer based having a plurality of transformer blocks;receiving, by a computing device, a pretrained multimodal adaptor;providing an image to the pretrained model and multimodal adaptor;creating image embeddings of the image;modifying a first transformer block of the pretrained model with parameters of the multimodal adaptor to create a multimodal model;performing, by the computing device, evaluation of the image using the multimodal model;generating, by the computing device, descriptive text of the image; anddisplay.
16. The storage device of claim 15, wherein the computer executable instructions further comprise training the multimodal adaptor using a corpus of combinations, wherein each combination comprises a text portion and an image portion and wherein each text portion is a caption of the image portion.
17. The storage device of claim 15, wherein the computer executable instructions further comprise:recognizing text within the image;performing optical character recognition on the image to extract the text;create text embeddings using the extracted text; andmerge the text embeddings with the image embeddings prior to generating the descriptive text.
18. The storage device of claim 15, wherein modifying the first transformer block comprises:receiving delta values associated with the multimodal adaptor; andapplying the delta values to the first transformer block values.
19. The storage device of claim 15, wherein the computer executable instructions further comprise:finetuning the multimodal adaptor using reinforcement learning; andwherein the reinforcement learning is one of direct preference optimization or group relative optimization.
20. The storage device of claim 15 wherein creating image embeddings comprises:transforming received image information to an image vector space thereby providing detail of the image.
