| >"Fujitsu Kozuchi PHOTON [Parallel Hierarchical Operation for TOp-down Networks] interprets text hierarchically as meaningful units, reducing the computation and memory required during inference. This lowers computing costs while maintaining accuracy. In evaluations conducted by Fujitsu using its GPU environment, under conditions involving parallel processing of long texts of approximately one million tokens after converting advanced transformer-based models, inference throughput improved to approximately 10 times the pre-conversion baseline [1]. Similar performance gains are expected for other models and GPU environments through reduced computation and memory usage." Looks like an interesting idea! Observation: Everything about today's LLM's that binds them to large amounts of compute and large amounts of memory (aka the "memory wall") and (relatively!) slow speed (relative to say, a highly optimized unrolled loop in assembler that can be run as part of a massively parallel group) goes back to creating/processing text one token at a time... Attention may be all that you need, but attention heads (and the overall design of LLM's in general) are one of the reasons, well, some of the reasons for the deeply serial (and thus slow, compute bound, memory bound) nature of LLM's in general... An LLM, on paper, as a specification, as a chart -- does NOT look like a well-designed classical algorithm from Computer Science!!! It looks more like a Google search for each next word after each word written (or token after token written), with a whole lot of additional processing requiring a ton of memory and compute between each step! All the thing is doing, after all, is walking a map of probabilities! Since there is an infinite number of such walks of probabilities in that map of probability space -- what makes the determination of the next one is the greatest probability relative to the current context (attention heads are context related!), since an LLM only has time/space/relevance to perform ONE walk (the most probable one!) in that probability space! Or, phrased another way, and "dumbed-down" to the average person who does not have a Ph.D. in Computer Science or LLM's: LLM's are basically "Googling" each word after each other word, and performing a whole lot of statistical processing between each such "search". Purists will say that I've skipped a lot of steps, and that tokens are not words, and all of that is true, but for the sake of a deeply "dumbed down" explanation to a lay person, I think the above suffices... So now the $64,000 question is, if this, or something like it is going on behind the scenes (keep in mind that an LLM's weights are basically a very deeply (and very lossy!) compressed version of all of the text that's on the public Internet (i.e., the LLM can be said to be "searching" through that data, it's own data in deeply compressed format, much like a classic Google search does with web pages!), then, How do we make that process faster / less memory/compute bound? Well, looking at text/data as hierarchical, that is, of forming hierarchies, both natural and formable via additional processing, may be one such way... Which goes back to Grammars, Chomsky Hierarchies, and the idea that languages are basically recursive structures (recursive structures map to hierarchical ones, or can be so mapped, and vice-versa). So, is Fujitsu on to something? It's probably too early to tell, but it will be interesting to see what pans out... Related: https://en.wikipedia.org/wiki/Chomsky_hierarchy https://en.wikipedia.org/wiki/Recursion https://en.wikipedia.org/wiki/Hierarchy |