1Samsung R&D Institute UK · 2Samsung Research, South Korea
arXiv preprint, 2026
Knowing a user’s persona helps generative AI models and agents give more relevant responses, but such details are hard to obtain and change over time. We study fine-grained persona prediction from a single day of mobile activity logs, performed on device so that raw logs never leave the phone.
We introduce a synthetic benchmark of 1,600 persona–log pairs. Each pair consists of a structured persona and a corresponding 24-hour smartphone activity timeline, whose entries record the application or service involved, the action performed, the time, and relevant context. The logs do not state persona attributes explicitly; they provide behavioral evidence from which the attributes may be inferred.
| Category | Attributes |
|---|---|
| Demographics | Age, gender, place of residence, marital or family status |
| Job and Lifestyle | Occupation, work schedule, workplace location, commuting behavior |
| Daily Patterns | Sleep schedule, weekday and weekend routines, hobbies |
| Financial Behavior | Spending habits, investment preferences, credit management |
| Health and Fitness | Exercise routines, general health practices |
| Social Activities | Primary relationships, communication patterns, community engagement |
| Technology Habits | Frequently used applications, device-usage patterns |
| Motivations and Pain Points | Personal goals, recurring concerns, socioeconomic stressors |
Table 1: The eight persona categories and the attributes recorded in each.
A full day’s log contains substantial repetition, such as repeated application launches, similar queries, and recurring system events. These lengthen the input but add little evidence once the underlying behavior has been observed. Our filtering method keeps behaviorally distinct entries and removes near-duplicates:
Complete log entries are either retained or removed, so an action is never separated from its application, timestamp, or context, unlike token-level prompt compression. We also evaluate a simpler Exact Match variant that removes only exact duplicates of previously seen entries.
We evaluate nine models from four families on the 500 test samples in a zero-shot setting. Exact Match and Semantic Similarity filtering generally preserve or improve prediction quality despite discarding 55% and 61% of the input. The largest degradation under Semantic Similarity is 0.4 points. LLMLingua-2 and 50% random sampling (RS) score lowest throughout: reducing input length alone is insufficient, and effective compression must preserve complete and behaviorally distinct log entries.
| Method | Avg log length (tokens) | Qwen3 | Gemma-3 | Gemma-4 | Ministral-3 | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| 4B | 8B | 14B | 4B | 12B | E2B | E4B | 8B | 14B | ||
| No Filtering | 29.7K | 69.8 | 76.7 | 73.8 | 69.3 | 74.4 | 75.1 | 75.3 | 76.8 | 77.3 |
| LLMLingua-2 | 15.4K | 58.3 | 75.0 | 73.8 | 68.9 | 71.5 | 73.3 | 72.9 | 75.3 | 76.2 |
| 50% RS | 14.8K | 62.1 | 73.8 | 73.1 | 67.6 | 72.2 | 73.4 | 73.2 | 74.1 | 74.0 |
| Exact Match ours | 13.4K | 70.0 | 75.3 | 78.6 | 69.5 | 76.0 | 75.4 | 76.2 | 76.7 | 78.0 |
| Semantic Similarity ours | 11.6K | 69.7 | 76.8 | 76.6 | 69.3 | 76.1 | 75.0 | 76.0 | 76.4 | 77.5 |
Table 2: Average Persona Prediction Score (PPS, 0–100, higher is better) in the zero-shot setting. Bold marks the best result for each model.
Semantic Similarity filtering reduces prefill time by at least 50% for every evaluated model, from 51% for Gemma-4-E2B to 67% for Qwen3-8B. Its preprocessing cost of 1.4 seconds per sample is more than offset by the prefill reduction.
| Method | Avg log length (tokens) | Qwen3 | Gemma-3 | Gemma-4 | Ministral-3 | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| 4B | 8B | 14B | 4B | 12B | E2B | E4B | 8B | 14B | ||
| No Filtering | 29.7K | 12.0 | 17.4 | 17.6 | 3.8 | 11.1 | 5.7 | 11.1 | 7.5 | 8.4 |
| LLMLingua-2 | 15.4K | 10.2 | 9.7 | 10.2 | 2.3 | 6.2 | 2.6 | 4.8 | 3.0 | 4.5 |
| 50% RS | 14.8K | 9.3 | 9.4 | 10.4 | 2.2 | 6.3 | 3.3 | 5.7 | 3.6 | 4.0 |
| Exact Match ours | 13.4K | 6.0 | 7.2 | 8.3 | 2.1 | 5.1 | 2.8 | 5.5 | 3.3 | 4.0 |
| Semantic Similarity ours | 11.6K | 4.7 | 5.7 | 7.1 | 1.7 | 4.5 | 2.8 | 4.5 | 3.0 | 3.5 |
Table 3: Average prefill time in seconds (lower is better) in the zero-shot setting. Bold marks the best result for each model.
On-device deployment is limited by memory before it is limited by speed: a model that does not fit is terminated by the operating system. Filtering affects only the KV-cache term. For Qwen3-4B it removes 2.5 GB of KV memory, reducing the total from 6.3 GB to 3.8 GB under INT4 weights. Gains are largest for models with dense attention (22–39% for Qwen3 and Ministral-3) and smaller (11–13%) for Gemma-3 and Gemma-4, whose sliding-window and cache-sharing mechanisms already constrain KV growth.
| Model | Weights (GB) | No Filtering (29.7K tokens) | Semantic Similarity (11.6K tokens) | Reduction | |||
|---|---|---|---|---|---|---|---|
| KV (GB) | Total (GB) | KV (GB) | Total (GB) | KV | Total | ||
| Qwen3-4B | 2.2 | 4.1 | 6.3 | 1.6 | 3.8 | 61% | 39% |
| Qwen3-8B | 4.6 | 4.1 | 8.7 | 1.6 | 6.2 | 61% | 29% |
| Qwen3-14B | 8.3 | 4.5 | 12.8 | 1.8 | 10.0 | 61% | 22% |
| Gemma-3-4B | 2.2 | 0.7 | 2.8 | 0.3 | 2.5 | 51% | 12% |
| Gemma-3-12B | 6.6 | 2.1 | 8.7 | 1.0 | 7.6 | 52% | 13% |
| Gemma-4-E2B | 0.8 | 0.2 | 1.0 | 0.1 | 0.9 | 59% | 11% |
| Gemma-4-E4B | 2.0 | 0.5 | 2.5 | 0.2 | 2.2 | 58% | 11% |
| Ministral-3-8B | 4.7 | 3.9 | 8.6 | 1.5 | 6.2 | 61% | 27% |
| Ministral-3-14B | 7.5 | 4.5 | 12.1 | 1.8 | 9.3 | 61% | 23% |
Table 4: Estimated on-device memory footprint (model weights + KV cache) with INT4 weight-only quantization and an FP16 KV cache. Bold totals fit within a 4 GB per-process budget.
Trading context for capacity. At nearly the same memory budget, Qwen3-4B with the full log requires 6.3 GB and reaches 69.8 PPS, whereas Qwen3-8B with filtered logs requires 6.2 GB and reaches 76.8 PPS. Four of the five points on the memory–quality Pareto frontier use filtered logs.
We fine-tune Qwen3-4B with LoRA, training a separate model for each input configuration. Fine-tuning helps in our experiments only when the input has already been filtered: Exact Match and Semantic Similarity improve to 70.5 and 70.1, both above the fine-tuned full-log baseline of 69.7. Adaptation compounds with filtering rather than substituting for it.
We introduced fine-grained persona prediction from 24-hour mobile activity logs, a synthetic benchmark of 1,600 persona–log pairs, and a semantic similarity-based filtering method that removes redundant entries while preserving distinct behavioral evidence. Filtering reduces the memory footprint by up to 39% and prefill time by more than half, while maintaining or improving prediction quality. Within our benchmark, preserving diverse behavioral events matters more for persona prediction than retaining every semantically similar log entry.
@article{alajrami2026logtopersona,
title = {LogToPersona: New Benchmark and Efficient Persona Prediction through Semantic Log Filtering},
author = {Alajrami, Ahmed and Bohdal, Ondrej and Song, Seokwoo and Um, Taegeon and Hosseini, Peyman and Ozkan, Savas and Ozay, Mete and Ceritli, Taha},
journal = {arXiv preprint arXiv:2611.33510},
year = {2026}
}