LogToPersona: New Benchmark and Efficient Persona Prediction through Semantic Log Filtering

Ahmed Alajrami1, Ondrej Bohdal1, Seokwoo Song2, Taegeon Um2, Peyman Hosseini1, Savas Ozkan1, Mete Ozay1, Taha Ceritli1

1Samsung R&D Institute UK  ·  2Samsung Research, South Korea

arXiv preprint, 2026

Pipeline: smartphone logs are filtered, a language model predicts a persona from the filtered logs, and the predicted persona is used to personalize AI.
Figure 1: Overview of our persona prediction pipeline with log filtering.

Proposed Problem Setting

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.

LogToPersona Benchmark

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.

CategoryAttributes
DemographicsAge, gender, place of residence, marital or family status
Job and LifestyleOccupation, work schedule, workplace location, commuting behavior
Daily PatternsSleep schedule, weekday and weekend routines, hobbies
Financial BehaviorSpending habits, investment preferences, credit management
Health and FitnessExercise routines, general health practices
Social ActivitiesPrimary relationships, communication patterns, community engagement
Technology HabitsFrequently used applications, device-usage patterns
Motivations and Pain PointsPersonal goals, recurring concerns, socioeconomic stressors

Table 1: The eight persona categories and the attributes recorded in each.

Our Solution: Semantic Log Filtering

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.

29.7K → 11.6Kaverage input tokens (61% shorter)
up to 39%lower memory footprint
> 50%lower prefill time for every model
1.4 saverage filtering time per sample

Results

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.

MethodAvg log length
(tokens)
Qwen3Gemma-3Gemma-4Ministral-3
4B8B14B4B12BE2BE4B8B14B
No Filtering29.7K69.876.773.869.374.475.175.376.877.3
LLMLingua-215.4K58.375.073.868.971.573.372.975.376.2
50% RS14.8K62.173.873.167.672.273.473.274.174.0
Exact Match ours13.4K70.075.378.669.576.075.476.276.778.0
Semantic Similarity ours11.6K69.776.876.669.376.175.076.076.477.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.

Efficiency Evaluation

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.

MethodAvg log length
(tokens)
Qwen3Gemma-3Gemma-4Ministral-3
4B8B14B4B12BE2BE4B8B14B
No Filtering29.7K12.017.417.63.811.15.711.17.58.4
LLMLingua-215.4K10.29.710.22.36.22.64.83.04.5
50% RS14.8K9.39.410.42.26.33.35.73.64.0
Exact Match ours13.4K6.07.28.32.15.12.85.53.34.0
Semantic Similarity ours11.6K4.75.77.11.74.52.84.53.03.5

Table 3: Average prefill time in seconds (lower is better) in the zero-shot setting. Bold marks the best result for each model.

Memory Feasibility

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.

ModelWeights
(GB)
No Filtering (29.7K tokens)Semantic Similarity (11.6K tokens)Reduction
KV (GB)Total (GB)KV (GB)Total (GB)KVTotal
Qwen3-4B2.24.16.31.63.861%39%
Qwen3-8B4.64.18.71.66.261%29%
Qwen3-14B8.34.512.81.810.061%22%
Gemma-3-4B2.20.72.80.32.551%12%
Gemma-3-12B6.62.18.71.07.652%13%
Gemma-4-E2B0.80.21.00.10.959%11%
Gemma-4-E4B2.00.52.50.22.258%11%
Ministral-3-8B4.73.98.61.56.261%27%
Ministral-3-14B7.54.512.11.89.361%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.

Scatter plot of Persona Prediction Score against memory footprint for nine models, with full-log and filtered operating points and the Pareto frontier.
Figure 2: Projected memory–quality operating points under INT4 weight-only quantization, assuming quantization preserves the native-precision PPS reported in Table 2.

Fine-tuning

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.

Bar chart comparing zero-shot and fine-tuned average PPS for Qwen3-4B across the five filtering methods.
Figure 3: Impact of fine-tuning on Qwen3-4B average PPS across different filtering methods.

Summary

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.

BibTeX

@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}
}