Search arXiv⌕ Search

arXiv subjects

Bohang Sun

Publications and source records attributed to Bohang Sun.

8 recordsLinked to original sources

TDLM: Adaptive Temporal Integration for Diffusion Language Models

Masked diffusion language models repeatedly estimate unresolved tokens as their context changes. Standard denoisers predict from the current partially revealed sequence at each evaluation. We introduce TDLM, which reuses earlier hidden representations at the same target position in a frozen denoiser. During decoding, TDLM maintains history for masked positions in the active block and one lookahead block. We train the temporal modules on the backbone's own decoding trajectories. On LLaDA, the modules add 0.84\% of the backbone's parameter count. At fixed decoding settings, TDLM uses fewer denoiser evaluations and less time than Fast-dLLM and MetaState on all six backbone--task pairs. On GSM8K with LLaDA at a 256-token budget, TDLM with dual spatial KV caching achieves an estimated 8.96$\times$ speedup over a separately timed uncached greedy baseline and a 1.94$\times$ speedup over Fast-dLLM with dual KV caching. TDLM reaches the GSM8K accuracy--latency frontier on both LLaDA and Dream.

cs.LG↗

MoP: Mixture of Predictors

Cross-layer key--value sharing lets a language model construct the history of a sequence before its final layers predict the next token. We use this separation to reduce the average cost of generating tokens. In \emph{Mixture of Predictors} (MoP), the original prefix updates the shared state at every step. A learned router selects positions for a distilled two-layer decoder with a 512-token attention window, bypassing the full decoder. Low confidence predictions by the small decoder are rerouted back to the full decoder, which makes predictions together with the non-selected tokens. We evaluate four pretrained models on 1,260 questions from five benchmarks. At 512--800 resident requests on GH200 GPUs, the short decoder supplies 36.5--48.9\% of decoded tokens and throughput rises by 13.7--18.2\% over each model's full-depth decoder. This speedup comes with minimal accuracy penalty, differences range from $-0.64$ to $+2.13$ percentage points. On Bolt, for example, throughput rises from 11,622 to 13,222 tokens/s at 600 requests, and the two systems answer 676 and 675 of their 1,253 jointly completed questions correctly.

cs.CL↗

LCT: Losslessly Compressed Tensors with GPU friendly execution for Training

Lossless tensor compression could reduce memory usage during training, but training requires tensors to be repeatedly re-encoded. We introduce Losslessly Compressed Tensors (LCT), a GPU execution framework designed for this repeated encode-decode regime. LCT exploits the natural redundancy in floating point data to reduce storage for weights, activations and optimizer states. Highly optimized GPU kernels implement Huffman coding with precomputed codebooks for low compression and decompression overhead, essential for training. Our analysis characterizes LCT's storage costs and adaptation to magnitude shifts. LCT achieves a compression ratio of up to $1.455\times$, and is demonstrated in training and finetuning settings. On a 162M-parameter NanoGPT, LCT reduces memory usage by $24.6\%$ for a $7.2\%$ step-time increase. In Qwen3-4B fine-tuning, LCT saves up to $23.8\%$ of peak memory, enabling a $3.5\times$ larger context length in training on the same GPU.

cs.LG↗

BitSparse: Compact Activation Storage for ReLU Feed-Forward Networks

Reducing memory use in large language model (LLM) training is an ongoing challenge. Activation checkpointing saves memory by recomputation, while lossy compression changes the stored activations. The reemergence of sparse $\relu$ and $\relu^2$ activations creates a third opportunity: losslessly compressing the activation cache itself. We present BitSparse, a GPU-resident lossless compression format for sparse activations. Compression and reconstruction run in custom Triton kernels fused into an autograd function, shrinking the activation cache while recovering it exactly for the backward pass. Bfloat16 (BF16) and FP8 activations are supported. Optional sign-bit packing further increases compression up to close to the theoretical limit. We analyze its compression ratio and compare it to the theoretical optimum. BitSparse lowers per-token VRAM by 31\% and 30\% Modded-NanoGPT and Nemotron-H respectively, with overheads of no more than 1\% at practical sequence lengths. Additionally, a new preallocated buffer system avoids host synchronization during training when variable size tensors are allocated.

cs.LG↗

The Path Matters: Learning a Token-Commitment Policy for Diffusion Language Models

Diffusion large language models promise faster generation by refining many token positions in parallel, but this parallelism introduces a hidden control problem: which proposed tokens should be transferred into the partially decoded sequence at each step? We refer to this decision as token commitment. Existing frozen-generator decoders largely rely on hand-designed confidence rules or block-specific acceptance filters. We argue that token commitment can instead be learned as a reusable trace-state policy. We introduce TraceLock, a lightweight plug-in controller that instantiates this policy for a frozen diffusion language model. Since oracle commitment times are unavailable, TraceLock derives self-supervision from future stability: at decoding step t, a proposed token for position i is labeled stable if it matches the final token at position i after the full decoding trace completes. The controller scores variable-length trace states and decides which active token proposals should be committed to the partially decoded sequence. Once trained for a given frozen backbone, the controller can be deployed across local-window widths, generation lengths, and step budgets without retraining or per-setting calibration. Experiments on question answering, mathematical reasoning, and code generation show that TraceLock improves the quality-step tradeoff over heuristic and learned baselines, with particularly stable behavior under cross-setting deployment. Diagnostic analyses show that its decisions are not reducible to scalar confidence, suggesting that frozen diffusion language models expose a learnable space of commitment trajectories beyond confidence-based decoding. Code is available at https://github.com/BobSun98/TraceLock.

cs.CL↗

Multi-Head Explainer: A General Framework to Improve Explainability in CNNs and Transformers

In this study, we introduce the Multi-Head Explainer (MHEX), a versatile and modular framework that enhances both the explainability and accuracy of Convolutional Neural Networks (CNNs) and Transformer-based models. MHEX consists of three core components: an Attention Gate that dynamically highlights task-relevant features, Deep Supervision that guides early layers to capture fine-grained details pertinent to the target class, and an Equivalent Matrix that unifies refined local and global representations to generate comprehensive saliency maps. Our approach demonstrates superior compatibility, enabling effortless integration into existing residual networks like ResNet and Transformer architectures such as BERT with minimal modifications. Extensive experiments on benchmark datasets in medical imaging and text classification show that MHEX not only improves classification accuracy but also produces highly interpretable and detailed saliency scores.

cs.CV↗

FilterViT and DropoutViT

In this study, we introduce an enhanced version of ViT that conducts attention-based QKV operations during the initial stages of downsampling. Performing attention directly on high-resolution feature maps is computationally demanding due to the large size and numerous tokens. To mitigate this, we propose a filter attention mechanism that uses a Filter Block to create a salient mask (Filter Mask) for selecting the most informative pixels for attention. The Filter Block scores the pixels of the feature map, and we sort these scores to retain only the top K pixels (with K varying across layers). This approach effectively decreases the number of tokens involved in the attention computation, reducing computational complexity and boosting processing speed. Furthermore, the salient mask provides interpretability, as the model focuses on regions of the image most critical to the outcome. Our experimental results show that this model improves parameter efficiency and computational speed while enhancing accuracy. Compared to existing models, our approach significantly reduces resource consumption while maintaining high performance.

cs.CV↗

Audio-to-Score Conversion Model Based on Whisper methodology

This thesis develops a Transformer model based on Whisper, which extracts melodies and chords from music audio and records them into ABC notation. A comprehensive data processing workflow is customized for ABC notation, including data cleansing, formatting, and conversion, and a mutation mechanism is implemented to increase the diversity and quality of training data. This thesis innovatively introduces the "Orpheus' Score", a custom notation system that converts music information into tokens, designs a custom vocabulary library, and trains a corresponding custom tokenizer. Experiments show that compared to traditional algorithms, the model has significantly improved accuracy and performance. While providing a convenient audio-to-score tool for music enthusiasts, this work also provides new ideas and tools for research in music information processing.

cs.SD↗