MeKi (Memory-based Expert Knowledge Injection)
MeKi: a Transformer language model with per-layer token-level memory lookups for on-device use.
Language · 51 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 821.8M
- Operations
- 51
- Framework
- PyTorch
- Recurrent
- No
- Published
- EMNLP 2026 (main)
- Cited by
- 0 (as of 29 October 2026)
- Authors
- Ning Ding, Fangcheng Liu, Kyungrae Kim and others
- Source
- GitHub: ningding-o/MeKi
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18362
- Graph hash
- 1dcad4ced0b43f746c916556878ec28465c1cb17ec998982254f9abd7ec77e87
- Skeleton hash
- 438aae974f466a189cc56ec1cb585d9dfe8cc4ca97d4080ef6273b3cf6e68858
- Architecture hash
- 506fe564692ce320c676689389ad4899e27c15a51850d861a086c4bc5d64d4b2
- Diagram SHA-256
- 783510a6e86f5c2d4bb77515e89cf29a4918dcad02d054a18688748ce0a36913
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MeKi (Memory-based Expert Knowledge Injection) is a language model design that adds capacity through storage space instead of extra computation. It targets edge devices such as smartphones, where the authors say that adding parameters or test-time computation is impractical because RAM and NPU resources are limited.
In every layer, MeKi retrieves a knowledge vector for each token from a layer-specific memory bank, in a branch that runs parallel to the feed-forward network. The hidden state produces a gate signal through a low-rank linear projection and a sigmoid, and that gate is added to the retrieved vector. The branch then projects the result back to the model dimension and adds it to the residual stream. During training the memory is paired with non-linear projections, and a re-parameterization step afterward merges them into a static embedding table, so inference keeps only the lookup and the small gating step.
The paper's dense baselines adopt the architecture of Qwen3 at 0.6B, 1.7B and 4B parameters. It reports that MeKi at 1.7B reached an average zero-shot benchmark score of 59.7 against 60.5 for the 4B dense model, with a 2.26× advantage in decoding speed. The code release also includes a short demo that walks through the model logic and data flow.
Key idea. MeKi equips each Transformer layer with token-level memory experts and folds their training-time projections into a static lookup table, scaling capacity through storage rather than FLOPs.
- MeKi
- Memory-based Expert Knowledge Injection
- on-device LLM
- edge LLM
- memory-based scaling
- token-level memory experts
- lookup table
- re-parameterization
- efficient LLM scaling
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{ding2026mekimemorybasedexpertknowledge,
title={MeKi: Memory-based Expert Knowledge Injection for Efficient LLM Scaling},
author={Ning Ding and Fangcheng Liu and Kyungrae Kim and Linji Hao and Kyeng-Hun Lee and Hyeonmok Ko and Yehui Tang},
year={2026},
eprint={2602.03359},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2602.03359},
}