arXiv Science⌕ Search

arXiv subjects

Tony Zhu

Publications and source records attributed to Tony Zhu.

2 recordsLinked to original sources

ZenAttention: 4-bit Attention Directly on a Quantized KV Cache for Streaming Video Diffusion

In long-video generation, streaming video diffusion models spend up to 58% of denoising time attending to a key-value (KV) cache of past frames at every step. Keeping both the cache and the attention computation in 4-bit precision would save substantial memory and time, yet existing methods achieve only one of the two: FP4 attention requantizes a bf16 cache at every call and loses 4-28% of high-frequency latent detail in streaming rollouts, whereas 4-bit KV caches dequantize back to bf16 before attention. We trace the quality drop of 4-bit attention on a cache to two causes: FP4 attention error is systematically biased and fed back through the cache, amplifying single-chunk loss roughly 3x on Self-Forcing; and the newest cached frame requires more precise attention scores than older history. ZenAttention addresses each cause with one component -- closed-form bias corrections costing one fused multiply-add per score and an 8-bit tier for the newest frame -- and computes attention directly on a write-once NVFP4 KV cache. ZenAttention is fast: 628 effective TOPS on an RTX 5090 (1.45x SageAttention2++), 2.6-3.5x faster self-attention than bf16 (1.23-1.50x SageAttention2++, faster than 8-bit and 4-bit SageAttention), and up to 1.89x faster denoising than bf16 (1.84x over LongLive 2.0's 4-bit release); general: one kernel runs without retraining across eight streaming video and world models (1.3B-5B); small: KV-cache memory drops by two-thirds (33-35% of bf16); and faithful: latent detail stays within 0.7% of bf16 across all eight models (vs. 4-28% lost by SageAttention3), while VBench matches bf16 on Self-Forcing (946 prompts) and LongLive-2.0-5B (VBench-Long). Code: https://github.com/wrencanfly/ZenAttention

cs.CV↗

Petahertz optical response in graphene

The temporal dynamics of charge carriers determines the speed with which electronics can be realized in condensed matter, and their direct manipulation with optical fields promises electronic processing at unprecedented petahertz frequencies, consisting in a million-fold increase from state of the art technology. Graphene is of particular interest for the implementation of petahertz optoelectronics due to its unique transport properties, such as high carrier mobility with near-ballistic transport and exceptionally strong coupling to optical fields. The back action of carriers in response to an optical field is therefore of key importance towards applications. Here we investigate the instantaneous response of graphene to petahertz optical fields and elucidate the role of hot carriers on a sub-100 fs timescale. Measurements of the nonlinear response and its dependence on interaction time and field polarization allow us to identify the back action of hot carriers over timescales that are commensurate with the optical field. An intuitive picture is given for the carrier trajectories in response to the optical-field polarization state. We note that the peculiar interplay between optical fields and charge carriers in graphene may also apply to surface states in topological insulators with similar Dirac cone dispersion relations.

cond-mat.mes-hall↗