Zirui Liu
Zirui Liu, who also publishes under the name Zirui (Ray) Liu, is an assistant professor of computer science and engineering at the University of Minnesota. He studied electrical engineering and control science at Harbin Institute of Technology before pursuing computer science at Texas A&M and Rice UniversityRice UniversityRice University is a university in Houston, Texas, United States, established with the fortune of William Marsh Rice (1816–1900).Open the full entry, where he earned his PhD in 2024. His work on large-scale machine learning includes Self-Extend for longer inputs, KIVI for cache compression and DynamicMem for testing the long-term memory of personal assistants.
Contents32 sections
Key facts
September 2012Electrical engineering at Harbin Institute of Technology
Liu began his undergraduate and master’s studies at Harbin Institute of Technology in China. His curriculum vitae lists electrical engineering as his field. In a University of Minnesota interview, he described his focus as control science, including how to make a motor move a device along a specified path.[1][2]
2015Experiments with image generation on a laptop
Liu recalled trying to generate images on his laptop with generative adversarial networks, with little success at first. During his master’s studies he spent much of his free time teaching himself to code, working his way from computer vision to GPU programming. These experiments led him to pursue a doctorate in computer science.[2]
June 2018Completing his engineering degrees
Liu completed six years at Harbin Institute of Technology, earning a bachelor’s and a master’s degree in engineering.[1]
August 2019Starting doctoral studies at Texas A&M
Liu moved to College Station to study computer science under Xia Hu at Texas A&M University. In his first doctoral year he investigated recommender systems with the MovieLens dataset from MinnesotaMinnesotaMinnesota is a state in the north-central United States and the most northerly of the 48 contiguous states; its capital is St. Paul and its largest city is Minneapolis. It was admitted to the Union on May 11, 1858, as the 32nd state, and its population in the 2020 census (April 1, 2020) was 5,706,494.Open the full entry’s GroupLens lab. His work on very large graphs also drew on METIS, a graph partitioner developed by George Karypis.[1][2][3]
2021Image captions, data augmentation and recommendations
Liu and his collaborators studied how to reduce gender bias in image captions. As first author of DivAug and a study of neural network topology, he investigated how to diversify automatically augmented training examples and detect interactions among inputs. He also contributed to AutoRec, an automated recommender system.[1]
August 2021Transferring to Rice University
2022Graph learning and large recommender systems
As first author of EXACT, Liu explored ways to compress intermediate data stored during graph neural network training. He also contributed to Table2Graph, which represented tables as graphs, as well as studies of noisy labels and benchmarks for training on large graphs. Another collaboration, DreamShard, examined how to distribute recommender system tables across devices. His CV records the use of a placement system from this line of work in production at MetaMetaMeta (Meta Platforms, Inc.) is a publicly listed American technology company, renamed from Facebook in 2021, that operates social communication, digital advertising, virtual reality, smart glasses and artificial intelligence businesses.Open the full entry.[1][5]
2023Guest lectures at Rice
At Rice, Liu gave guest lectures in COMP 640, a graduate seminar in machine learning, and COMP 631, Introduction to Information Retrieval.[1]
2023Reducing memory use in training
Liu was first author of RSC, on accelerating graph neural network training with randomized sparse computations, and DSpar, on simplifying graphs based on the number of connections at each node. With Guanchu Wang and others, he studied how sampling matrix rows and columns could reduce the memory needed to adapt a language model. His other collaborations covered recommendation table placement, graph editing, label smoothing and measures of fairness.[1]
January 2024Extending the text a model can read
Liu contributed to Self-Extend. The team represented the positions of distant words more coarsely while preserving fine distinctions between nearby ones. In their tests, some models could handle texts several times longer without further training. The work received a spotlight at the International Conference on Machine LearningInternational Conference on Machine LearningThe International Conference on Machine Learning (ICML) is a research meeting for machine learning theory, algorithms and applications. Its numbered series begins with a 1980 meeting in Pittsburgh. Recent editions have combined a peer-reviewed research program with tutorials and workshops, with main papers published in Proceedings of Machine Learning Research.Open the full entry, was integrated into llama.cpp and featured at Google I/O.[6][4][1]
February 2024Developing KIVI with Jiayi Yuan and colleagues
Liu and Jiayi Yuan shared first authorship of the KIVI paper. When a language model generates a long passage, it keeps intermediate results from earlier text in memory. The team found that two kinds of cached data, keys and values, had different numerical distributions. Compressing them separately saved memory. The work informed the Transformers library from Hugging FaceHugging FaceHugging Face is an artificial intelligence company that runs a platform on which the machine learning community collaborates on and shares models, datasets and applications, and that maintains open-source libraries such as Transformers.Open the full entry.[7][6][1]
March 11, 2024A colloquium at Minnesota as a Rice doctoral candidate
The University of Minnesota invited Liu to discuss how the ability of models to tolerate numerical errors could make fine-tuning and serving them less expensive. The department’s introduction noted that work he had contributed to was already in use in Meta’s recommendation system and Samsung’s advertising platform.[5]
August 2024A doctorate in computer science
August 2024An assistant professorship in Minneapolis
Liu joined the University of Minnesota in Minneapolis as an assistant professor in computer science and engineering. Hu listed the appointment as his first position after the doctorate. Having used research tools developed at Minnesota from his first year as a doctoral student, Liu knew the department’s work in data mining before he interviewed.[1][8][3][2]
September 17, 2024Research internships at four companies
Introducing 18 new faculty members that fall, Minnesota’s College of Science and Engineering listed research internships at LinkedInLinkedInLinkedIn is a social networking platform for professionals. It was founded in 2002 by Reid Hoffman and others, launched in 2003, and listed on the New York Stock Exchange in 2011; after Microsoft acquired it for approximately $26.2 billion in 2016, it became a wholly owned Microsoft subsidiary. Its revenue comes from membership subscriptions, advertising, and recruitment solutions.Open the full entry, Meta, Samsung and 4Paradigm. It described Liu’s research as combining the design of algorithms and computing systems to speed up machine learning at scale.[8]
October 24, 2024Experiments and life in the Twin Cities
In a departmental interview, Liu said he liked to code in his spare time and often began a study by investigating unexpected behavior in a model. He wanted students to learn to test ideas with controlled experiments. He enjoyed Warhammer 40,000, Dungeons & Dragons, Lego and video games. He liked walking near the Cathedral of Saint Paul and Summit Avenue and named the Uzbek restaurant Samarkand as a favorite. He valued seeing people put his research to use on laptops and phones and cited Keras and CogDL among the software projects that had incorporated his work.[2]
November 22, 2024Writing about rounding errors and text compression
Liu published two articles on his blog. One considered how rounding errors in half-precision arithmetic affect machine learning. The other explored language models as tools for lossless text compression.[9]
2025Teaching and supervising doctoral students
In the spring, Liu taught CSCI 8980, an introduction to systems for large language models. His group lists Wenya Xie and rotation student Hao Li starting in the spring and Xinheng Ding in the fall. His professional service has included reviewing proposals for the National Science Foundation, serving on conference program committees and reviewing journal articles. He gave a tutorial on cache optimization at the AAAI conference. His collaborations also covered file systems, model pruning, the relationship between long contexts and reasoning, and ways to reduce repetitive output. The last of these was selected for an oral presentation at the Conference on Empirical Methods in Natural Language Processing.[10][11][1][4]
January 27, 2025A computer science colloquium on long texts
Minnesota’s Department of Computer Science and Engineering scheduled Liu to speak on extracting information from lengthy documents. His topics included extending the input beyond the lengths seen in training and reducing the memory required to process it.[12]
January 30, 2025A talk on long documents for electrical and computer engineers
For the Minnesota electrical and computer engineering colloquium, Liu used the problem of retrieving information from long articles to introduce his team’s work on extending input lengths and compressing cached data. His talk also compared Mamba and Transformer models on long texts.[13]
June 2025Why identical questions can produce different answers
Liu worked with Jiayi Yuan, Hao Li and colleagues to investigate why a model could answer the same question differently on different GPUs. The hardware and the number of requests processed together could alter the order of arithmetic operations. Small rounding differences then accumulated over long reasoning sequences. The work was selected for an oral presentation at NeurIPS that year.[6][14]
July 2025Organizing a workshop on industrial inspection
Liu announced that he was helping organize VISION, a workshop on industrial inspection at the International Conference on Computer Vision.[4]
August 1, 2025Leading a planning project funded by the National Science Foundation
Liu became the principal investigator at Minnesota on a collaborative project to plan infrastructure for using foundation models to discover interactions among input features. The university lists a project period from August 1, 2025, to January 31, 2027.[15]
August 23, 2025Writing about attention software
He published a blog post on implementing softmax with an offset in FlashAttention, addressing the phenomenon of attention concentrating on particular positions.[9]
November 2025Numerical discrepancies between training and generation
In a preprint with Ziyang Zhang, Xinheng Ding and colleagues, Liu examined why a model might assign different probabilities during training and generation when different numbers of processors were used. The researchers devised a way to combine intermediate results in a consistent order across configurations.[6][16]
2026Advanced machine learning and new research topics
Liu taught CSCI 5525, Advanced Machine Learning, in the spring at Minnesota. His group also announced collaborations on long-term memory, retrieving previous reasoning, visual reasoning data and molecular dynamics. Other supporters he acknowledged on his website included CiscoCiscoCisco Systems, Inc. is an American networking technology company, incorporated in 1984, headquartered in San Jose, California, and listed on Nasdaq.Open the full entry, NVIDIANVIDIANVIDIA is an American semiconductor and computing technology company that provides graphics processing units, artificial intelligence infrastructure, networking interconnects, and computing software, and is listed on Nasdaq under the ticker NVDA.Open the full entry, AdobeAdobeAdobe (Adobe Inc.) is a software company headquartered in San Jose, California, founded in 1982 by John Warnock and Charles Geschke. Known for PostScript, PDF and creative software such as Acrobat, Photoshop, Illustrator, Premiere Pro and After Effects, it moved its main creative products to Creative Cloud subscriptions from 2013 and expanded into digital marketing and generative AI; it is listed on Nasdaq under the ticker ADBE.Open the full entry and Minnesota’s data science and transportation research programs.[10][4]
April 17, 2026A $150,000 research gift from Amazon
Minnesota announced that Liu and his colleague Caiwen Ding had each received $150,000 from AmazonAmazonAmazon is a publicly traded U.S. technology and retail company founded by Jeff Bezos in 1994, with its principal corporate offices in Seattle. Its businesses span e-commerce, logistics and fulfillment, digital advertising, membership and entertainment services, consumer electronics, and Amazon Web Services cloud computing.Open the full entry. Liu’s project sought to speed up reinforcement learning with lower numerical precision while limiting discrepancies between the probabilities produced during training and generation.[14]
June 22, 2026Introducing the DynamicMem memory benchmark
Wenya Xie, Liu and their coauthors submitted the DynamicMem paper. They created 15 months of synthetic activity across 16 applications for each simulated user to test whether a personal assistant could keep track of changing circumstances, habits and preferences. The team also released data, code and a viewer for exploring the records.[17][6][4]
July 6, 2026Announcing a poster presentation in Seoul
September 29, 2026Two studies of inference in the ICML proceedings
Volume 306 of the conference proceedings included the study on reproducibility across processor configurations and a paper on DTS that Liu coauthored with Zicheng Xu, Vladimir Braverman and others. DTS organized possible lines of reasoning into a tree and branched at selected decisions to avoid repeatedly generating similar answers.[19][16][20]
Related Organizations, Websites, and Public Accounts
Personal website: https://zirui-ray-liu.github.io/ (opens in a new window).[4]
Google Scholar: https://scholar.google.com/citations?user=0i1w_egAAAAJ (opens in a new window).[22]
Harbin Institute of Technology: Official website: https://www.hit.edu.cn (opens in a new window).[1]
Texas A&M University: Official website: https://www.tamu.edu (opens in a new window).[1]
Rice University: Official website: https://www.rice.edu (opens in a new window).[3]
University of Minnesota: Official website: https://twin-cities.umn.edu (opens in a new window).[23]
Sources23 sources
- Zirui (Ray) Liu (opens in a new window)zirui-ray-liu.github.io↑
- Meet the Faculty - Zirui (Ray) Liu (opens in a new window)cse.umn.edu↑
- Xia Ben Hu, Texas A&M University (opens in a new window)cs.rice.edu↑
- Zirui’s Homepage (opens in a new window)zirui-ray-liu.github.io↑
- CS&E Colloquium: Lossy computation done right: Scalable and Accessible LLM Fine-Tuning and Serving (opens in a new window)cse.umn.edu↑
- Projects | Zirui’s Homepage (opens in a new window)zirui-ray-liu.github.io↑
- KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache (opens in a new window)proceedings.mlr.press↑
- CSE welcomes 18 new faculty in fall 2024 (opens in a new window)cse.umn.edu↑
- Blog | Zirui’s Homepage (opens in a new window)zirui-ray-liu.github.io↑
- Teaching | Zirui’s Homepage (opens in a new window)zirui-ray-liu.github.io↑
- Group | Zirui’s Homepage (opens in a new window)zirui-ray-liu.github.io↑
- CS&E Colloquium: Breaking Barriers: Advancing Long Context LLMs (opens in a new window)cse.umn.edu↑
- Professor Zirui (Ray) Liu at ECE Spring 2025 Colloquium (opens in a new window)cse.umn.edu↑
- Two CS&E Faculty Receive Amazon Gift Funds Totaling $300K (opens in a new window)cse.umn.edu↑
- Collaborative Research: Planning: CIRC: Planning-C: Building Foundation Model Infrastructure for Feature Interaction Discovery (opens in a new window)experts.umn.edu↑
- Deterministic Inference across Tensor Parallel Sizes That Eliminates Training-Inference Mismatch (opens in a new window)proceedings.mlr.press↑
- DynamicMem: A Long-Horizon Memory Benchmark in Real-World Settings (opens in a new window)arxiv.org↑
- ICML 2026: Deterministic Inference for LLMs Eliminates Training-Inference Mismatch (opens in a new window)linkedin.com↑
- Proceedings of the 43rd International Conference on Machine Learning (opens in a new window)proceedings.mlr.press↑
- DTS: Enhancing Large Reasoning Models via Decoding Tree Sketching (opens in a new window)proceedings.mlr.press↑
- zirui-ray-liu (Zirui Liu) · GitHub (opens in a new window)github.com↑
- Zirui Ray Liu — personal website configuration (opens in a new window)raw.githubusercontent.com↑
- Faculty & instructor directory (opens in a new window)cse.umn.edu↑