US20240127005A1 - Translating text using generated visual representations and artificial intelligence - Google Patents
Translating text using generated visual representations and artificial intelligence Download PDFInfo
- Publication number
- US20240127005A1 US20240127005A1 US17/954,845 US202217954845A US2024127005A1 US 20240127005 A1 US20240127005 A1 US 20240127005A1 US 202217954845 A US202217954845 A US 202217954845A US 2024127005 A1 US2024127005 A1 US 2024127005A1
- Authority
- US
- United States
- Prior art keywords
- artificial intelligence
- computer
- intelligence techniques
- visual representation
- text
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000000007 visual effect Effects 0.000 title claims abstract description 86
- 238000013473 artificial intelligence Methods 0.000 title claims abstract description 42
- 238000000034 method Methods 0.000 claims abstract description 94
- 238000012545 processing Methods 0.000 claims abstract description 34
- 238000004590 computer program Methods 0.000 claims abstract description 13
- 238000003860 storage Methods 0.000 claims description 48
- 238000012549 training Methods 0.000 claims description 48
- 238000013519 translation Methods 0.000 claims description 46
- 230000015654 memory Effects 0.000 claims description 20
- 238000013528 artificial neural network Methods 0.000 claims description 13
- 238000013507 mapping Methods 0.000 claims description 3
- 230000014616 translation Effects 0.000 description 42
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000009826 distribution Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 230000002085 persistent effect Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- 238000013139 quantization Methods 0.000 description 4
- 230000001143 conditioned effect Effects 0.000 description 3
- 239000004744 fabric Substances 0.000 description 3
- 239000000835 fiber Substances 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000000137 annealing Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000006403 short-term memory Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/284—Lexical analysis, e.g. tokenisation or collocates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Definitions
- the present application generally relates to information technology and, more particularly, to language data processing. More specifically, translation systems face many challenges. For example, conventional translation approaches typically require paired text and image as inputs during inference, which significantly limits applicability to real-world scenarios.
- An example computer-implemented method includes generating a tokenized form of at least a portion of input text, wherein the input text is in a first language, and generating at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques.
- the method includes generating a tokenized form of at least a portion of the at least one visual representation, and generating an output including a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation.
- Another embodiment of the invention or elements thereof can be implemented in the form of a computer program product tangibly embodying computer readable instructions which, when implemented, cause a computer to carry out a plurality of method steps, as described herein.
- another embodiment of the invention or elements thereof can be implemented in the form of a system including a memory and at least one processor that is coupled to the memory and configured to perform noted method steps.
- another embodiment of the invention or elements thereof can be implemented in the form of means for carrying out the method steps described herein, or elements thereof; the means can include hardware module(s) or a combination of hardware and software modules, wherein the software modules are stored in a tangible computer-readable storage medium (or multiple such media).
- FIG. 1 is a diagram illustrating example architecture for training a multimodal translation system, according to an example embodiment of the invention
- FIG. 2 is a diagram illustrating example architecture for testing a multimodal translation system, according to an example embodiment of the invention
- FIG. 3 is a flow diagram illustrating techniques according to an example embodiment of the invention.
- FIG. 4 is a diagram illustrating a computing environment in which at least one embodiment of the invention can be implemented.
- At least one embodiment includes a multimodal machine translation framework which incorporates images at training time to produce an enhanced text-only model for machine translation.
- artificial intelligence techniques such as, for example, long short-term memory (LSTM) and one or more transformers are used for machine translation tasks.
- LSTM long short-term memory
- such an embodiment includes training a model which is provided only with source sentences at test and/or inference time.
- the model is trained to complement the text representation extracted from the source sentence(s) with a latent visual representation that mirrors a visual representation extracted from a real image (paired with the source sentence) by a multimodal machine translation (MMT) system (also referred to herein simply as a multimodal translation system).
- MMT multimodal machine translation
- such an embodiment includes training at least one autoregressive visual representation transformer over a discrete codebook (e.g., learned using VQGAN-VAE) to predict visual tokens from the input source sentence(s) for multimodal translation.
- a discrete codebook e.g., learned using VQGAN-VAE
- VQVAE vector quantized variational autoencoder
- VQGAN-VAE is an extension of VQVAE that uses a discriminator and perceptual loss to maintain perceptual quality at an increased compression rate.
- One or more embodiments includes implementing multiple transformers.
- Such transformers can include a visual transformer that maps at least one source sentence into at least one discrete image representation, and an MMT transformer that maps the source sentence(s) paired with its discrete image representation(s) into the target sentence(s).
- Such transformer models can be trained, for example, with a combination of generated image data loss-related techniques, translation data loss-related techniques, and consistency loss-related techniques. In such an embodiment, the combination of losses helps in translating a source sentence to a target sentence while encouraging consistency between predictions using either ground-truth or generated visual representations, which facilitates reliable performance at inference time.
- an autoregressive transformer is used to predict a discrete visual representation from the input text, and the combined text and visual representation are utilized to obtain a target translation.
- Such an embodiment includes training the autoregressive transformer jointly with an MMT translation transformer (also referred to herein simply as a multimodal translation transformer) using backpropagation techniques with cross-entropy losses while being guided by an additional loss that encourages consistency between predictions using ground truth and/or generated visual representations.
- MMT translation transformer also referred to herein simply as a multimodal translation transformer
- the ability to imagine and/or generate visual representations can be leveraged to improve machine translation systems.
- a translation system with access to images at training time can be taught to abstract a visual representation of a text sentence in order to ground the translation process.
- this abstracted visual representation can be used in lieu of an actual image to perform multimodal translation.
- one or more embodiments include relying on a Gumbel-Softmax relaxation to effectively train an autoregressive transformer jointly with an MMT translation transformer.
- Discrete visual representation can render a transformer framework non-differentiable and therefore difficult to optimize via backpropagation.
- one or more embodiments include adopting Gumbel-Softmax sampling techniques to resolve such non-differentiability and enable direct optimization of the transformers in an efficient way.
- a Gumbel-Softmax relaxation can substitute the original non-differentiable sample from a discrete distribution with a differentiable sample from a corresponding Gumbel-Softmax distribution.
- At least one embodiment may provide a beneficial effect such as, for example, improving text-based machine translations via the use of generated abstracted visual representations associated with input text.
- FIG. 1 is a diagram illustrating example architecture for training a machine translation system, according to an example embodiment of the invention.
- a visual representation transformer (f H ) 106 e.g., a neural network module
- a discrete visual encoder (f V ) 108 e.g., a neural network module
- a multimodal translation transformer (f T ) 110 e.g., a neural network module
- Translation outputs are gathered from multiple streams of input, including text-based tokens 103 derived from source sentence 102 , ground-truth visual tokens 107 (detailed further herein as “z”) and visual representation-based tokens 105 (detailed further herein as “ ⁇ circumflex over (z) ⁇ ), and optimized on a combination of visual representation loss (l H ), translation loss (l T ), and consistency loss (l C ).
- z ground-truth visual tokens 107
- ⁇ circumflex over (z) ⁇ visual representation-based tokens 105
- the former uses ground-truth (discrete) visual tokens 107 (z) extracted from the input image 104 (x V ), while the latter uses visual representation-based tokens 105 ( ⁇ circumflex over (z) ⁇ ) generated based on source sentence 102 (x S ).
- This produces two distributions (detailed further herein as “y M ” and “y H ,” respectively) which are trained against a target sequence y with a corresponding cross-entropy loss. Training losses also encourage consistency between predictions using ground truth and/or visual representations, which results in reliable performance of at inference time.
- FIG. 2 is a diagram illustrating example architecture for testing (also referred to as inference) a machine translation system, according to an example embodiment of the invention.
- FIG. 2 depicts a translation process wherein no images are provided as input at test/inference time in connection with a source sentence 202 (x S ).
- visual representation transformer 206 processes source sentence 202 and generates a tokenized visual representation (corresponding to the content of source sentence 202 ) which is combined with a tokenized version of the source sentence 202 to form tokenized element 209 .
- Tokenized element 209 is then processed by multimodal translation transformer 210 to generate pseudo-visual tokens 213 , conditioned on the unimodal text input x alone, which are used to generate the translation output in the form of target sentence 212 .
- one or more embodiments include training a machine translation system that can translate a source sentence x into a sentence y ⁇ Y in a target language without requiring images at inference time.
- a machine translation system can include, by way of example, an encoder-decoder framework with attention.
- f T is trained by minimizing the cross-entropy loss as follows:
- an MMT system can be implemented which considers a visual input v as a complementary information source for machine translation.
- MMT models can be trained on a dataset of triplets (x, v, y) by optimizing a translation loss based on cross-entropy as follows:
- one or more embodiments include discrete visual encoding.
- An MMT can be implemented by combining text input with continuous visual embeddings, such as convolutional features extracted from a pretrained network (e.g., ResNet).
- continuous visual embeddings such as convolutional features extracted from a pretrained network (e.g., ResNet).
- ResNet pretrained network
- one or more embodiments include using a discrete visual encoder which has multiple advantages over a continuous embedding. For example, images embedded into a sequence of discrete tokens can be concatenated with textual inputs (discrete word embeddings) into a multimodal sequence, which can then be processed by a single universal transformer to produce translation outputs.
- one or more embodiments include using discrete visual token sequences, which can include raster-scanned vector quantization maps of input images with respect to a feature codebook learned from training images.
- Such an embodiment includes implementing vector quantization with a VQGAN-VAE model, using a visual encoder f V to map an input image v into a token sequence as:
- MMT feature aggregation can be carried out by extending the input sequence of source tokens x to the translation transformer f T with z encoded by concatenating the word/visual embeddings.
- one or more embodiments include relying on a visual representation generation module f H to predict discrete visual tokens z given input text x.
- a visual representation generation module f H includes implementing an autoregressive transformer that models the concatenation of text and image tokens as:
- the autoregressive transformer is trained to maximize the joint likelihood of x and z by optimizing the cross-entropy visual representation loss as follows:
- Such an embodiment includes modeling the joint p(x, z; f H ) and not just the conditional p(z
- the generated visual sequence ⁇ circumflex over (z) ⁇ is then defined as the most likely token predicted by f H at each time step i as follows:
- one or more embodiments include defining a consistency loss as follows:
- y i M p(y i
- x, z, y ⁇ i ; f T ) and y i H p(y i
- At least one embodiment includes addressing the arg-max operator at the output of a generated visual representation module preventing loss gradients from backpropagating through f H by using the Gumbel-Softmax relaxation during training, as follows:
- ⁇ is the temperature of the Softmax and o k is a one-hot vector of length K activated at dimension k, g 1 , . . . , g K are sampled from a standard Gumbel distribution, and
- an overall optimization objective is defined as a weighted sum of translation loss, generated visual representation loss, and consistency loss, as follows:
- ⁇ H is a hyperparameter that controls the tradeoff between the visual representation module f H recovering ground truth visual tokens ( ⁇ H ⁇ ) and extracting semantic information useful for machine translation ( ⁇ H ⁇ 0), and ⁇ C controls the degree of consistency between translation outputs.
- FIG. 3 is a flow diagram illustrating techniques according to an embodiment of the present invention.
- Step 302 includes generating a tokenized form of at least a portion of input text, wherein the input text is in a first language.
- Step 304 includes generating at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques.
- the first set of one or more artificial intelligence techniques includes at least one neural network-based autoregressive transformer.
- Step 306 includes generating a tokenized form of at least a portion of the at least one visual representation.
- Step 308 includes generating an output including a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation.
- the second set of one or more artificial intelligence techniques includes at least one neural network-based multimodal translation transformer.
- generating the output includes mapping, using the second set of one or more artificial intelligence techniques, one or more portions of the tokenized form of at least a portion of input text to one or more portions of the tokenized form of at least a portion of the at least one visual representation.
- the techniques depicted in FIG. 3 can also include automatically training the first set of one or more artificial intelligence techniques by processing a training set of text data and processing image data corresponding to the training set of text data.
- processing image data corresponding to the training set of text data includes processing the image data using at least one neural network-based visual encoder.
- automatically training the first set of one or more artificial intelligence techniques includes using visual representation loss-related techniques.
- such an embodiment can include automatically training the second set of one or more artificial intelligence techniques using (i) a tokenized combination of a visual representation of the training set of text data and the training set of text data, and (ii) a tokenized combination of the image data and the training set of text data.
- automatically training the second set of one or more artificial intelligence techniques includes using translation loss-related techniques and consistency loss-related techniques.
- the techniques depicted in FIG. 3 can include automatically training at least one of the first set of one or more artificial intelligence techniques and the second set of one or more artificial intelligence techniques using feedback related to the generated output.
- software implementing the techniques depicted in FIG. 3 can be provided as a service in a cloud environment.
- model refers to an electronic digitally stored set of executable instructions and data values, associated with one another, which are capable of receiving and responding to a programmatic or other digital call, invocation, or request for resolution based upon specified input values, to yield one or more output values that can serve as the basis of computer-implemented recommendations, output data displays, machine control, etc.
- Persons of skill in the field find it convenient to express models using mathematical equations, but that form of expression does not confine the models disclosed herein to abstract concepts; instead, each model herein has a practical application in a computer in the form of stored executable instructions and data that implement the model using the computer.
- the techniques depicted in FIG. 3 can also, as described herein, include providing a system, wherein the system includes distinct software modules, each of the distinct software modules being embodied on a tangible computer-readable recordable storage medium. All of the modules (or any subset thereof) can be on the same medium, or each can be on a different medium, for example.
- the modules can include any or all of the components shown in the figures and/or described herein.
- the modules can run, for example, on a hardware processor.
- the method steps can then be carried out using the distinct software modules of the system, as described above, executing on a hardware processor.
- a computer program product can include a tangible computer-readable recordable storage medium with code adapted to be executed to carry out at least one method step described herein, including the provision of the system with the distinct software modules.
- FIG. 3 can be implemented via a computer program product that can include computer useable program code that is stored in a computer readable storage medium in a data processing system, and wherein the computer useable program code was downloaded over a network from a remote data processing system.
- the computer program product can include computer useable program code that is stored in a computer readable storage medium in a server data processing system, and wherein the computer useable program code is downloaded over a network to a remote data processing system for use in a computer readable storage medium with the remote system.
- An embodiment of the invention or elements thereof can be implemented in the form of an apparatus including a memory and at least one processor that is coupled to the memory and configured to perform exemplary method steps.
- CPP embodiment is a term used in the present disclosure to describe any set of one, or more, storage media (also called “mediums”) collectively included in a set of one, or more, storage devices that collectively include machine readable code corresponding to instructions and/or data for performing computer operations specified in a given CPP claim.
- storage device is any tangible device that can retain and store instructions for use by a computer processor.
- the computer readable storage medium may be an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, a mechanical storage medium, or any suitable combination of the foregoing.
- Some known types of storage devices that include these mediums include: diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device (such as punch cards or pits/lands formed in a major surface of a disc) or any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or Flash memory erasable programmable read-only memory
- SRAM static random access memory
- CD-ROM compact disc read-only memory
- DVD digital versatile disk
- memory stick floppy disk
- mechanically encoded device such as punch cards or pits/lands formed in a major surface of a disc
- a computer readable storage medium is not to be construed as storage in the form of transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide, light pulses passing through a fiber optic cable, electrical signals communicated through a wire, and/or other transmission media.
- transitory signals such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide, light pulses passing through a fiber optic cable, electrical signals communicated through a wire, and/or other transmission media.
- data is typically moved at some occasional points in time during normal operations of a storage device, such as during access, de-fragmentation or garbage collection, but this does not render the storage device as transitory because the data is not transitory while it is stored.
- Computing environment 400 contains an example of an environment for the execution of at least some of the computer code involved in performing the inventive methods, such as visual representation-based text translation code 426 .
- computing environment 400 includes, for example, computer 401 , wide area network (WAN) 402 , end user device (EUD) 403 , remote server 404 , public cloud 405 , and private cloud 406 .
- WAN wide area network
- EUD end user device
- computer 401 includes processor set 410 (including processing circuitry 420 and cache 421 ), communication fabric 411 , volatile memory 412 , persistent storage 413 (including operating system 422 and code 426 , as identified above), peripheral device set 414 (including user interface (UI) device set 423 , storage 424 , and Internet of Things (IoT) sensor set 425 ), and network module 415 .
- Remote server 404 includes remote database 430 .
- Public cloud 405 includes gateway 440 , cloud orchestration module 441 , host physical machine set 442 , virtual machine set 443 , and container set 444 .
- Computer 401 may take the form of a desktop computer, laptop computer, tablet computer, smart phone, smart watch or other wearable computer, mainframe computer, quantum computer or any other form of computer or mobile device now known or to be developed in the future that is capable of running a program, accessing a network or querying a database, such as remote database 430 .
- performance of a computer-implemented method may be distributed among multiple computers and/or between multiple locations.
- this presentation of computing environment 400 detailed discussion is focused on a single computer, specifically computer 401 , to keep the presentation as simple as possible.
- Computer 401 may be located in a cloud, even though it is not shown in a cloud in FIG. 4 .
- computer 401 is not required to be in a cloud except to any extent as may be affirmatively indicated.
- Processor set 410 includes one, or more, computer processors of any type now known or to be developed in the future.
- Processing circuitry 420 may be distributed over multiple packages, for example, multiple, coordinated integrated circuit chips.
- Processing circuitry 420 may implement multiple processor threads and/or multiple processor cores.
- Cache 421 is memory that is located in the processor chip package(s) and is typically used for data or code that should be available for rapid access by the threads or cores running on processor set 410 .
- Cache memories are typically organized into multiple levels depending upon relative proximity to the processing circuitry. Alternatively, some, or all, of the cache for the processor set may be located “off chip.”
- processor set 410 may be designed for working with qubits and performing quantum computing.
- Computer readable program instructions are typically loaded onto computer 401 to cause a series of operational steps to be performed by processor set 410 of computer 401 and thereby effect a computer-implemented method, such that the instructions thus executed will instantiate the methods specified in flowcharts and/or narrative descriptions of computer-implemented methods included in this document (collectively referred to as “the inventive methods”).
- These computer readable program instructions are stored in various types of computer readable storage media, such as cache 421 and the other storage media discussed below.
- the program instructions, and associated data are accessed by processor set 410 to control and direct performance of the inventive methods.
- at least some of the instructions for performing the inventive methods may be stored in code 426 in persistent storage 413 .
- Communication fabric 411 is the signal conduction path that allows the various components of computer 401 to communicate with each other.
- this fabric is made of switches and electrically conductive paths, such as the switches and electrically conductive paths that make up busses, bridges, physical input/output ports and the like.
- Other types of signal communication paths may be used, such as fiber optic communication paths and/or wireless communication paths.
- Volatile memory 412 is any type of volatile memory now known or to be developed in the future. Examples include dynamic type RAM or static type RAM. Typically, volatile memory 412 is characterized by random access, but this is not required unless affirmatively indicated. In computer 401 , the volatile memory 412 is located in a single package and is internal to computer 401 , but, alternatively or additionally, the volatile memory may be distributed over multiple packages and/or located externally with respect to computer 401 .
- Persistent storage 413 is any form of non-volatile storage for computers that is now known or to be developed in the future. The non-volatility of this storage means that the stored data is maintained regardless of whether power is being supplied to computer 401 and/or directly to persistent storage 413 .
- Persistent storage 413 may be a ROM, but typically at least a portion of the persistent storage allows writing of data, deletion of data and re-writing of data. Some familiar forms of persistent storage include magnetic disks and solid state storage devices.
- Operating system 422 may take several forms, such as various known proprietary operating systems or open source Portable Operating System Interface-type operating systems that employ a kernel.
- the code included in code 426 typically includes at least some of the computer code involved in performing the inventive methods.
- Peripheral device set 414 includes the set of peripheral devices of computer 401 .
- Data communication connections between the peripheral devices and the other components of computer 401 may be implemented in various ways, such as Bluetooth connections, Near-Field Communication (NFC) connections, connections made by cables (such as universal serial bus (USB) type cables), insertion-type connections (for example, secure digital (SD) card), connections made through local area communication networks and even connections made through wide area networks such as the internet.
- UI device set 423 may include components such as a display screen, speaker, microphone, wearable devices (such as goggles and smart watches), keyboard, mouse, printer, touchpad, game controllers, and haptic devices.
- Storage 424 is external storage, such as an external hard drive, or insertable storage, such as an SD card. Storage 424 may be persistent and/or volatile. In some embodiments, storage 424 may take the form of a quantum computing storage device for storing data in the form of qubits. In embodiments where computer 401 is required to have a large amount of storage (for example, where computer 401 locally stores and manages a large database) then this storage may be provided by peripheral storage devices designed for storing very large amounts of data, such as a storage area network (SAN) that is shared by multiple, geographically distributed computers.
- IoT sensor set 425 is made up of sensors that can be used in Internet of Things applications. For example, one sensor may be a thermometer and another sensor may be a motion detector.
- Network module 415 is the collection of computer software, hardware, and firmware that allows computer 401 to communicate with other computers through WAN 402 .
- Network module 415 may include hardware, such as modems or Wi-Fi signal transceivers, software for packetizing and/or de-packetizing data for communication network transmission, and/or web browser software for communicating data over the internet.
- network control functions and network forwarding functions of network module 415 are performed on the same physical hardware device. In other embodiments (for example, embodiments that utilize software-defined networking (SDN)), the control functions and the forwarding functions of network module 415 are performed on physically separate devices, such that the control functions manage several different network hardware devices.
- Computer readable program instructions for performing the inventive methods can typically be downloaded to computer 401 from an external computer or external storage device through a network adapter card or network interface included in network module 415 .
- WAN 402 is any wide area network (for example, the internet) capable of communicating computer data over non-local distances by any technology for communicating computer data, now known or to be developed in the future.
- the WAN 402 may be replaced and/or supplemented by local area networks (LANs) designed to communicate data between devices located in a local area, such as a Wi-Fi network.
- LANs local area networks
- the WAN and/or LANs typically include computer hardware such as copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and edge servers.
- End user device 403 is any computer system that is used and controlled by an end user (for example, a customer of an enterprise that operates computer 401 ), and may take any of the forms discussed above in connection with computer 401 .
- EUD 403 typically receives helpful and useful data from the operations of computer 401 .
- this recommendation would typically be communicated from network module 415 of computer 401 through WAN 402 to EUD 403 .
- EUD 403 can display, or otherwise present, the recommendation to an end user.
- EUD 403 may be a client device, such as thin client, heavy client, mainframe computer, desktop computer and so on.
- Remote server 404 is any computer system that serves at least some data and/or functionality to computer 401 .
- Remote server 404 may be controlled and used by the same entity that operates computer 401 .
- Remote server 404 represents the machine(s) that collect and store helpful and useful data for use by other computers, such as computer 401 . For example, in a hypothetical case where computer 401 is designed and programmed to provide a recommendation based on historical data, then this historical data may be provided to computer 401 from remote database 430 of remote server 404 .
- Public cloud 405 is any computer system available for use by multiple entities that provides on-demand availability of computer system resources and/or other computer capabilities, especially data storage (cloud storage) and computing power, without direct active management by the user. Cloud computing typically leverages sharing of resources to achieve coherence and economies of scale.
- the direct and active management of the computing resources of public cloud 405 is performed by the computer hardware and/or software of cloud orchestration module 441 .
- the computing resources provided by public cloud 405 are typically implemented by virtual computing environments that run on various computers making up the computers of host physical machine set 442 , which is the universe of physical computers in and/or available to public cloud 405 .
- the virtual computing environments (VCEs) typically take the form of virtual machines from virtual machine set 443 and/or containers from container set 444 .
- VCEs may be stored as images and may be transferred among and between the various physical machine hosts, either as images or after instantiation of the VCE.
- Cloud orchestration module 441 manages the transfer and storage of images, deploys new instantiations of VCEs and manages active instantiations of VCE deployments.
- Gateway 440 is the collection of computer software, hardware, and firmware that allows public cloud 405 to communicate through WAN 402 .
- VCEs can be stored as “images.” A new active instance of the VCE can be instantiated from the image.
- Two familiar types of VCEs are virtual machines and containers.
- a container is a VCE that uses operating-system-level virtualization. This refers to an operating system feature in which the kernel allows the existence of multiple isolated user-space instances, called containers. These isolated user-space instances typically behave as real computers from the point of view of programs running in them.
- a computer program running on an ordinary operating system can utilize all resources of that computer, such as connected devices, files and folders, network shares, CPU power, and quantifiable hardware capabilities.
- programs running inside a container can only use the contents of the container and devices assigned to the container, a feature which is known as containerization.
- Private cloud 406 is similar to public cloud 405 , except that the computing resources are only available for use by a single enterprise. While private cloud 406 is depicted as being in communication with WAN 402 , in other embodiments a private cloud may be disconnected from the internet entirely and only accessible through a local/private network.
- a hybrid cloud is a composition of multiple clouds of different types (for example, private, community or public cloud types), often respectively implemented by different vendors. Each of the multiple clouds remains a separate and discrete entity, but the larger hybrid cloud architecture is bound together by standardized or proprietary technology that enables orchestration, management, and/or data/application portability between the multiple constituent clouds.
- public cloud 405 and private cloud 406 are both part of a larger hybrid cloud.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Machine Translation (AREA)
Abstract
Methods, systems, and computer program products for translating text using generated visual representations and artificial intelligence are provided herein. A computer-implemented method includes generating a tokenized form of at least a portion of input text in a first language; generating at least one visual representation of at least a portion of the input text using a first set of artificial intelligence techniques; generating a tokenized form of at least a portion of the at least one visual representation; and generating an output including a translated version of the input text into at least a second language by processing, using a second set of artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation.
Description
- The present application generally relates to information technology and, more particularly, to language data processing. More specifically, translation systems face many challenges. For example, conventional translation approaches typically require paired text and image as inputs during inference, which significantly limits applicability to real-world scenarios.
- In at least one embodiment, techniques for translating text using generated visual representations and artificial intelligence are provided. An example computer-implemented method includes generating a tokenized form of at least a portion of input text, wherein the input text is in a first language, and generating at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques. Additionally, the method includes generating a tokenized form of at least a portion of the at least one visual representation, and generating an output including a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation.
- Another embodiment of the invention or elements thereof can be implemented in the form of a computer program product tangibly embodying computer readable instructions which, when implemented, cause a computer to carry out a plurality of method steps, as described herein. Furthermore, another embodiment of the invention or elements thereof can be implemented in the form of a system including a memory and at least one processor that is coupled to the memory and configured to perform noted method steps. Yet further, another embodiment of the invention or elements thereof can be implemented in the form of means for carrying out the method steps described herein, or elements thereof; the means can include hardware module(s) or a combination of hardware and software modules, wherein the software modules are stored in a tangible computer-readable storage medium (or multiple such media).
- These and other objects, features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
-
FIG. 1 is a diagram illustrating example architecture for training a multimodal translation system, according to an example embodiment of the invention; -
FIG. 2 is a diagram illustrating example architecture for testing a multimodal translation system, according to an example embodiment of the invention; -
FIG. 3 is a flow diagram illustrating techniques according to an example embodiment of the invention; and -
FIG. 4 is a diagram illustrating a computing environment in which at least one embodiment of the invention can be implemented. - As described herein, at least one embodiment includes a multimodal machine translation framework which incorporates images at training time to produce an enhanced text-only model for machine translation. In such an embodiment, artificial intelligence techniques such as, for example, long short-term memory (LSTM) and one or more transformers are used for machine translation tasks. Additionally, such an embodiment includes training a model which is provided only with source sentences at test and/or inference time. However, in such an embodiment, during training, the model is trained to complement the text representation extracted from the source sentence(s) with a latent visual representation that mirrors a visual representation extracted from a real image (paired with the source sentence) by a multimodal machine translation (MMT) system (also referred to herein simply as a multimodal translation system). As detailed herein, such an embodiment includes training at least one autoregressive visual representation transformer over a discrete codebook (e.g., learned using VQGAN-VAE) to predict visual tokens from the input source sentence(s) for multimodal translation. As used herein, vector quantized variational autoencoder (VQVAE) refers to an approach to learn discrete representations of images and model their distribution autoregressively with a convolutional architecture, and VQGAN-VAE is an extension of VQVAE that uses a discriminator and perceptual loss to maintain perceptual quality at an increased compression rate.
- One or more embodiments includes implementing multiple transformers. Such transformers can include a visual transformer that maps at least one source sentence into at least one discrete image representation, and an MMT transformer that maps the source sentence(s) paired with its discrete image representation(s) into the target sentence(s). Such transformer models can be trained, for example, with a combination of generated image data loss-related techniques, translation data loss-related techniques, and consistency loss-related techniques. In such an embodiment, the combination of losses helps in translating a source sentence to a target sentence while encouraging consistency between predictions using either ground-truth or generated visual representations, which facilitates reliable performance at inference time.
- As further detailed herein, given a source sentence, an autoregressive transformer is used to predict a discrete visual representation from the input text, and the combined text and visual representation are utilized to obtain a target translation. Such an embodiment includes training the autoregressive transformer jointly with an MMT translation transformer (also referred to herein simply as a multimodal translation transformer) using backpropagation techniques with cross-entropy losses while being guided by an additional loss that encourages consistency between predictions using ground truth and/or generated visual representations.
- Accordingly, in one or more embodiments, the ability to imagine and/or generate visual representations can be leveraged to improve machine translation systems. Further, in such an embodiment, a translation system with access to images at training time can be taught to abstract a visual representation of a text sentence in order to ground the translation process. At test time, this abstracted visual representation can be used in lieu of an actual image to perform multimodal translation.
- As sampling of the discrete visual representations is non-differentiable, one or more embodiments include relying on a Gumbel-Softmax relaxation to effectively train an autoregressive transformer jointly with an MMT translation transformer. Discrete visual representation can render a transformer framework non-differentiable and therefore difficult to optimize via backpropagation. Accordingly, one or more embodiments include adopting Gumbel-Softmax sampling techniques to resolve such non-differentiability and enable direct optimization of the transformers in an efficient way. In particular, a Gumbel-Softmax relaxation can substitute the original non-differentiable sample from a discrete distribution with a differentiable sample from a corresponding Gumbel-Softmax distribution.
- Accordingly, at least one embodiment may provide a beneficial effect such as, for example, improving text-based machine translations via the use of generated abstracted visual representations associated with input text.
-
FIG. 1 is a diagram illustrating example architecture for training a machine translation system, according to an example embodiment of the invention. By way of illustration, and as further detailed below,FIG. 1 depicts a visual representation transformer (fH) 106 (e.g., a neural network module) that predicts and generates visual representation-basedtokens 105 by processing asource sentence 102, a discrete visual encoder (fV) 108 (e.g., a neural network module) for mapping aninput image 104 into one or more sequences of ground-truthvisual tokens 107, and a multimodal translation transformer (fT) 110 (e.g., a neural network module) that predicts a target sentence 112 (which can be tokenized into tokens 117) from the concatenated sequences of text, avisual representation output 113, and amultimodal output 115, generated at least in part by processing the combinations of text andvisual tokens transformers - Translation outputs are gathered from multiple streams of input, including text-based
tokens 103 derived fromsource sentence 102, ground-truth visual tokens 107 (detailed further herein as “z”) and visual representation-based tokens 105 (detailed further herein as “{circumflex over (z)}), and optimized on a combination of visual representation loss (lH), translation loss (lT), and consistency loss (lC). During training, wherein input sentence-image pairs (x, v) are available, the translation output is predicted through two streams: amultimodal output 115 and avisual representation output 113. The former uses ground-truth (discrete) visual tokens 107 (z) extracted from the input image 104 (xV), while the latter uses visual representation-based tokens 105 ({circumflex over (z)}) generated based on source sentence 102 (xS). This produces two distributions (detailed further herein as “yM” and “yH,” respectively) which are trained against a target sequence y with a corresponding cross-entropy loss. Training losses also encourage consistency between predictions using ground truth and/or visual representations, which results in reliable performance of at inference time. -
FIG. 2 is a diagram illustrating example architecture for testing (also referred to as inference) a machine translation system, according to an example embodiment of the invention. By way of illustration,FIG. 2 depicts a translation process wherein no images are provided as input at test/inference time in connection with a source sentence 202 (xS). Accordingly, at inference time, as depicted inFIG. 2 , visual representation transformer 206processes source sentence 202 and generates a tokenized visual representation (corresponding to the content of source sentence 202) which is combined with a tokenized version of thesource sentence 202 to form tokenizedelement 209. Tokenizedelement 209 is then processed by multimodal translation transformer 210 to generatepseudo-visual tokens 213, conditioned on the unimodal text input x alone, which are used to generate the translation output in the form oftarget sentence 212. - As detailed herein, given a corpus of source sentences x∈X and visual context v∈V, typically images, one or more embodiments include training a machine translation system that can translate a source sentence x into a sentence y∈Y in a target language without requiring images at inference time. Such a machine translation system can include, by way of example, an encoder-decoder framework with attention. Given sequence pairs (x, y), wherein x=(x1, . . . , xS) is the source sentence of length S, and y=(y1, . . . , yT) is the target sentence of length T, a transformer fT=(fT enc, fT dec) models the likelihood of target tokens conditioned on the input sequence as:
-
- wherein the decoder fT dec predicts the probability of output tokens at each location i by attending to encoder output fT enc(x) and previous target tokens y<i using a cascade of attention layers. In such an embodiment, fT is trained by minimizing the cross-entropy loss as follows:
- In at least one embodiment, an MMT system can be implemented which considers a visual input v as a complementary information source for machine translation. Such an MMT system can include using an encoder fV to map an image into a latent visual representation z=fV(v), which is fed into a modified decoder (e.g., by concatenating z with the word embeddings of x) to obtain the probabilities conditioned on visual input,
-
- Additionally, in such an embodiment, MMT models can be trained on a dataset of triplets (x, v, y) by optimizing a translation loss based on cross-entropy as follows:
- As detailed herein, one or more embodiments include discrete visual encoding. An MMT can be implemented by combining text input with continuous visual embeddings, such as convolutional features extracted from a pretrained network (e.g., ResNet). However, one or more embodiments include using a discrete visual encoder which has multiple advantages over a continuous embedding. For example, images embedded into a sequence of discrete tokens can be concatenated with textual inputs (discrete word embeddings) into a multimodal sequence, which can then be processed by a single universal transformer to produce translation outputs.
- Accordingly, one or more embodiments include using discrete visual token sequences, which can include raster-scanned vector quantization maps of input images with respect to a feature codebook learned from training images. Such an embodiment includes implementing vector quantization with a VQGAN-VAE model, using a visual encoder fV to map an input image v into a token sequence as:
-
z=Q(f V(v);E V) - Here z=[z1, . . . , zV] is a grid of discrete tokens laid out as a sequence, wherein zi∈{1, . . . , K}, EV={e(k)}k=1 K are the d-dimensional visual codebook of size K, and Q denotes the quantization function:
-
- that maps each spatial location i∈{1, . . . , V} of feature array c=fV(v)∈ V×d into the index of its closest visual code in EV. Given a multimodal training set ={(x, v, y)} wherein x, y denote source and target sentences, the image encoder fV is trained on a collection of images {v} by optimizing a combination of reconstruction loss, vector quantization loss, and generative adversarial network (GAN) loss.
- Once fV is learned, MMT feature aggregation can be carried out by extending the input sequence of source tokens x to the translation transformer fT with z encoded by concatenating the word/visual embeddings.
- During inference, when visual inputs are not available, one or more embodiments include relying on a visual representation generation module fH to predict discrete visual tokens z given input text x. Such an embodiment includes implementing an autoregressive transformer that models the concatenation of text and image tokens as:
-
- The autoregressive transformer is trained to maximize the joint likelihood of x and z by optimizing the cross-entropy visual representation loss as follows:
- Such an embodiment includes modeling the joint p(x, z; fH) and not just the conditional p(z|x; fH). The generated visual sequence {circumflex over (z)} is then defined as the most likely token predicted by fH at each time step i as follows:
-
- wherein the conditioning z<i is replaced with generated visual sequence {circumflex over (z)}<i at inference time. While this enables the autoregressive transformer to perform autoregressive decoding using source text tokens x only, it creates a mismatch between the training and inference, which is reflected in the output of the multimodal translation transformer. To reduce this mismatch, one or more embodiments include defining a consistency loss as follows:
-
- wherein yi M=p(yi|x, z, y<i; fT) and yi H=p(yi|x, {circumflex over (z)}, y<i; fT) are the next word distributions from ground truth visual tokens and generated visual representation features, respectively, and KL[yi M∥yi H] is the Kullback-Leibler divergence between the two conditional distributions.
- Additionally, at least one embodiment includes addressing the arg-max operator at the output of a generated visual representation module preventing loss gradients from backpropagating through fH by using the Gumbel-Softmax relaxation during training, as follows:
-
- wherein τ is the temperature of the Softmax and ok is a one-hot vector of length K activated at dimension k, g1, . . . , gK are sampled from a standard Gumbel distribution, and
-
πi,k =f H(z i =k|z <i ,x) - One or more embodiments can include setting τ=5 as initial value and gradually annealing the value down to 0 during training, such that a one-hot distribution is implemented at inference.
- Additionally, in at least one embodiment, an overall optimization objective is defined as a weighted sum of translation loss, generated visual representation loss, and consistency loss, as follows:
- wherein γH is a hyperparameter that controls the tradeoff between the visual representation module fH recovering ground truth visual tokens (γH→∞) and extracting semantic information useful for machine translation (γH→0), and λC controls the degree of consistency between translation outputs.
- Further, at least one embodiment includes implementing a version of a latent variable MT wherein z=[z1, . . . , zV] are discrete latent variables that are grounded (i.e., imbued meaning) by being trained against ground truth values of z obtained from real images.
-
FIG. 3 is a flow diagram illustrating techniques according to an embodiment of the present invention. Step 302 includes generating a tokenized form of at least a portion of input text, wherein the input text is in a first language. Step 304 includes generating at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques. In at least one embodiment, the first set of one or more artificial intelligence techniques includes at least one neural network-based autoregressive transformer. - Step 306 includes generating a tokenized form of at least a portion of the at least one visual representation. Step 308 includes generating an output including a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation. In at least one embodiment, the second set of one or more artificial intelligence techniques includes at least one neural network-based multimodal translation transformer. Also, in one or more embodiments, generating the output includes mapping, using the second set of one or more artificial intelligence techniques, one or more portions of the tokenized form of at least a portion of input text to one or more portions of the tokenized form of at least a portion of the at least one visual representation.
- The techniques depicted in
FIG. 3 can also include automatically training the first set of one or more artificial intelligence techniques by processing a training set of text data and processing image data corresponding to the training set of text data. In such an embodiment, processing image data corresponding to the training set of text data includes processing the image data using at least one neural network-based visual encoder. Additionally, in such an embodiment, automatically training the first set of one or more artificial intelligence techniques includes using visual representation loss-related techniques. - Further, such an embodiment can include automatically training the second set of one or more artificial intelligence techniques using (i) a tokenized combination of a visual representation of the training set of text data and the training set of text data, and (ii) a tokenized combination of the image data and the training set of text data. Also, in one or more embodiments, automatically training the second set of one or more artificial intelligence techniques includes using translation loss-related techniques and consistency loss-related techniques.
- In at least one embodiment, the techniques depicted in
FIG. 3 can include automatically training at least one of the first set of one or more artificial intelligence techniques and the second set of one or more artificial intelligence techniques using feedback related to the generated output. - Additionally, in one or more embodiments, software implementing the techniques depicted in
FIG. 3 can be provided as a service in a cloud environment. - It is to be appreciated that “model,” as used herein, refers to an electronic digitally stored set of executable instructions and data values, associated with one another, which are capable of receiving and responding to a programmatic or other digital call, invocation, or request for resolution based upon specified input values, to yield one or more output values that can serve as the basis of computer-implemented recommendations, output data displays, machine control, etc. Persons of skill in the field find it convenient to express models using mathematical equations, but that form of expression does not confine the models disclosed herein to abstract concepts; instead, each model herein has a practical application in a computer in the form of stored executable instructions and data that implement the model using the computer.
- The techniques depicted in
FIG. 3 can also, as described herein, include providing a system, wherein the system includes distinct software modules, each of the distinct software modules being embodied on a tangible computer-readable recordable storage medium. All of the modules (or any subset thereof) can be on the same medium, or each can be on a different medium, for example. The modules can include any or all of the components shown in the figures and/or described herein. In an embodiment of the invention, the modules can run, for example, on a hardware processor. The method steps can then be carried out using the distinct software modules of the system, as described above, executing on a hardware processor. Further, a computer program product can include a tangible computer-readable recordable storage medium with code adapted to be executed to carry out at least one method step described herein, including the provision of the system with the distinct software modules. - Additionally, the techniques depicted in
FIG. 3 can be implemented via a computer program product that can include computer useable program code that is stored in a computer readable storage medium in a data processing system, and wherein the computer useable program code was downloaded over a network from a remote data processing system. Also, in an embodiment of the invention, the computer program product can include computer useable program code that is stored in a computer readable storage medium in a server data processing system, and wherein the computer useable program code is downloaded over a network to a remote data processing system for use in a computer readable storage medium with the remote system. - An embodiment of the invention or elements thereof can be implemented in the form of an apparatus including a memory and at least one processor that is coupled to the memory and configured to perform exemplary method steps.
- Various aspects of the present disclosure are described by narrative text, flowcharts, block diagrams of computer systems and/or block diagrams of the machine logic included in computer program product (CPP) embodiments. With respect to any flowcharts, depending upon the technology involved, the operations can be performed in a different order than what is shown in a given flowchart. For example, again depending upon the technology involved, two operations shown in successive flowchart blocks may be performed in reverse order, as a single integrated step, concurrently, or in a manner at least partially overlapping in time.
- A computer program product embodiment (“CPP embodiment” or “CPP”) is a term used in the present disclosure to describe any set of one, or more, storage media (also called “mediums”) collectively included in a set of one, or more, storage devices that collectively include machine readable code corresponding to instructions and/or data for performing computer operations specified in a given CPP claim. A “storage device” is any tangible device that can retain and store instructions for use by a computer processor. Without limitation, the computer readable storage medium may be an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, a mechanical storage medium, or any suitable combination of the foregoing. Some known types of storage devices that include these mediums include: diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device (such as punch cards or pits/lands formed in a major surface of a disc) or any suitable combination of the foregoing. A computer readable storage medium, as that term is used in the present disclosure, is not to be construed as storage in the form of transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide, light pulses passing through a fiber optic cable, electrical signals communicated through a wire, and/or other transmission media. As will be understood by those of skill in the art, data is typically moved at some occasional points in time during normal operations of a storage device, such as during access, de-fragmentation or garbage collection, but this does not render the storage device as transitory because the data is not transitory while it is stored.
-
Computing environment 400 contains an example of an environment for the execution of at least some of the computer code involved in performing the inventive methods, such as visual representation-basedtext translation code 426. In addition tocode 426,computing environment 400 includes, for example,computer 401, wide area network (WAN) 402, end user device (EUD) 403,remote server 404,public cloud 405, andprivate cloud 406. In this embodiment,computer 401 includes processor set 410 (includingprocessing circuitry 420 and cache 421),communication fabric 411,volatile memory 412, persistent storage 413 (includingoperating system 422 andcode 426, as identified above), peripheral device set 414 (including user interface (UI) device set 423,storage 424, and Internet of Things (IoT) sensor set 425), andnetwork module 415.Remote server 404 includesremote database 430.Public cloud 405 includesgateway 440,cloud orchestration module 441, host physical machine set 442, virtual machine set 443, and container set 444. -
Computer 401 may take the form of a desktop computer, laptop computer, tablet computer, smart phone, smart watch or other wearable computer, mainframe computer, quantum computer or any other form of computer or mobile device now known or to be developed in the future that is capable of running a program, accessing a network or querying a database, such asremote database 430. As is well understood in the art of computer technology, and depending upon the technology, performance of a computer-implemented method may be distributed among multiple computers and/or between multiple locations. On the other hand, in this presentation ofcomputing environment 400, detailed discussion is focused on a single computer, specificallycomputer 401, to keep the presentation as simple as possible.Computer 401 may be located in a cloud, even though it is not shown in a cloud inFIG. 4 . On the other hand,computer 401 is not required to be in a cloud except to any extent as may be affirmatively indicated. - Processor set 410 includes one, or more, computer processors of any type now known or to be developed in the future.
Processing circuitry 420 may be distributed over multiple packages, for example, multiple, coordinated integrated circuit chips.Processing circuitry 420 may implement multiple processor threads and/or multiple processor cores.Cache 421 is memory that is located in the processor chip package(s) and is typically used for data or code that should be available for rapid access by the threads or cores running onprocessor set 410. Cache memories are typically organized into multiple levels depending upon relative proximity to the processing circuitry. Alternatively, some, or all, of the cache for the processor set may be located “off chip.” In some computing environments, processor set 410 may be designed for working with qubits and performing quantum computing. - Computer readable program instructions are typically loaded onto
computer 401 to cause a series of operational steps to be performed by processor set 410 ofcomputer 401 and thereby effect a computer-implemented method, such that the instructions thus executed will instantiate the methods specified in flowcharts and/or narrative descriptions of computer-implemented methods included in this document (collectively referred to as “the inventive methods”). These computer readable program instructions are stored in various types of computer readable storage media, such ascache 421 and the other storage media discussed below. The program instructions, and associated data, are accessed by processor set 410 to control and direct performance of the inventive methods. Incomputing environment 400, at least some of the instructions for performing the inventive methods may be stored incode 426 inpersistent storage 413. -
Communication fabric 411 is the signal conduction path that allows the various components ofcomputer 401 to communicate with each other. Typically, this fabric is made of switches and electrically conductive paths, such as the switches and electrically conductive paths that make up busses, bridges, physical input/output ports and the like. Other types of signal communication paths may be used, such as fiber optic communication paths and/or wireless communication paths. -
Volatile memory 412 is any type of volatile memory now known or to be developed in the future. Examples include dynamic type RAM or static type RAM. Typically,volatile memory 412 is characterized by random access, but this is not required unless affirmatively indicated. Incomputer 401, thevolatile memory 412 is located in a single package and is internal tocomputer 401, but, alternatively or additionally, the volatile memory may be distributed over multiple packages and/or located externally with respect tocomputer 401. -
Persistent storage 413 is any form of non-volatile storage for computers that is now known or to be developed in the future. The non-volatility of this storage means that the stored data is maintained regardless of whether power is being supplied tocomputer 401 and/or directly topersistent storage 413.Persistent storage 413 may be a ROM, but typically at least a portion of the persistent storage allows writing of data, deletion of data and re-writing of data. Some familiar forms of persistent storage include magnetic disks and solid state storage devices.Operating system 422 may take several forms, such as various known proprietary operating systems or open source Portable Operating System Interface-type operating systems that employ a kernel. The code included incode 426 typically includes at least some of the computer code involved in performing the inventive methods. - Peripheral device set 414 includes the set of peripheral devices of
computer 401. Data communication connections between the peripheral devices and the other components ofcomputer 401 may be implemented in various ways, such as Bluetooth connections, Near-Field Communication (NFC) connections, connections made by cables (such as universal serial bus (USB) type cables), insertion-type connections (for example, secure digital (SD) card), connections made through local area communication networks and even connections made through wide area networks such as the internet. In various embodiments, UI device set 423 may include components such as a display screen, speaker, microphone, wearable devices (such as goggles and smart watches), keyboard, mouse, printer, touchpad, game controllers, and haptic devices.Storage 424 is external storage, such as an external hard drive, or insertable storage, such as an SD card.Storage 424 may be persistent and/or volatile. In some embodiments,storage 424 may take the form of a quantum computing storage device for storing data in the form of qubits. In embodiments wherecomputer 401 is required to have a large amount of storage (for example, wherecomputer 401 locally stores and manages a large database) then this storage may be provided by peripheral storage devices designed for storing very large amounts of data, such as a storage area network (SAN) that is shared by multiple, geographically distributed computers. IoT sensor set 425 is made up of sensors that can be used in Internet of Things applications. For example, one sensor may be a thermometer and another sensor may be a motion detector. -
Network module 415 is the collection of computer software, hardware, and firmware that allowscomputer 401 to communicate with other computers throughWAN 402.Network module 415 may include hardware, such as modems or Wi-Fi signal transceivers, software for packetizing and/or de-packetizing data for communication network transmission, and/or web browser software for communicating data over the internet. In some embodiments, network control functions and network forwarding functions ofnetwork module 415 are performed on the same physical hardware device. In other embodiments (for example, embodiments that utilize software-defined networking (SDN)), the control functions and the forwarding functions ofnetwork module 415 are performed on physically separate devices, such that the control functions manage several different network hardware devices. Computer readable program instructions for performing the inventive methods can typically be downloaded tocomputer 401 from an external computer or external storage device through a network adapter card or network interface included innetwork module 415. -
WAN 402 is any wide area network (for example, the internet) capable of communicating computer data over non-local distances by any technology for communicating computer data, now known or to be developed in the future. In some embodiments, theWAN 402 may be replaced and/or supplemented by local area networks (LANs) designed to communicate data between devices located in a local area, such as a Wi-Fi network. The WAN and/or LANs typically include computer hardware such as copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and edge servers. -
End user device 403 is any computer system that is used and controlled by an end user (for example, a customer of an enterprise that operates computer 401), and may take any of the forms discussed above in connection withcomputer 401.EUD 403 typically receives helpful and useful data from the operations ofcomputer 401. For example, in a hypothetical case wherecomputer 401 is designed to provide a recommendation to an end user, this recommendation would typically be communicated fromnetwork module 415 ofcomputer 401 throughWAN 402 toEUD 403. In this way,EUD 403 can display, or otherwise present, the recommendation to an end user. In some embodiments,EUD 403 may be a client device, such as thin client, heavy client, mainframe computer, desktop computer and so on. -
Remote server 404 is any computer system that serves at least some data and/or functionality tocomputer 401.Remote server 404 may be controlled and used by the same entity that operatescomputer 401.Remote server 404 represents the machine(s) that collect and store helpful and useful data for use by other computers, such ascomputer 401. For example, in a hypothetical case wherecomputer 401 is designed and programmed to provide a recommendation based on historical data, then this historical data may be provided tocomputer 401 fromremote database 430 ofremote server 404. -
Public cloud 405 is any computer system available for use by multiple entities that provides on-demand availability of computer system resources and/or other computer capabilities, especially data storage (cloud storage) and computing power, without direct active management by the user. Cloud computing typically leverages sharing of resources to achieve coherence and economies of scale. The direct and active management of the computing resources ofpublic cloud 405 is performed by the computer hardware and/or software ofcloud orchestration module 441. The computing resources provided bypublic cloud 405 are typically implemented by virtual computing environments that run on various computers making up the computers of host physical machine set 442, which is the universe of physical computers in and/or available topublic cloud 405. The virtual computing environments (VCEs) typically take the form of virtual machines from virtual machine set 443 and/or containers fromcontainer set 444. It is understood that these VCEs may be stored as images and may be transferred among and between the various physical machine hosts, either as images or after instantiation of the VCE.Cloud orchestration module 441 manages the transfer and storage of images, deploys new instantiations of VCEs and manages active instantiations of VCE deployments.Gateway 440 is the collection of computer software, hardware, and firmware that allowspublic cloud 405 to communicate throughWAN 402. - Some further explanation of VCEs will now be provided. VCEs can be stored as “images.” A new active instance of the VCE can be instantiated from the image. Two familiar types of VCEs are virtual machines and containers. A container is a VCE that uses operating-system-level virtualization. This refers to an operating system feature in which the kernel allows the existence of multiple isolated user-space instances, called containers. These isolated user-space instances typically behave as real computers from the point of view of programs running in them. A computer program running on an ordinary operating system can utilize all resources of that computer, such as connected devices, files and folders, network shares, CPU power, and quantifiable hardware capabilities. However, programs running inside a container can only use the contents of the container and devices assigned to the container, a feature which is known as containerization.
-
Private cloud 406 is similar topublic cloud 405, except that the computing resources are only available for use by a single enterprise. Whileprivate cloud 406 is depicted as being in communication withWAN 402, in other embodiments a private cloud may be disconnected from the internet entirely and only accessible through a local/private network. A hybrid cloud is a composition of multiple clouds of different types (for example, private, community or public cloud types), often respectively implemented by different vendors. Each of the multiple clouds remains a separate and discrete entity, but the larger hybrid cloud architecture is bound together by standardized or proprietary technology that enables orchestration, management, and/or data/application portability between the multiple constituent clouds. In this embodiment,public cloud 405 andprivate cloud 406 are both part of a larger hybrid cloud. - The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of another feature, step, operation, element, component, and/or group thereof.
- The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (20)
1. A computer-implemented method comprising:
generating a tokenized form of at least a portion of input text, wherein the input text is in a first language;
generating at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques;
generating a tokenized form of at least a portion of the at least one visual representation; and
generating an output comprising a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation;
wherein the method is carried out by at least one computing device.
2. The computer-implemented method of claim 1 , wherein the first set of one or more artificial intelligence techniques comprises at least one neural network-based autoregressive transformer.
3. The computer-implemented method of claim 1 , wherein the second set of one or more artificial intelligence techniques comprises at least one neural network-based multimodal translation transformer.
4. The computer-implemented method of claim 1 , further comprising:
automatically training the first set of one or more artificial intelligence techniques by processing a training set of text data and processing image data corresponding to the training set of text data.
5. The computer-implemented method of claim 4 , wherein processing image data corresponding to the training set of text data comprises processing the image data using at least one neural network-based visual encoder.
6. The computer-implemented method of claim 4 , wherein automatically training the first set of one or more artificial intelligence techniques comprises using visual representation loss-related techniques.
7. The computer-implemented method of claim 4 , further comprising:
automatically training the second set of one or more artificial intelligence techniques using (i) a tokenized combination of a visual representation of the training set of text data and the training set of text data, and (ii) a tokenized combination of the image data and the training set of text data.
8. The computer-implemented method of claim 7 , wherein automatically training the second set of one or more artificial intelligence techniques comprises using translation loss-related techniques and consistency loss-related techniques.
9. The computer-implemented method of claim 1 , further comprising:
automatically training at least one of the first set of one or more artificial intelligence techniques and the second set of one or more artificial intelligence techniques using feedback related to the generated output.
10. The computer-implemented method of claim 1 , wherein generating the output comprises mapping, using the second set of one or more artificial intelligence techniques, one or more portions of the tokenized form of at least a portion of input text to one or more portions of the tokenized form of at least a portion of the at least one visual representation.
11. The computer-implemented method of claim 1 , wherein software implementing the method is provided as a service in a cloud environment.
12. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computing device to cause the computing device to:
generate a tokenized form of at least a portion of input text, wherein the input text is in a first language;
generate at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques;
generate a tokenized form of at least a portion of the at least one visual representation; and
generate an output comprising a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation.
13. The computer program product of claim 12 , wherein the first set of one or more artificial intelligence techniques comprises at least one neural network-based autoregressive transformer.
14. The computer program product of claim 12 , wherein the second set of one or more artificial intelligence techniques comprises at least one neural network-based multimodal translation transformer.
15. The computer program product of claim 12 , wherein the program instructions is further executable by the computing device to cause the computing device to:
automatically train the first set of one or more artificial intelligence techniques by processing a training set of text data and processing image data corresponding to the training set of text data.
16. The computer program product of claim 15 , wherein the program instructions is further executable by the computing device to cause the computing device to:
automatically train the second set of one or more artificial intelligence techniques using (i) a tokenized combination of a visual representation of the training set of text data and the training set of text data, and (ii) a tokenized combination of the image data and the training set of text data.
17. A system comprising:
a memory configured to store program instructions; and
a processor operatively coupled to the memory to execute the program instructions to:
generate a tokenized form of at least a portion of input text, wherein the input text is in a first language;
generate at least one visual representation of at least a portion of the input text by processing the input text using a first set of one or more artificial intelligence techniques;
generate a tokenized form of at least a portion of the at least one visual representation; and
generate an output comprising a translated version of the input text into at least a second language by processing, using a second set of one or more artificial intelligence techniques, at least a portion of the tokenized form of the at least a portion of the input text and at least a portion of the tokenized form of the at least a portion of the at least one visual representation.
18. The system of claim 17 , wherein the first set of one or more artificial intelligence techniques comprises at least one neural network-based autoregressive transformer.
19. The system of claim 17 , wherein the second set of one or more artificial intelligence techniques comprises at least one neural network-based multimodal translation transformer.
20. The system of claim 17 , wherein the processor is further operatively coupled to the memory to execute the program instructions to:
automatically train the first set of one or more artificial intelligence techniques by processing a training set of text data and processing image data corresponding to the training set of text data; and
automatically train the second set of one or more artificial intelligence techniques using (i) a tokenized combination of a visual representation of the training set of text data and the training set of text data, and (ii) a tokenized combination of the image data and the training set of text data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/954,845 US20240127005A1 (en) | 2022-09-28 | 2022-09-28 | Translating text using generated visual representations and artificial intelligence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/954,845 US20240127005A1 (en) | 2022-09-28 | 2022-09-28 | Translating text using generated visual representations and artificial intelligence |
Publications (1)
Publication Number | Publication Date |
---|---|
US20240127005A1 true US20240127005A1 (en) | 2024-04-18 |
Family
ID=90626463
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/954,845 Pending US20240127005A1 (en) | 2022-09-28 | 2022-09-28 | Translating text using generated visual representations and artificial intelligence |
Country Status (1)
Country | Link |
---|---|
US (1) | US20240127005A1 (en) |
-
2022
- 2022-09-28 US US17/954,845 patent/US20240127005A1/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2024055920A1 (en) | Automatic adjustment of constraints in task solution generation | |
US20240176988A1 (en) | Generating low-distortion, in-distribution neighborhood samples of an instance of a dataset using a variational autoencoder | |
US20240127005A1 (en) | Translating text using generated visual representations and artificial intelligence | |
US20240330582A1 (en) | Debiasing prompts in connection with artificial intelligence techniques | |
US20240184534A1 (en) | Experience Based Dispatch of Regulated Workloads in a Cloud Environment | |
US20240111969A1 (en) | Natural language data generation using automated knowledge distillation techniques | |
US20240095456A1 (en) | Text summarization with emotion conditioning | |
US20240320414A1 (en) | Summary generation based on comparison objects | |
US20240135227A1 (en) | Generating in-distribution samples of time-series or image data for the neighborhood distribution | |
US20240289558A1 (en) | Large Language Model Evaluation with Enhanced Interpretability by K-Nearest Neighbor Search | |
WO2024078565A1 (en) | Domain adaptive speech recognition using artificial intelligence | |
US20240313966A1 (en) | Training neural networks with non-polynomial elements for homomorphic encryption computations using sub-networks and multi-loss | |
US20240303552A1 (en) | Porting explanations between machine learning models | |
US20240265664A1 (en) | Automated data pre-processing for machine learning | |
US20240330600A1 (en) | Type-specific natural language generation from tabular data | |
US11934359B1 (en) | Log content modeling | |
US20240202556A1 (en) | Precomputed explanation scores | |
US20240070401A1 (en) | Detecting out-of-domain text data in dialog systems using artificial intelligence | |
US20240362458A1 (en) | Time series forecasting | |
US20240170007A1 (en) | Self-supervised speech representations by disentangling speakers | |
US20240354509A1 (en) | Identifying a semantic representation for texts by expanding the embedding space | |
US20240220875A1 (en) | Augmenting roles with metadata | |
US20240281699A1 (en) | Management of drifted records in machine learning | |
US20240169614A1 (en) | Visual represntation using post modeling feature evaluation | |
US20240127084A1 (en) | Joint prediction and improvement for machine learning models |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW YORK Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:PANDA, RAMESWAR;LI, YI;CHEN, RICHARD;AND OTHERS;SIGNING DATES FROM 20220922 TO 20220927;REEL/FRAME:061244/0036 |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |
|
AS | Assignment |
Owner name: MASSACHUSETTS INSTITUTE OF TECHNOLOGY, MASSACHUSETTS Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:KIM, YOON HYUNG;REEL/FRAME:063849/0750 Effective date: 20230602 |