Search arXiv⌕ Search

arXiv subjects

Saniya Karwa

Publications and source records attributed to Saniya Karwa.

3 recordsLinked to original sources

LFM3 Technical Report

We present LFM3, the third generation of Liquid Foundation Models: a family of natively multimodal models designed to run on phones, laptops, robots, and other edge devices. The first release contains six 2B-class models built on a single pre-trained backbone: models for local agents, vision, speech, joint audio-visual understanding, and fast decisions in pipelines. We used automated hardware-in-the-loop search to design the backbone together with three new multimodal components. The Liquid vision encoder matches the accuracy of the Qwen3.5-2B vision encoder at 2.2x lower compute, a causal audio encoder processes speech while the user is still talking, and the LiquidCodec speech codec decodes at 87x real time on a single CPU thread. The backbone combines gated short convolutions with sliding-window and global attention, so only a quarter of its layers keep a cache that grows with context. The backbone is pre-trained on 22T tokens, with the context window extended to 256K tokens. The text model averages 49.4 over 29 scores on agent, tool-use, coding, instruction-following, knowledge, and long-context benchmarks, against 47.2 for Qwen3.5-9B. The vision-language model averages 71.4 over 62 vision benchmarks, between Gemini 3.5 Flash Lite (70.0) and GPT-5.6 Luna (73.4). The audio model handles speech recognition, synthesis, and translation in 18 languages, with the lowest multilingual error rate (6.03 averaged over nine languages) among the models evaluated on all nine languages and the highest UTMOSv2 naturalness score (3.83) among the models evaluated on speech synthesis. The omni-modal model leads the larger Qwen2.5-Omni-7B by 8.8 points on the Daily-Omni audio-visual benchmark. All models are released with open weights.

cs.LG↗

LFM2 Technical Report

We present LFM2, a family of Liquid Foundation Models designed for efficient on-device deployment and strong task capabilities. Using hardware-in-the-loop architecture search under edge latency and memory constraints, we obtain a compact hybrid backbone that combines gated short convolutions with a small number of grouped query attention blocks, delivering up to 2x faster prefill and decode on CPUs compared to similarly sized models. The LFM2 family covers 350M-8.3B parameters, including dense models (350M, 700M, 1.2B, 2.6B) and a mixture-of-experts variant (8.3B total, 1.5B active), all with 32K context length. LFM2's training pipeline includes a tempered, decoupled Top-K knowledge distillation objective that avoids support mismatch; curriculum learning with difficulty-ordered data; and a three-stage post-training recipe of supervised fine-tuning, length-normalized preference optimization, and model merging. Pre-trained on 10-12T tokens, LFM2 models achieve strong results across diverse benchmarks; for example, LFM2-2.6B reaches 79.56% on IFEval and 82.41% on GSM8K. We further build multimodal and retrieval variants: LFM2-VL for vision-language tasks, LFM2-Audio for speech, and LFM2-ColBERT for retrieval. LFM2-VL supports tunable accuracy-latency tradeoffs via token-efficient visual processing, while LFM2-Audio separates audio input and output pathways to enable real-time speech-to-speech interaction competitive with models 3x larger. LFM2-ColBERT provides a low-latency encoder for queries and documents, enabling high-performance retrieval across multiple languages. All models are released with open weights and deployment packages for ExecuTorch, llama.cpp, and vLLM, making LFM2 a practical base for edge applications that need fast, memory-efficient inference and strong task capabilities.

cs.LG↗

Disentangling Linguistic Features with Dimension-Wise Analysis of Vector Embeddings

Understanding the inner workings of neural embeddings, particularly in models such as BERT, remains a challenge because of their high-dimensional and opaque nature. This paper proposes a framework for uncovering the specific dimensions of vector embeddings that encode distinct linguistic properties (LPs). We introduce the Linguistically Distinct Sentence Pairs (LDSP-10) dataset, which isolates ten key linguistic features such as synonymy, negation, tense, and quantity. Using this dataset, we analyze BERT embeddings with various methods, including the Wilcoxon signed-rank test, mutual information, and recursive feature elimination, to identify the most influential dimensions for each LP. We introduce a new metric, the Embedding Dimension Impact (EDI) score, which quantifies the relevance of each embedding dimension to a LP. Our findings show that certain properties, such as negation and polarity, are robustly encoded in specific dimensions, while others, like synonymy, exhibit more complex patterns. This study provides insights into the interpretability of embeddings, which can guide the development of more transparent and optimized language models, with implications for model bias mitigation and the responsible deployment of AI systems.

cs.CL↗