Hevolve AI: Self-Evolving Multimodal AI Agents

Turn your domain expertise into AI agents that keep learning. Hevolve AI lets experts build multimodal AI systems by talking to them and correcting them in real time, with no code to write.

Key Features

Quick Links

© 2024 Hevolve AI Pvt Ltd. All rights reserved.

← All research
Artificial Intelligence
arXiv (cs.CL) · July 16, 2026

Language Identification via Compositional Data Analysis: A Linear-Time Classifier Based on Log-Ratio Geometry

Paul-Andrei Pogăcean, Sanda-Maria Avram

Figuring out which language a text is written in usually means either a heavy neural network or a lightweight model that counts how often letters and letter pairs appear. The counting approach is fast, but there is a catch: letter frequencies are proportions that sum to one, and treating them as ordinary points in space distorts the distances between them.

This work borrows a fix from compositional data analysis, running the frequencies through a centered log-ratio transformation into a space where plain Euclidean distance behaves like a proper distance for proportions. Add Laplace smoothing for rare combinations and you get a classifier that runs in linear time. Tested on six languages, it stays accurate across text lengths and does best on longer passages.

That is drawn from the abstract alone, so read the paper for the exact setup and numbers.

From the arXiv (cs.CL) abstract

Language identification is commonly addressed using either neural architectures or statistical n-gram models. Neural approaches typically require substantial computational resources, whereas classical frequency-based methods offer efficient linear-time performance, but rely on distance metrics that are not always appropriate for compositional data. This work models character and bigram frequency distributions as compositional vectors constrained to the simplex and mapped via…


More Artificial Intelligence papers