Patent attributes
A method includes identifying, using at least one processor, input words associated with a user query. The method also includes, for each of one or more of the input words that are contained in a high-frequency word set, retrieving pre-computed element-wise products associated with the input word from a cache. The method further includes performing, using the at least one processor, a convolution operation using the pre-computed element-wise products. In addition, the method includes generating, using the at least one processor, a response to the user query based on results of the convolution operation. The method may also include, for each of one or more of the input words that are not contained in the high-frequency word set, calculating additional element-wise products associated with the input word, and the convolution operation may be performed using the pre-computed element-wise products and the additional element-wise products.