Back to search

Rice University

Compression Algorithms for Efficient Inference and Adaptation of Foundation Models

Abstract

dc:description.abstract

Foundation models, including large language models (LLMs) and generative AI (GenAI) models, have demonstrated impressive capabilities and are driving progress across many industries. Despite their potential, their substantial size makes them difficult to deploy at scale and challenging to adapt efficiently. This thesis presents novel algorithms for compressing foundation models, enabling faster and more efficient inference as well as adaptation. By making these models more accessible to both individuals and organizations, this work seeks to democratize their use and accelerate innovation across science and industry. First, we present Dynamic-Length Float (DFloat11), a lossless compression framework that reduces the size of foundation models by around 30% while preserving bit-for-bit identical outputs. DFloat11 is motivated by the observation that model weights stored in BFloat16 format exhibit low entropy and are highly information-inefficient. By leveraging entropy coding, DFloat11 assigns compact, dynamic-length encodings to weights based on their frequency. To support efficient inference with compressed models, we design a custom GPU kernel that enables low-latency, online decompression using hierarchical lookup tables, a two-phase kernel, and transformer-block-level decompression. Experiments on LLMs and diffusion transformers demonstrate that DFloat11 reduces model size by more than 30% without compromising accuracy and enables significantly higher throughput and longer sequence generation under fixed GPU memory budgets. Notably, DFloat11 is the first framework to efficiently support lossless inference of models as large as Llama 3.1 405B on a single DGX A100 node. Second, we develop quantization algorithms that significantly reduce the GPU memory requirements of LLMs without compromising model quality. We first introduce LeanQuant, a scalable and accurate post-training quantization framework that improves upon traditional error-based methods by learning loss-aware quantization grids instead of relying on fixed min-max affine grids. This improves quantization quality, generalizes to both uniform and non-uniform schemes, and remains compatible with standard inference frameworks. LeanQuant enables accurate quantization of models as large as Llama 3.1 405B using modest compute resources. To further reduce memory usage during inference, we propose Coupled Quantization, a method for compressing the key/value (KV) cache in transformer models. We observe that KV cache channels exhibit significant redundancy, which existing quantization methods fail to exploit. Coupled Quantization jointly compresses multiple channels by leveraging their interdependence, resulting in more efficient representations. It supports quantization down to 1 bit per activation while maintaining model quality and achieves up to 3.5x throughput improvement. Finally, we introduce SketchTune, a compressive adaptation framework for LLMs that unifies compression and fine-tuning into a single streamlined process. In contrast to traditional parameter-efficient fine-tuning (PEFT) methods that rely on low-rank constraints or require separate inference paths, SketchTune compresses model weights into compact, differentiable sketches that can be directly fine-tuned. This design removes the need for low-rank matrices to capture model updates, offering greater expressiveness while significantly reducing memory usage and training costs. Supported by theoretical insights into when sketching outperforms low-rank approximations, SketchTune delivers superior empirical performance compared to leading PEFT approaches such as LoRA, DoRA, S2FT, and LoftQ, despite using smaller base models and fewer trainable parameters. Together, these contributions address key challenges in the efficient use of foundation models by enabling lossless compression, accurate quantization, and resource-efficient adaptation. This work not only advances the state of the art in model compression but also provides practical solutions for democratizing access to powerful foundation models, accelerating innovation and societal progress.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Engineering
Department thesis:degree_department
Computer Science
Grantor
Rice University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhang, Tianyi
Advisor dc:contributor.advisor
  • Shrivastava, Anshumali

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1911/118658

Chain of custody

source
Harvested from
Rice University
Base URL
repository.rice.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Zhang, Tianyi. Compression Algorithms for Efficient Inference and Adaptation of Foundation Models. Doctoral thesis, Rice University, 2025. https://hdl.handle.net/1911/118658