LightMem icon indicating copy to clipboard operation
LightMem copied to clipboard

Clarification on LongMemEval evaluation setting

Open zhouyongjie opened this issue 5 months ago • 4 comments

Hi,

I have a question regarding the LongMemEval experiments.

In Section 3.2, memory entries are described as containing both user and assistant messages ({user_i, model_i}). However, in the repository there is a messages_use option (user_only, assistant_only, hybrid).

Also, the STM thresholds reported for LongMemEval (e.g., 256/512/1024 tokens) seem quite small if both user and assistant messages are included, since a single user-assistant turn can already occupy a large fraction of the buffer.

Could you clarify which setting was actually used for the LongMemEval results in Table 2 (user_only, assistant_only, or hybrid)?

Thanks!

zhouyongjie avatar Jun 18 '26 14:06 zhouyongjie

Hello, we used "user only" for the initial version, which corresponds to the results in Table 2.

JizhanFang avatar Jul 01 '26 02:07 JizhanFang

I also want to confirm all baselines used "user only", since this is not clearly shown in the reproduction code.

And when generating answers, does lightmem use the same experimental settings as baselines to ensure fair comparison, like:

  • text preprocessing
  • answer prompt
  • top-k

zhouyongjie avatar Jul 01 '26 04:07 zhouyongjie

Hi, yes, all experimental settings were designed to ensure a fair comparison.

Regarding the answer prompt, we'd like to clarify one point. For baselines that do not provide their own answer prompt (including LightMem itself), we use exactly the same unified QA prompt across all methods. For baselines that come with a method-specific QA prompt (e.g., MemoryOS), we directly use their original prompt, as it is specifically designed for that method and allows it to achieve its intended performance.

As for Top-K, it is unfortunately not possible to unify this parameter across all methods. Different methods use memory units with substantially different granularities. For example, some methods store very long memory units containing a large amount of information, whereas LightMem's memory units are much more compact. Enforcing the same Top-K for all methods would therefore introduce an unfair comparison rather than improve fairness.

A more appropriate way to assess fairness is to compare the token cost during the QA stage, especially the input token consumption. You'll find that the input token budgets across LightMem and the baselines are generally kept at a comparable level, which helps ensure a fair evaluation despite the differences in memory granularity.

JizhanFang avatar Jul 03 '26 02:07 JizhanFang

hi do you have any further questions?

zxlzr avatar Jul 03 '26 03:07 zxlzr