Search arXiv⌕ Search

arXiv subjects

Aleksandr Dremov

Publications and source records attributed to Aleksandr Dremov.

3 recordsLinked to original sources

Clipstral: Image, Video, and Multilingual Text Embedder

Embedding images, videos and text in a shared space enables retrieval, curation and zero-shot classification over large media collections. Real collections are heterogeneous, with images and videos across a wide range of resolutions and descriptions that can be long and multilingual. Yet, no compact open model excels at both retrieval and classification across this full range. We introduce Clipstral, a 1.2B open-weight dual encoder built for this setting. The vision tower is a vision transformer that can process images at their native resolution and aspect ratio, and extends to video through a lightweight spatio-temporal encoder that attends jointly to the patch tokens of all frames; the text tower embeds text of any length in many languages. Under one zero-shot protocol covering 37 image and video benchmarks at four resolutions, we compare Clipstral with 13 open-weight encoders up to 4B parameters. Clipstral is the strongest image and video retriever, leading on long-caption and multilingual retrieval, and ranks second on image and video classification, behind models 1.7-2x larger. Accuracy holds across all tested resolutions (224-1036 px), and the model pushes the accuracy-size Pareto frontier for image and video classification and retrieval. We also introduce V*-classification, a zero-shot benchmark of small details in native high-resolution images. On full images, every evaluated model scores within 10 points of chance on this benchmark, exposing fine-detail recognition as an open problem. The model weights, inference code and benchmark are released under an open license.

cs.CV↗

Compute-Optimal Quantization-Aware Training

Quantization-aware training (QAT) is a leading technique for improving the accuracy of quantized neural networks. Previous work has shown that decomposing training into a full-precision (FP) phase followed by a QAT phase yields superior accuracy compared to QAT alone. However, the optimal allocation of compute between the FP and QAT phases remains unclear. We conduct extensive experiments with various compute budgets, QAT bit widths, and model sizes from 86.0M to 2.2B to investigate how different QAT durations impact final performance. We demonstrate that, contrary to previous findings, the loss-optimal ratio of QAT to FP training increases with the total amount of compute. Moreover, the optimal fraction can be accurately predicted for a wide range of model sizes and quantization widths using the tokens-per-parameter-byte statistic. From experimental data, we derive a loss scaling law that predicts both optimal QAT ratios and final model performance across different QAT/FP compute allocation strategies and QAT bit widths. We use the scaling law to make further predictions, which we verify experimentally, including which QAT bit width is optimal under a given memory constraint and how QAT accuracy with different bit widths compares to full-precision model accuracy. Additionally, we propose a novel cooldown and QAT fusion approach that performs learning rate decay jointly with quantization-aware training, eliminating redundant full-precision model updates and achieving significant compute savings. These findings provide practical insights into efficient QAT planning and enable the training of higher-quality quantized models with the same compute budget.

cs.LG↗

Training Dynamics of the Cooldown Stage in Warmup-Stable-Decay Learning Rate Scheduler

Learning rate scheduling is essential in transformer training, where the final annealing plays a crucial role in getting the best performance. However, the mechanisms behind this cooldown phase, with its characteristic drop in loss, remain poorly understood. To address this, we provide a comprehensive analysis focusing solely on the cooldown phase in the Warmup-Stable-Decay (WSD) learning rate scheduler. Our analysis reveals that different cooldown shapes reveal a fundamental bias-variance trade-off in the resulting models, with shapes that balance exploration and exploitation consistently outperforming alternatives. Similarly, we find substantial performance variations $\unicode{x2013}$ comparable to those from cooldown shape selection $\unicode{x2013}$ when tuning AdamW hyperparameters. Notably, we observe consistent improvements with higher values of $β_2$ during cooldown. From a loss landscape perspective, we provide visualizations of the landscape during cooldown, supporting the river valley loss perspective empirically. These findings offer practical recommendations for configuring the WSD scheduler in transformer training, emphasizing the importance of optimizing the cooldown phase alongside traditional hyperparameter tuning.

cs.LG↗