Skip to content

中文版 / Chinese version

BEAM Benchmark ​

BEAM is a benchmark for memory capability over long-context chat cases. Each case contains a very long chat history split into batches.

1. Data preparation ​

BEAM ships dataset variants by chat size — 100K / 500K / 1M / 10M — so memory systems can be stressed at different context lengths. Question types include abstention, contradiction resolution, event ordering, information extraction, instruction following, knowledge update, multi-session reasoning, preference following, summarization, and temporal reasoning.

BEAM is a public repository, cloned into benchmark/beam/dataset/:

bash
mkdir -p benchmark/beam/dataset
cd benchmark/beam/dataset
git clone https://github.com/mohammadtavakoli78/BEAM.git

After cloning, benchmark/beam/dataset/BEAM/ should contain chats/, src/, topics/ and other subdirectories.

2. Use the BEAM plugin ​

2.1 Overview ​

The BEAM plugin loads chat.json for each case, converts each batch into a ReMe session, ingests sessions chronologically into an isolated workspace, and runs digest_update. It then answers probing questions via agentic (ReAct) mode and scores them with BEAM’s rubric-based answer_judge job, reporting graded scores, binary verdicts, and per-type averages.

2.2 How to use ​

Installation and environment ​

Install ReMe and the BEAM plugin in editable mode from the repository root:

bash
python -m pip install -e ".[as]"
reme plugins install ./plugins/beam --editable
reme plugins install ./plugins/beam-judge --editable
reme plugins validate beam

The runner explicitly enables the installed beam plugin and combines its defaults with ReMe's built-in benchmark preset. Editable installation keeps changes under plugins/beam visible without reinstalling the plugin. Custom application config paths still work through reme.config and can use extends: benchmark. Model credentials use the environment variables declared by the shared benchmark configuration.

Key configuration — benchmark/beam/config.yaml ​

KeyMeaning
dataset.beam_rootBEAM dataset root (benchmark/beam/dataset/BEAM).
dataset.chat_sizeVariant to run: 100K / 500K / 1M / 10M.
dataset.case_idsSpecific cases (e.g. ["1","2"]); empty = all cases.
dataset.start_index / num_itemsCase pagination (num_items 0 = all).
dataset.workspace_rootPer-case workspace root (benchmark/beam/workspaces/beam).
evaluation.num_workers0 = auto, 1 = sequential, >1 = parallel.
reme.configReMe config used (benchmark).
output.dirResults directory (benchmark/beam/results).

Run the benchmark ​

From the repository root:

bash
python benchmark/beam/run.py
python benchmark/beam/run.py --config benchmark/beam/config.yaml
python benchmark/beam/run.py -q                        # quiet
python benchmark/beam/run.py --eval_only               # reuse existing workspaces, query + judge only

2.3 Results ​

Results are JSON files written to output.dir as results_<chat_size>_<timestamp>.json, with a per-type score summary also printed to the console. Logging conventions are shared across benchmarks — see the top-level README.

100K ​

agentscope==2.0.4.post1, conda reme env, 20 workers, eval-only (reusing prebuilt memory) (2026-08-05, 20 cases / 400 Qs, total 46.0 min)

TypeAgenticBinaryinput tok/qoutput tok/qtotal tok/qtool calls/q
Overall0.6610.62063.1K1.8K65.0K3.33
abstention0.5500.55096.0K1.1K97.1K4.58
contradiction_resolution0.4380.41232.3K0.9K33.1K2.48
event_ordering0.5010.423140.2K5.2K145.4K4.70
information_extraction0.8730.83250.2K0.9K51.1K3.15
instruction_following0.7500.72538.0K0.8K38.8K2.67
knowledge_update0.6880.67531.2K0.7K31.8K2.27
multi_session_reasoning0.6260.58485.0K4.6K89.6K4.28
preference_following0.9250.91234.3K1.0K35.3K2.50
summarization0.6230.46189.7K2.1K91.7K4.12
temporal_reasoning0.6370.62534.6K1.0K35.6K2.52

Memory Construction average token consumption (default agent, full build over 20 cases):

Agentinput tok/caseoutput tok/casetotal tok/case
default2.2M136.7K2.3M

1M ​

agentscope==2.0.4.post1, conda reme env, 20 workers, full memory build (2026-08-05, 35 cases / 700 Qs, total 459.2 min)

TypeAgenticBinaryinput tok/qoutput tok/qtotal tok/qtool calls/q
Overall0.6500.609100.0K1.8K101.8K3.49
abstention0.4290.429118.7K1.2K119.9K4.20
contradiction_resolution0.3910.36449.8K0.8K50.6K2.50
event_ordering0.5580.456201.5K3.9K205.4K4.79
information_extraction0.8090.77279.0K0.9K79.8K3.00
instruction_following0.8520.83255.8K0.9K56.7K2.81
knowledge_update0.7790.77146.0K0.7K46.6K2.37
multi_session_reasoning0.6580.612138.1K2.9K141.0K4.40
preference_following0.7980.77751.8K0.9K52.7K2.53
summarization0.6930.537158.8K2.9K161.7K4.44
temporal_reasoning0.5360.536100.2K3.1K103.3K3.90

Memory Construction average token consumption (default agent, full build over 35 cases):

Agentinput tok/caseoutput tok/casetotal tok/case
default31.9M1.4M33.4M

3. Optimize the plugin with HoMe ​

3.1 Overview ​

HoMe prepares an experiment workspace from the dataset and a Git revision, evaluates the baseline, and iteratively improves the BEAM plugin code. The optimizer returns a candidate commit_sha, which can then be evaluated independently on the configured evaluation set.

3.2 How to use ​

Experiment setup ​

Get the dataset above and follow the HoMe setup and run guide. config_home.yaml defaults to benchmark/beam/workspaces/home-100K and all 100K cases for optimization. config_home_eval.yaml defaults to benchmark/beam/workspaces/home-test-100K and all 100K cases, which can overlap with training. Change variant or select case_ids to evaluate a different set.

Prepare the optimization workspace from the repository root:

bash
python benchmark/beam/run_home.py

Run the experiment ​

Run local one-shot optimization:

bash
python benchmark/beam/run_home.py --optimize

Set CANDIDATE_SHA to the optimizer's commit_sha or a unique hexadecimal prefix, then run local one-shot evaluation:

bash
python benchmark/beam/run_home_eval.py --commit "$CANDIDATE_SHA"

See the HoMe evaluation guide for service-based evaluation.

3.3 Results ​

HoMe is optimized on BEAM-100K and evaluated on BEAM-1M (35 cases, 700 queries). Token counts and LLM calls are per-query averages for the answering stage.

Question categoryScoreTotal tokensInput tokensOutput tokensLLM calls
Overall0.70460.4K57.8K2.6K6.7
Abstention0.63643.4K41.9K1.5K6.6
Contradiction Resolution0.70522.4K21.0K1.4K4.6
Event Ordering0.546123.0K116.6K6.4K12.7
Information Extraction0.73532.5K31.2K1.2K5.2
Instruction Following0.90130.7K29.4K1.3K5.5
Knowledge Update0.67119.2K18.3K0.9K4.0
Multi-session Reasoning0.68293.5K88.1K5.4K8.5
Preference Following0.83325.0K23.8K1.2K4.8
Summarization0.726173.2K169.0K4.2K9.4
Temporal Reasoning0.60441.4K39.1K2.3K6.0

Released under the Apache-2.0 License.