Manuscript Offprint

arXiv:2611.07820

Axis-LoRA: Probing and Adapting Embedding Models for Personal-Memory Retrieval

Dohoon Kim, Junho Park, Hyunwoong Bae, Seyoon Kim, Taesup Moon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As LLMs are increasingly asked questions about a user's personal experiences, retrieval must distinguish memories by time, place, person, and event. Current personal-memory pipelines rely on frozen dense embedding models to embed memories for retrieval, but we find that these models do not capture the four axes well. Swapping a memory's date or place barely shifts its embedding, and a trained projection on top of the frozen embedding does not recover the missing signal. The problem lives inside the model, where each axis is encoded by a distinct attention-head pattern. Guided by these findings, we propose Axis-LoRA, a per-axis adapter that places four LoRA branches inside the embedding model and combines them via a per-query gate. Across three standard embedding models evaluated on LongMemEval, ATM-Bench, and LoCoMo, Axis-LoRA improves 4-benchmark mean R@10 by +1.28 to +1.56 pp while training only a small fraction of the base parameters on a small axis-counterfactual training set. Code is available at https://github.com/dohoonkim-ai/axis-lora.

1 Introduction

Large language models (LLMs) are increasingly expected to answer questions about a user's personal experiences (e.g., "What did I discuss with Marco at Tuesday's meeting?" or "Where did I park at the Boston conference?"), not just open-domain factual queries (Packer et al., 2023; Chhikara et al., 2025; Gutiérrez et al., 2024). Several benchmarks have been introduced to evaluate this personalized memory QA ability: LongMemEval (Wu et al., 2025) and LoCoMo (Maharana et al., 2024) target long-term multi-session conversations, with LoCoMo spanning multiple months, while ATM-Bench (Mei et al., 2026) extends memory to multi-source personal data (images, videos, emails).

Retrieval is central to personalized memory QA: given a finite LLM context window, surfacing the query-relevant memories from a user's long memory corpus largely determines answer quality (Lewis et al., 2020). To support retrieval over long personal memory corpora, a line of recent work develops memory-management pipelines with hierarchical and long-term storage (Chhikara et al., 2025; Kang et al., 2025; Li et al., 2025; Hu et al., 2026), yet uniformly relies on a general-purpose embedding model (Karpukhin et al., 2020; Izacard et al., 2022) for the retrieval itself.

Personal memory, however, differs in structure from general retrieval corpora: each memory is naturally indexed along a small set of categorical axes, of which we consider four: TEMPORAL (timestamps, dates), SPATIAL (places, locations), ENTITY (persons, objects), and EVENT (actions, event types). A useful personalized memory retriever must discriminate along each of these axes. General embedding model training (Karpukhin et al., 2020; Izacard et al., 2022; Gao et al., 2021; Wang et al., 2022), however, optimizes encoders for topic and content overlap, so it under-trains them on the per-memory attributes that distinguish otherwise topically similar episodic records.

We confirm this gap on three standard embedding models. Swapping a memory's axis value (e.g., replacing Tuesday with Friday) barely changes its embedding, and the retriever therefore fails to rank the right memory near the top when a query targets that axis. To understand where the signal is missing, we run two diagnostic probes (Goldfarb-Tarrant et al., 2024). A learned projection trained on top of the frozen embedding cannot recover it, but a per-attention-head analysis shows each axis concentrated in a distinct attention-head pattern. The signal lives inside the model, not at its output.

Guided by these findings, we propose a simple per-axis adapter, Axis-LoRA (Figure 1b): four

*Corresponding author

(a) Failure Case in Personal Memory Retrieval

Figure

(b) Our Method: Axis-LoRA

Figure 1: Overview. (a) Failure case in personal-memory retrieval. A frozen retriever groups same-content memories into a single embedding cluster, where shared content tokens place candidates at near-equal cosine distance. An axis cue in the query (here, the time axis) does not separate the gold from content-similar distractors that mismatch on the axis, so the gold falls below them in the ranked list. (b) Axis-LoRA. Four axis-conditional LoRA adapters (T/S/E/Ev) attach to the last 20% of layers of the frozen embedding model and produce per-axis representations ϕA(q)\phi_A(q), ϕA(m)\phi_A(m). A per-query gate (MLP →\to sparsemax) outputs routing weights wAw_A with exact zeros on inactive axes. The final score is the frozen-base similarity plus a gated per-axis term.

axis-conditional LoRA (Hu et al., 2022) branches inside the frozen embedding model, gated per query. We train Axis-LoRA on AxisCF, a synthetic axis-counterfactual triplet set, and evaluate its retrieval R@10 on three dense embedding models (MiniLM-L6-v2, bge-base-en-v1.5, Qwen3-Embedding-0.6B) over LongMemEval, ATM-Bench, and LoCoMo, consistently improving the 4-benchmark mean R@10 on all three embedding models.

Our contributions are summarized as follows:

  • We show that frozen dense encoders exhibit axis-asymmetric under-exposure of personal-memory attributes (each axis is under-exposed to a different degree), evident both in axis-counterfactual cosine distance and in axis-anchored R@10.

  • Two diagnostic probes localize the cause inside the encoder: an external projection over the frozen output cannot recover the gap, and each attribute draws from a distinct attention-head footprint, which naturally motivates an inside-encoder, axis-specific fix.

  • We propose Axis-LoRA, a simple per-axis adapter with four axis-conditional LoRA branches and a per-query gate, trained on AxisCF, our synthetic axis-counterfactual triplet set. On LongMemEval, ATM-Bench,

and LoCoMo, Axis-LoRA improves mean R@10 across the three encoders by +1.28 to +1.56 pp, with the largest per-bench gains on the multi-evidence ATM-Bench Hard split (+2.4 to +3.8 pp across the three encoders).

References (54)

  • Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
  • Tuan-Luc Huynh, Weiqing Wang, Trung Le, Thuy-Trang Vu, Dragan Gašević, Yuan-Fang Li, and Thanh-Toan Do. 2026. Efficient temporal-aware Matryoshka adaptation for temporal information retrieval. arXiv preprint arXiv:2601.05549. (opens arXiv in a new tab)
  • Towards General Text Embeddings with Multi-stage Contrastive Learning
  • Jingbiao Mei, Jinghong Chen, Guangyu Yang, Xinyu Hou, Margaret Li, and Bill Byrne. 2026. According to me: Long-term personalized referential memory QA. arXiv preprint arXiv:2603.01990. (opens arXiv in a new tab)
  • MemGPT: Towards LLMs as Operating Systems
  • Junho Park, Dohoon Kim, and Taesup Moon. 2026. PRISP: Privacy-safe few-shot personalization via lightweight adaptation. arXiv preprint arXiv:2601.06471. (opens arXiv in a new tab)
  • Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
  • Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. 2022. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533. (opens arXiv in a new tab)
  • Each item is a triplet of a personal-memory text $M$, an anchor query $q$ taken verbatim from $M$, and a set of single-edit axis counterfactuals $\{CF_A\}$, where each $CF_A$ alters only the schema-slot values of axis $A$
  • Each memory follows a small slot schema spanning the four axes: TEMPORAL (date, time), SPATIAL (city, venue), ENTITY (person, object), and EVENT (action, event type)
  • Positive memories and counterfactuals are both generated with Qwen3.5-27B (Qwen Team, 2026) through a vLLM endpoint, run in non-thinking mode (enable_thinking=False) at temperature 0.7
  • Counterfactual quality is enforced at the prompt level: the generation prompt constrains each CF to a single axis-class edit under the token-class rules above, and 96% of triplets carry at least two counterfactuals per active axis
  • A stratified 90/10 train/validation split is taken jointly over memory format and axis combination so that all 14 (format, axis-set) strata are represented in both folds
  • This pool is generated from a separate corpus run with the same generator and axis schema as the training split, with no shared seeds or content
  • This event happened on {value}
  • This took place at {value}
  • This memory involves {value}
  • This memory is about {value}
  • Failure on this task therefore does not reflect missing information: the value is in the gold memory's text, but cosine retrieval compares single pooled vectors, and the value's contribution to the memory embedding is only 1–14% of the inter-memory distance scale (§2.1)
  • The cosine and retrieval signals are sentence-level (pooled embedding), and an axis-phrase swap is a natural unit of axis change
  • The strict filter shrinks the SPATIAL pool to $n = 41$; a relaxed cross-check ($n = 254$) and a position-controlled probe confirm the qualitative ordering, see Appendix C.2
  • meaningful
  • Position is at most a secondary modulator; the asymmetry is not a positional artifact
  • next weekend
  • ><tr><td rowspan=
  • We optimize each head with Adam (learning rate $1\times10^{-4}$), batch size 64, 30 epochs, and softmax temperature $\tau = 0.05$
  • Per-axis pair counts under this strict filter: TEMPORAL $n = 2191$, EVENT $n = 934$, ENTITY $n = 266$, SPATIAL $n = 41$
  • TEMPORAL is non-overlapping with the other axes at 95%
  • The axis-asymmetric head distribution is not a positional artifact
  • Above $\alpha = 0.25$, content-overlap-dominant queries (ATM-Normal, LoCoMo) get over-weighted on the axis term and the mean drops, with the axis-only setting ($\alpha = 1.0$) collapsing on ATM-Normal
  • A natural alternative is to replace sparsemax with softmax and add an explicit axis-supervision term — for each training sample with axis label set $A^* \subseteq \{T, S, EN, EV\}$, a cross-entropy loss between the gate weights and a uniform distribution over $A^*$:
  • Top: single-adapter control vs. Axis-LoRA vs. the axis-supervised gate (the loss of Table 14 at λ_gate=0.05 with sparsemax retained), with the supervised branches also read out under uniform routing
  • >Qwen3-0.6B routing decomposition</td></tr><tr><td>free gate: learned / uniform</td><td colspan=
  • For consistency we report Axis-LoRA’s R@10 on the same pool, scored with the composite $\langle z_b(q), z_b(m) \rangle + \alpha \sum_A w_A(q) \langle \phi_A(q), \phi_A(m) \rangle$ at $\alpha = 0.25$
  • raw cosine, MLP+InfoNCE projection (§3.1), and Axis-LoRA ($\alpha = 0.25$, seed 42)
  • Because the temporal subset is smaller (3,220 of 4,196 triplets), we additionally train a step-matched variant for the same number of optimizer steps as the joint model
  • Nor is Qwen3's negative number an artifact of picking a weak axis: training each of the four single-axis baselines for Qwen3-0.6B under the same recipe gives -0.61 (TEMPORAL), +0.22 (SPATIAL), -0.93 (ENTITY), and -0.97 (EVENT), so even the best single axis recovers under a fifth of the joint gain
  • The collapse is a stable property of forcing four axis-decomposed outputs through shared weights
  • [2023/04/10] What was the first issue I had with my new car after its first service?
  • When did Caroline go to the LGBTQ support group?
  • Which hotel did I stay in on the first day of my trip to Kent?
  • I really like the steel bridge in Porto. Can you help me find all the images and videos I took during my visit?
  • Represent this sentence for searching relevant passages:
  • Instruct: Given a question about WHEN (time, date, period) something happened, retrieve relevant memory entries
  • Instruct: Given a question, retrieve relevant passages that answer the question\nQuery:
  • The smaller MiniLM has proportionally larger LoRA influence (last 20% covers 6/12 layers versus 5/28 on Qwen), so the same axis-conditional reshaping translates to a larger perturbation of the general-retrieval geometry
  • The two BERT-style embedding models show different preservation: bge-base near-perfect (-0.02 pp) and MiniLM mildly degraded (-1.10 pp)
  • ><tr><td>Setup</td><td>NFC.</td><td>SciF.</td><td>ArgA.</td><td>SciD.</td><td>FiQA</td><td>TREC-C</td><td>Avg.</td><td>Δ</td></tr><tr><td colspan=
  • Across the six encoder×benchmark cells for time questions, every encoder improves significantly on time questions in at least one of the two benchmarks, and no cell shows a significant loss (Table 27), matching the axis the diagnosis flags as most under-exposed
  • Δ = Ours – Base in pp
  • wins/losses
  • The pattern reproduces with the same axis ordering (Table 28): TEMPORAL sits at or below the edit floor on all three encoders, the other axes clear the floor, and every axis stays at or below 11% of the inter-memory distance, far below the scale at which cosine ranking discriminates
  • LongMemEval’s reading prompt and per-question-type judge prompts, LoCoMo’s QA prompt with normalized-token F1, and ATM-Bench’s official evaluator
  • The coupling is also visible per query: on ATM-Normal, questions whose gold memory is retrieved in the top-10 are answered correctly 53.7% of the time versus 5.0% when it is missed