Searcharxiv⌕ Search

arXiv subjects

Shiyao Li

Publications and source records attributed to Shiyao Li.

22 records · Page 2Linked to original sources

FlightLLM: Efficient Large Language Model Inference with a Complete Mapping Flow on FPGAs

Transformer-based Large Language Models (LLMs) have made a significant impact on various domains. However, LLMs' efficiency suffers from both heavy computation and memory overheads. Compression techniques like sparsification and quantization are commonly used to mitigate the gap between LLM's computation/memory overheads and hardware capacity. However, existing GPU and transformer-based accelerators cannot efficiently process compressed LLMs, due to the following unresolved challenges: low computational efficiency, underutilized memory bandwidth, and large compilation overheads. This paper proposes FlightLLM, enabling efficient LLMs inference with a complete mapping flow on FPGAs. In FlightLLM, we highlight an innovative solution that the computation and memory overhead of LLMs can be solved by utilizing FPGA-specific resources (e.g., DSP48 and heterogeneous memory hierarchy). We propose a configurable sparse DSP chain to support different sparsity patterns with high computation efficiency. Second, we propose an always-on-chip decode scheme to boost memory bandwidth with mixed-precision support. Finally, to make FlightLLM available for real-world LLMs, we propose a length adaptive compilation method to reduce the compilation overhead. Implemented on the Xilinx Alveo U280 FPGA, FlightLLM achieves 6.0$\times$ higher energy efficiency and 1.8$\times$ better cost efficiency against commercial GPUs (e.g., NVIDIA V100S) on modern LLMs (e.g., LLaMA2-7B) using vLLM and SmoothQuant under the batch size of one. FlightLLM beats NVIDIA A100 GPU with 1.2$\times$ higher throughput using the latest Versal VHK158 FPGA.

cs.AR↗

Characterizing Datasets for Social Visual Question Answering, and the New TinySocial Dataset

Modern social intelligence includes the ability to watch videos and answer questions about social and theory-of-mind-related content, e.g., for a scene in Harry Potter, "Is the father really upset about the boys flying the car?" Social visual question answering (social VQA) is emerging as a valuable methodology for studying social reasoning in both humans (e.g., children with autism) and AI agents. However, this problem space spans enormous variations in both videos and questions. We discuss methods for creating and characterizing social VQA datasets, including 1) crowdsourcing versus in-house authoring, including sample comparisons of two new datasets that we created (TinySocial-Crowd and TinySocial-InHouse) and the previously existing Social-IQ dataset; 2) a new rubric for characterizing the difficulty and content of a given video; and 3) a new rubric for characterizing question types. We close by describing how having well-characterized social VQA datasets will enhance the explainability of AI agents and can also inform assessments and educational interventions for people.

cs.HC↗

A novel method for constructing high accurate and robust WENO-Z type scheme

A novel method for constructing robust and high-order accurate weighted essentially non-oscillatory (WENO) scheme is proposed in this paper. The method is mainly based on the WENO-Z type scheme, in which, an eighth-order global smoothness indicator (the square of the approximation of the fourth-order derivative on the five-point stencil used by the fifth-order WENO scheme) is used, and in order to keep the ENO property and robustness, the constant 1 used to calculate the un-normalized weights is replaced by a function of local smoothness indicators of candidate sub-stencils. This function is designed to have following adaptive property: if the five-point stencil contains a discontinuity, then the function approaches to a small value, otherwise, it approaches to a large value. Analysis and numerical results show that the resulted WENO-Z type (WENO-ZN) scheme is robust for capturing shock waves and, in smooth regions, achieves fifth-order accuracy at first-order critical point and fourth-order accuracy at second-order critical point.

math.NA↗

An efficient targeted ENO scheme with local adaptive dissipation for compressible flow simulation

High fidelity numerical simulation of compressible flow requires the numerical method being used to have both stable shock-capturing capability and high spectral resolution. Recently, a family of Targeted Essentially Non-Oscillatory (TENO) schemes are developed to fulfill such requirements. Although TENO has very low dissipation for smooth flow, it introduces a cutoff value $C_T$ to maintain the non-oscillatory shock-capturing property. $C_T$ is problem depended and therefore needs adjustments by trial and error for different problems. As $C_T$ actually controls the dissipation property of TENO, the choice of $C_T$ for better shock-capturing capability always means higher dissipation. To overcome this, in this paper, a local adaptive method is proposed for the choice of $C_T$. By introducing a novel adaptive function based on the WENO smoothness indicators, $C_T$ is dynamically adjusted form $1.0 \times 10.0^{-10}$ for lower dissipation to $1.0 \times 10.0^{-4}$ for better capturing of shock according to the smoothness of the reconstruction stencil. Numerical results of the new method are compared with those of the original TENO method and the TENO-A method (Fu et al., JCP, 2017). It reveals that the new method is capable of better suppressing numerical oscillations near discontinuities while maintaining the low dissipation property of TENO at lower extra computational cost.

physics.flu-dyn↗