Methods and systems for knapsack-based token optimization in multimodal large language models
Патент · US A1
Полный текст
A method for improving the computational efficiency of a multimodal large language model (MLLM) by reducing the number of tokens/embeddings processed by the neural network of the MLLM. In particular, multimodal inputs are encoded to a shared embeddings space allowing for cross-modal comparisons of embeddings. Moreover, embeddings to feed into the neural network are selected to 1) maximize relevancy of the selected embeddings relative to a query, 2) maximize diversity (reduce redundancy) within the selected embeddings, and 3) maintain a total cost, reflective of computational costs associated with having the neural network process the embeddings, within a budget. The proposed techniques improve computational efficiency by reducing computational overhead of the neural network. Further, the proposed techniques maintain accuracy of the MLLM by maintaining relevancy of the selected embeddings relative to the query.