DropKS
A GEMM library wrapper scheme that combines Strassen-Winograd subcubic matrix multiplication with LLM-specific optimizations such as dequantization folding and numerical error correction, aiming to accelerate local large-model inference on Apple Silicon and reduce first-token latency.
Timeline (last 90 days)
The DropKS scheme combines the Strassen-Winograd subcubic matrix multiplication algorithm with LLM-specific optimizations, achieving a reduction in time to first token (TTFT) on Apple M-series chips.
DropKS is a lightweight system GEMM library wrapper that combines an optimized Strassen-Winograd implementation with LLM-specific optimizations.
DropKS employs a dequantization folding technique that embeds the dequantization operation into the computation flow of matrix multiplication, thereby reducing overhead.
DropKS employs a "<bos> peeling" technique that corrects the numerical errors of the Strassen-Winograd algorithm at low precision by selectively peeling off rows containing large values and handling them separately.
Tested end-to-end in the mlx-lm framework, DropKS reduces Llama-3's time to first token (TTFT) by 5.5–12.3%.
For 4-bit and 8-bit quantized 8B (Llama-3) and 27B (Qwen 3.8) models, the combined DropKS techniques reduce TTFT by 8.5–20% while maintaining corpus perplexity and token agreement rate.
DropKS mainly targets large-scale matrix multiplication in the prefill phase; matrix multiplications in the decoding phase (token-by-token generation) are smaller in scale and may benefit only limitedly.
DropKS is suited to local LLM serving scenarios (especially Apple Silicon devices); for cloud GPU clusters, the advantage of unified memory does not exist, and the benefits of the SW algorithm need to be re-evaluated.
All Facts (8)
The DropKS scheme combines the Strassen-Winograd subcubic matrix multiplication algorithm with LLM-specific optimizations, achieving a reduction in time to first token (TTFT) on Apple M-series chips.
50%UnverifiedDropKS is a lightweight system GEMM library wrapper that combines an optimized Strassen-Winograd implementation with LLM-specific optimizations.
50%UnverifiedDropKS employs a dequantization folding technique that embeds the dequantization operation into the computation flow of matrix multiplication, thereby reducing overhead.
50%UnverifiedDropKS employs a "<bos> peeling" technique that corrects the numerical errors of the Strassen-Winograd algorithm at low precision by selectively peeling off rows containing large values and handling them separately.
50%UnverifiedTested end-to-end in the mlx-lm framework, DropKS reduces Llama-3's time to first token (TTFT) by 5.5–12.3%.
50%UnverifiedFor 4-bit and 8-bit quantized 8B (Llama-3) and 27B (Qwen 3.8) models, the combined DropKS techniques reduce TTFT by 8.5–20% while maintaining corpus perplexity and token agreement rate.
50%UnverifiedDropKS mainly targets large-scale matrix multiplication in the prefill phase; matrix multiplications in the decoding phase (token-by-token generation) are smaller in scale and may benefit only limitedly.
50%UnverifiedDropKS is suited to local LLM serving scenarios (especially Apple Silicon devices); for cloud GPU clusters, the advantage of unified memory does not exist, and the benefits of the SW algorithm need to be re-evaluated.
50%