Klaudia Bałazy

Klaudia Bałazy

VUMO · Jagiellonian University
4 previous affiliations
11Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Klaudia Bałazy focuses on the efficiency, compression, and adaptation of large-scale neural models, with a particular emphasis on Transformer-based architectures in natural language processing. Her work addresses the computational and memory constraints inherent in deploying large language models (LLMs) through innovations in early-exit architectures, low-rank adaptation (LoRA), and sparse probability mappings. By leveraging techniques such as singular value decomposition (SVD) and angular alignment, she develops methods that reduce parameter counts and inference latency while maintaining or enhancing model performance across diverse tasks.

Research Trajectory

Bałazy’s early research focused on structural optimizations to reduce the inference cost of deep learning models. This work primarily explored the dynamic adjustment of model depth and the efficient use of intermediate representations. In collaborative research on finding optimal network depth, she participated in developing methods to detect and remove unneeded components of a network by rewarding the selection of shallow classifiers. This trajectory led to the development of Zero Time Waste: Recycling Predictions in Early Exit Neural Networks, where she contributed to a framework that prevents the loss of computational effort in early-exit models. By allowing internal classifiers to reuse predictions from their predecessors, the approach mitigates the waste typically associated with discarded intermediate computations when a model fails to exit early.

Parallel to structural efficiency, Bałazy investigated the compression of high-dimensional representations. A central theme in this work is Semantic Preservation through Angular Alignment in Neural Representations. In the paper Direction is what you need: Improving Word Embedding Compression in Large Language Models, she demonstrated that the semantic identity of token embeddings is primarily encoded in their direction rather than their magnitude. By utilizing an autoencoder architecture with a loss objective focused on angular alignment, she developed a task-agnostic method to compress embedding matrices—which can account for a significant portion of a model's memory footprint—without requiring further language model fine-tuning.

In 2023, Bałazy expanded her focus toward the mathematical foundations of neural outputs and adversarial robustness. She introduced r-softmax: Generalized Softmax with Controllable Sparsity Rate, addressing the inherent limitation of the standard softmax function, which assigns positive probability to all positions and lacks sparsity. This work provided a mechanism for controlling the sparsity of probability distributions, offering an alternative to traditional mapping functions in deep learning. During this period, she also co-authored research on adversarial text attacks, specifically Step by Step Loss Goes Very Far: Multi-Step Quantization for Adversarial Text Attacks. This work utilized multi-step quantization to bridge the gap between continuous and discrete text representations, improving the effectiveness of gradient-based attacks against Transformer models.

Current Directions

Bałazy’s recent work centers on Parameter-Efficient Fine-Tuning (PEFT), specifically advancing the capabilities of Low-Rank Adaptation (LoRA). As LLMs scale, the storage of multiple task-specific LoRA modules becomes a bottleneck. To resolve this, she developed LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters, which utilizes Spectral Reparameterization for Efficient Model Adaptation. By inserting a small, trainable $r \times r$ weight matrix between frozen matrices constructed via SVD, LoRA-XS significantly reduces the number of trainable parameters compared to standard LoRA while maintaining competitive performance. This method reflects a shift toward Spectral Initialization for Low Rank Adaptation, moving away from random or zero initialization in favor of leveraging the internal structure of the weight matrices.

Most recently, Bałazy has integrated these efficiency techniques with Bayesian Deep Learning in Low Dimensional Subspaces. In Minimal Ranks, Maximum Confidence: Parameter-efficient Uncertainty Quantification for LoRA, she contributed to a method for efficient uncertainty estimation in LLMs. The approach involves distilling uncertainty-aware teacher models into compact student models fine-tuned with LoRA, enabling models to signal when they are encountering unfamiliar data without the computational overhead of multiple forward passes typically required by Bayesian ensembles. Her recent collaborative work also includes participation in developing CoDeC, a method for detecting data contamination in LLMs by measuring how in-context examples influence model confidence.

Representative Work

Direction is what you need: Improving Word Embedding Compression in Large Language Models This work introduces an autoencoder-based framework for compressing token embeddings in Transformer models. The primary contribution is a novel loss objective that prioritizes the preservation of the angular direction of embeddings over their Euclidean distance. The method is task-agnostic and allows for significant memory reduction in models like BERT without the need for additional language modeling training.

Zero Time Waste: Recycling Predictions in Early Exit Neural Networks Addressing the inefficiency of standard early-exit architectures, this paper proposes the Zero Time Waste (ZTW) approach. The method ensures that if an internal classifier does not trigger an early exit, its computations are not discarded but are instead reused by subsequent layers. Bałazy participated in the design of this recycling mechanism, which improves the average inference speed of deep learning models.

r-softmax: Generalized Softmax with Controllable Sparsity Rate In this paper, Bałazy proposes a modification to the standard softmax function to enable sparse probability distributions. Unlike existing sparse mapping functions, r-softmax provides an intuitive parameter to control the sparsity rate, allowing practitioners to tune the distribution based on the specific requirements of the task and architecture.

Step by Step Loss Goes Very Far: Multi-Step Quantization for Adversarial Text Attacks This research presents a gradient-based attack algorithm for Transformer-based language models. By performing multi-step quantization in a compensation loop, the method searches for adversarial examples in a continuous space of token probabilities more effectively than previous approaches, demonstrating improved performance across various NLP benchmarks.

LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters Bałazy introduces LoRA-XS to address the storage challenges of serving multiple LoRA modules. The method employs SVD to initialize frozen matrices and introduces a minimal $r \times r$ trainable matrix. This spectral reparameterization allows for a drastic reduction in the number of trainable parameters while outperforming or matching the accuracy of standard LoRA configurations.

Minimal Ranks, Maximum Confidence: Parameter-efficient Uncertainty Quantification for LoRA This work focuses on the challenge of overconfidence in LLMs. Bałazy contributed to a distillation process that transfers uncertainty information from complex teacher models to efficient LoRA-based student models. The resulting framework enables effective uncertainty quantification in low-dimensional subspaces, reducing the need for expensive sampling during inference.

Profile updated

See something wrong? Report a mistake