Search arXiv⌕ Search

arXiv subjects

Edoardo Mosca

Publications and source records attributed to Edoardo Mosca.

6 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↗

Challenging Quadratic Attention$\unicode{x2013}$A Holistic View on the Rise of Alternative Language Model Architectures

Transformers have dominated sequence processing tasks for the past seven years$\unicode{x2013}$most notably language modeling. However, the inherent quadratic complexity of their attention mechanism remains a significant bottleneck as context length increases. We review and distill the recent efforts to overcome this bottleneck, including advances in (sub-quadratic) attention variants, recurrent neural networks, state space models, and hybrid architectures. We critically analyze approaches regarding compute and memory complexity, benchmark results, and fundamental limitations to assess whether the dominance of pure-attention transformers may soon be challenged, which we consider possible, particularly in domain-specific and edge-device applications.

cs.CL↗

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↗

Simpler becomes Harder: Do LLMs Exhibit a Coherent Behavior on Simplified Corpora?

Text simplification seeks to improve readability while retaining the original content and meaning. Our study investigates whether pre-trained classifiers also maintain such coherence by comparing their predictions on both original and simplified inputs. We conduct experiments using 11 pre-trained models, including BERT and OpenAI's GPT 3.5, across six datasets spanning three languages. Additionally, we conduct a detailed analysis of the correlation between prediction change rates and simplification types/strengths. Our findings reveal alarming inconsistencies across all languages and models. If not promptly addressed, simplified inputs can be easily exploited to craft zero-iteration model-agnostic adversarial attacks with success rates of up to 50%

cs.CL↗

IFAN: An Explainability-Focused Interaction Framework for Humans and NLP Models

Interpretability and human oversight are fundamental pillars of deploying complex NLP models into real-world applications. However, applying explainability and human-in-the-loop methods requires technical proficiency. Despite existing toolkits for model understanding and analysis, options to integrate human feedback are still limited. We propose IFAN, a framework for real-time explanation-based interaction with NLP models. Through IFAN's interface, users can provide feedback to selected model explanations, which is then integrated through adapter layers to align the model with human rationale. We show the system to be effective in debiasing a hate speech classifier with minimal impact on performance. IFAN also offers a visual admin system and API to manage models (and datasets) as well as control access rights. A demo is live at https://ifan.ml.

cs.CL↗

"That Is a Suspicious Reaction!": Interpreting Logits Variation to Detect NLP Adversarial Attacks

Adversarial attacks are a major challenge faced by current machine learning research. These purposely crafted inputs fool even the most advanced models, precluding their deployment in safety-critical applications. Extensive research in computer vision has been carried to develop reliable defense strategies. However, the same issue remains less explored in natural language processing. Our work presents a model-agnostic detector of adversarial text examples. The approach identifies patterns in the logits of the target classifier when perturbing the input text. The proposed detector improves the current state-of-the-art performance in recognizing adversarial inputs and exhibits strong generalization capabilities across different NLP models, datasets, and word-level attacks.

cs.AI↗