컴백부터 K-뷰티까지 — K-컬쳐의 모든 것을 메일로 받아보세요메일로 받아보기

METAL MEDIA

한 AI 모델이 익힌 외부 지식 저장소를 다른 AI 모델이 그대로 재활용할 수 있는지 실험했다

arXiv:2608.170502026-08-16

Cross-Model Memory Transfer via Target-Side Reader Adaptation

한 AI 모델이 익힌 외부 지식 저장소를 다른 AI 모델이 그대로 재활용할 수 있는지 실험했다

이 연구는 Engram이라는 외부 메모리 테이블을 특정 모델에서 학습시킨 뒤, 그 테이블을 얼려서(고정해서) 완전히 다른 구조의 모델에 붙이는 실험을 했다. 결과적으로 메모리 테이블 자체는 얼려둔 채로, 그것을 읽어내는 작은 부품(리더)만 새로 학습시키면 다른 모델도 그 지식을 활용할 수 있었다. 즉 메모리 내용보다 그것을 '어떻게 읽어내는가'가 성능을 좌우하는 핵심 요인이었다.

METAL MEDIA 해설 도표

한 AI 모델이 익힌 외부 지식 저장소를 다른 AI 모델이 그대로 재활용할 수 있는지 실험했다

  1. 01대형언어모델이 지식을 쓰는 두 방식(외부 검색 RAG, 모델 안에 지식을 새기는 파인튜닝) 사이의 중간 지점인 Engram식 해시 메모리를 다루었다
  2. 02소스 모델(A)로 학습시킨 메모리 테이블을 얼린 뒤 다른 타깃 모델(B)에 붙이고, 토크나이저가 달라도 같은 주소 공간을 쓰도록 텍스트를 정규화한 뒤 타깃 쪽 리더만 학습시켰다
  3. 03Pythia, Qwen3.5, TinyLlama, LLaMA, Mistral 등 다양한 모델 조합 9가지 전부에서 메모리 없는 기준 대비 1.6~15.7% 퍼플렉시티(문장 예측 성능 지표, 낮을수록 좋음) 개선을 확인했다
  4. 04리더를 두 개 층에 넣고 네 개의 갈래(브랜치)로 확장하자 같은 모델 안에서 재사용한 경우와 거의 같은 수준(평균 정확도 38.8, 다섯 개 질의응답 과제 평균)까지 성능이 올라갔다
  5. 05제공자가 호환되는 리더까지 함께 준다면, 받는 쪽이 추가 학습을 전혀 하지 않아도 메모리 없는 경우(32.1) 대비 크게 개선된 성능(약 38.3)을 얻을 수 있었다
METAL MEDIA이 원문을 바탕으로 재구성한 해설 도표이며, 논문 저자의 원문 figure가 아닙니다.

무엇을 했나

  1. 대형언어모델이 지식을 쓰는 두 방식(외부 검색 RAG, 모델 안에 지식을 새기는 파인튜닝) 사이의 중간 지점인 Engram식 해시 메모리를 다루었다
  2. 소스 모델(A)로 학습시킨 메모리 테이블을 얼린 뒤 다른 타깃 모델(B)에 붙이고, 토크나이저가 달라도 같은 주소 공간을 쓰도록 텍스트를 정규화한 뒤 타깃 쪽 리더만 학습시켰다
  3. Pythia, Qwen3.5, TinyLlama, LLaMA, Mistral 등 다양한 모델 조합 9가지 전부에서 메모리 없는 기준 대비 1.6~15.7% 퍼플렉시티(문장 예측 성능 지표, 낮을수록 좋음) 개선을 확인했다
  4. 리더를 두 개 층에 넣고 네 개의 갈래(브랜치)로 확장하자 같은 모델 안에서 재사용한 경우와 거의 같은 수준(평균 정확도 38.8, 다섯 개 질의응답 과제 평균)까지 성능이 올라갔다
  5. 제공자가 호환되는 리더까지 함께 준다면, 받는 쪽이 추가 학습을 전혀 하지 않아도 메모리 없는 경우(32.1) 대비 크게 개선된 성능(약 38.3)을 얻을 수 있었다
Table 1: QA accuracy (%) on Mistral-7B-v0.3 for different reader variants and baselines. Budget notation follows Table 2 trained on Wikipedia-2021 [17].
VariantBudgetNQWebQATriviaQATruthQAHotpotQAAverage
Base20.629.357.732.121.032.1
Non-parametric Methods
RAG [25]22.6 1.924.9 -4.454.2 -3.435.5 3.429.8 8.833.4(+3.9%)
kNN [20]21.1 0.430.5 1.257.8 0.132.3 0.221.2 0.232.6(+1.4%)
Parametric Methods
CPT12.2 -8.534.1 4.861.2 3.629.2 -2.916.0 -4.930.5(-5.0%)
LoRA [15]18.2 -2.534.5 5.261.6 4.030.9 -1.216.2 -4.732.3(+0.5%)
MLP Memory [39]25.2 4.637.5 8.261.0 3.332.5 0.524.1 3.236.1(+12.3%)
Engram Variants (sorted by Average)
LLaMA Frozen {10}-R110/021.8 1.229.6 0.360.6 2.933.1 1.122.3 1.433.5(+4.4%)
Mistral Frozen {10}-R110/021.9 1.229.7 0.460.8 3.132.9 0.822.4 1.433.5(+4.4%)
Mistral {10}-R110/2022.1 1.531.6 2.461.1 3.432.8 0.722.3 1.334.0(+5.8%)
LLaMA {10}-R110/2022.2 1.532.6 3.361.2 3.632.9 0.822.3 1.334.2(+6.6%)
LLaMA {2,10}-R110/2030.3 9.728.7 -0.670.1 12.431.0 -1.127.4 6.437.5(+16.7%)
LLaMA {2,10}-R410/2030.3 9.733.7 4.469.9 12.330.9 -1.227.6 6.738.5(+19.9%)
Table 2: QA accuracy (%) on Mistral-7B-v0.3 for transfer verification and ablation studies. Deltas are measured against the baseline. Budget = P1/P2 denotes source-memory and target-reader training tokens (millions) trained on Wikipedia-2021.
VariantBudgetNQWebQATriviaQATruthQAHotpotQAAverage
Base20.629.357.732.121.032.1
Transfer Verification
Mistral {2,10}-R410/2030.2 9.534.0 4.770.0 12.330.8 -1.327.7 6.838.5(+20.0%)
LLaMA {2,10}-R410/2030.3 9.733.7 4.469.9 12.330.9 -1.227.6 6.738.5(+20.0%)
Frozen Mistral {2,10}-R410/030.5 9.830.3 1.070.8 13.232.2 0.227.7 6.838.3(+19.2%)
Frozen LLaMA {2,10}-R410/030.6 10.030.3 1.070.8 13.132.2 0.127.6 6.738.3(+19.2%)
Controls and Ablations
Mem-only Mistral10/00.2 -20.40.3 -29.01.4 -56.333.0 0.90.2 -20.77.0(-78.1%)
Mem-only LLaMA10/00.0 -20.60.0 -29.30.0 -57.70.0 -21.0
Permuted10/020.6 0.028.9 -0.463.1 5.432.4 0.323.1 2.233.6(+4.7%)
FFN R410/2019.6 -1.027.3 -2.058.1 0.532.1 -0.017.6 -3.430.9(-3.7%)
Token Scaling (LLaMA2-7B source, {2,10}-R4)
Engram10/1030.2 9.529.9 0.670.4 12.831.2 -0.927.6 6.737.9(+17.8%)
Engram15/1530.2 9.632.7 3.470.1 12.430.6 -1.527.8 6.838.3(+19.2%)
Engram20/2030.3 9.733.9 4.669.9 12.330.7 -1.427.6 6.738.5(+19.8%)
Engram25/2530.5 9.933.1 3.870.0 12.330.9 -1.227.7 6.738.4(+19.6%)
Engram30/3030.6 10.033.9 4.670.4 12.731.1 -1.027.9 7.038.8(+20.7%)
Table 3: QA memory-contribution trained on Wikipedia-2021 analysis for LLaMA-2-7B [37] → Mistral-7B-v0.3 [18] with dual-layer injection. The �​log⁡p columns report mean per-example differences in length-normalized gold-answer log-probability. Positive values indicate that transferred memory makes the gold answer more likely.
TaskTransferredRandomDisabledAblated�​log⁡p (Trans. - Random)�​log⁡p (Trans. - Disabled)�​log⁡p (Trans. - Ablated)
NQ25.120.118.326.2+0.035+0.032-0.013
WebQA32.327.431.133.6+0.147+0.197-0.001
TriviaQA72.565.558.972.5+0.047+0.072-0.000
TruthQA30.832.631.730.9-0.581-0.258-0.029
HotpotQA27.122.918.627.2+0.022+0.019-0.009
Table 4: Scaling analysis for frozen-memory transfer on Pythia-160M → Pythia-410M. Results report test perplexity as a function of target-side training tokens, averaged over 3 seeds.
ConditionTrainable Params5M20M50M
Transferred1.05M21.821.521.5†
From scratch34.6M21.921.821.6
Table 5: Ablation study of frozen-memory transfer on LLaMA-2-7B → Mistral-7B-v0.3, with the source memory trained on Wikipedia-2021. Results report held-out test perplexity and downstream QA performance.
ConditionTest PPL ↓95% CINQWebQATriviaQATruthQAHotpotQAAvg ↑
No memory baseline9.9[9.8,10.1]20.629.357.732.121.032.1
Transferred (R=4)8.7[8.6,8.9]30.333.769.930.927.638.5
Interface Simplifications
No gate10.1[9.9,10.3]24.227.761.631.024.133.7
Affine stitch9.5[9.4,9.7]25.029.262.830.423.934.3
Content and Training Controls
Permuted keys8.7[8.5,8.8]18.334.557.730.621.432.5
Random memory8.7[8.6,8.9]23.027.165.133.624.134.6
Train from scratch8.1[8.0,8.2]29.933.070.430.927.938.4
No-memory Control
FFN only (param-matched R=4)7.4[7.2,7.5]25.527.964.131.623.634.5
Table 6: Notation used throughout this paper.
SymbolMeaning
A,BSource model and target model, respectively.
dA,dBHidden dimensions of source model A and target model B, respectively.
ℰAFrozen Engram memory artifact learned with source model A, comprising the tables {En,k}.
En,kMemory table associated with N-gram order n and hash head k, where En,k∈RM×dhead.
NmaxMaximum N-gram order used for memory addressing, with n∈{2,…,Nmax}.
KNumber of independent hash heads for each N-gram order.
HTotal number of hash heads, H=(Nmax−1)​K.
MNumber of rows in each hash-head memory table.
dheadDimensionality of the embedding row retrieved from one hash-head table.
𝐞tConcatenated memory vector retrieved at token position t.
dmemDimensionality of 𝐞t, where dmem=H​dhead.
𝒫Canonicalization function mapping a raw decoded string to its canonical form.
V,V′Raw vocabulary and canonical vocabulary, respectively.
φn,kDeterministic hash function for N-gram order n and hash head k.
𝐡t,ℓTarget-backbone hidden state at token position t and layer ℓ.
Set of target-backbone layers at which memory readers are injected.
SNumber of memory injection sites, S=|ℒ|.
RNumber of reader branches at each injection site.
𝐖K,ℓ,r(B)Branch-specific key-projection matrix for branch r at target layer ℓ.
𝐖V,ℓ(B)Value-projection matrix shared across the R branches at target layer ℓ.
αt,ℓ(r)Context-aware scalar gate for token t, layer ℓ, and branch r.
βℓ,rLearnable scalar gate bias for branch r at injection layer ℓ.
𝒲(B)Complete target-side reader parameter set, including all key and value projections, normalization parameters, and gate biases.
b,TBatch size and sequence length, respectively.
Table 7: Qualitative comparison of knowledge augmentation approaches. ✓ = fully supported, ∘ = partially supported, ✗ = not supported.
PropertyKNN-LMRAGRETROMem. LayersLLM Mod.EngramOurs
O⁡(1) retrieval
Parametric (trained)
Cross-model portable
Surgical deletion
No context overhead
Reader-only integrationN/AN/A
Table 8: Formula-level comparison between original Engram and our transfer-oriented reader. We replace the native within-block module with a target-side reader over frozen hashed memory.
AspectOriginal EngramTransfer-oriented Engram Reader
Memory indexingLayer-specific compressed-token n-gram hashing: rt(l,n,j)=(⨁k=0n−1c⁡(xt−k)⋅ak(l))modpl,n,jShared canonical hashing: rt(n,j)=(H⁡(canon​_​ngramt(n))⊕sj)modM
Memory representationLayer-specific Engram embedding: et(l)=Concatn,j​𝐄l,n,j​[rt(l,n,j)]Shared memory vector: mt=Concatj​𝐓j​[rt(j)]​(dmem=512)
Key / gatest =⟨RMSNorm⁡(Wk​et),RMSNorm⁡(ht)⟩d αt =σ​(sign​(st)​|st|)kt(r)=Wk(r)​mt,vt=Wv​mt αt(r)=σ​(⟨RMSNorm⁡(ht),RMSNorm⁡(kt(r))⟩d+βr)
Output updateut=αt​Wv​et,ot=ut+ShortConv⁡(ut)ot=1R​∑r=1Rαt(r)​vt,ht←ht+ot
Branch structureNative multi-branch inside backboneExplicit reader branches (R controls capacity)
InjectionInternal transformer block componentPost-layer hook injection (e.g., layers 2 and 10)
TrainingJoint training with backboneTwo-stage: source training + frozen memory + target reader fitting
Table 9: Models and checkpoints used in the transfer experiments. “Source” denotes memory construction, and “target” denotes reader fitting for a frozen memory. Here, d is the residual hidden size used by the memory interface.
FamilyModelExperimental roleParams.dCheckpointHugging Face identifier
PythiaPythia-160MSource: main matrix160M768BaseEleutherAI/pythia-160m
Pythia-410MTarget: main matrix410M1024BaseEleutherAI/pythia-410m
Qwen3.5Qwen3.5-0.8BSource: main matrix, scaling Target: downstream0.8B1024BaseQwen/Qwen3.5-0.8B-Base
Qwen3.5-2BTarget: scaling, downstream2B2048BaseQwen/Qwen3.5-2B-Base
Qwen3.5-4BSource: peer, downstream Target: main matrix, peer, scaling, downstream4B2560BaseQwen/Qwen3.5-4B-Base
Qwen3.5-9BSource: main matrix, downstream Target: scaling, downstream9B4096BaseQwen/Qwen3.5-9B-Base
TinyLlamaTinyLlama-1.1BTarget: main matrix1.1B2048Chat-/instruction- tunedTinyLlama/TinyLlama-1.1B-Chat-v1.0
PhiPhi-4-mini-instructSource and target: peer transfer3.8B3072Instruction-tunedmicrosoft/Phi-4-mini-instruct
LLaMA 2LLaMA-2-7BSource: open-domain QA, ablation7B4096Basemeta-llama/Llama-2-7b-hf
MistralMistral-7B-v0.3Target: open-domain QA, ablation Source: self-transfer control7B4096Basemistralai/Mistral-7B-v0.3
Table 10: Principal training and evaluation settings. “LR / warm-up” reports the learning rate and number of warm-up steps. Unless otherwise noted, training uses cosine decay, AdamW with weight decay 0.01, and gradient-norm clipping at 1.0. Alternative-corpus experiments follow the intrinsic reader-fitting protocol with LAMBADA or English C4 replacing WikiText-103. OOD rows are evaluation-only.
Regime / phaseCorpusBudget / capSeq. / batchLR / warm-upTrainable components and exceptions
Primary training settings
RQ1 4.1 Phase 1WikiText-10350M tokens512 / 163×10−5 1,000Source backbone, memory, and source reader are trainable. For Qwen3.5 sources, the memory learning rate is 10−3.
RQ1 4.1 Phase 2WikiText-10320M tokens512 / 163×10−5 500Only the target reader is trainable; the target backbone and transferred memory remain frozen.
Figure 3 Phase 1FineWeb-Edu50M tokens512 / 210−3 / 1,000Source backbone, memory, and source reader trained end-to-end; gradient checkpointing
Figure 3 Phase 2FineWeb-Edu20M tokens512 / 43×10−5 / 500Target reader only; target backbone and transferred memory frozen; gradient checkpointing; early stopping patience 5
Table 1 to Table 5 Phase 1Wikipedia-202110–30M tokens2048 / 13×10−5 1,000The source memory and reader are trainable; the source backbone is frozen. Early stopping uses patience 3.
Table 1 to Table 5 Phase 2Wikipedia-202110–30M tokens2048 / 13×10−5 500Only the target reader is trainable; the target backbone and transferred memory remain frozen. Early stopping uses patience 3.
Alternative-corpus training
LAMBADA Phase 1LAMBADA train split50M tokens512 / 163×10−5 1,000Source backbone, memory, and source reader are trainable. The finite training split is cycled as needed.
LAMBADA Phase 2LAMBADA train split20M tokens512 / 163×10−5 500Only the target reader is trainable; the target backbone and transferred memory remain frozen.
C4 Phase 1English C4 train stream50M tokens512 / 163×10−5 1,000Source backbone, memory, and source reader are trainable.
C4 Phase 2English C4 train stream20M tokens512 / 163×10−5 500Only the target reader is trainable; the target backbone and transferred memory remain frozen.
Out-of-domain evaluation without additional training
LAMBADAlambada, test2M eval tokens512 / 16Evaluation only; source memory, reader, and target backbone remain frozen.
WikiText-103wikitext-103, test2M eval tokens512 / 16Evaluation-only distribution-shift probe; no trainable components.
C4allenai/c4, English validation5M eval tokens512 / 16Evaluation-only streaming web-text probe; no trainable components.
Table 11: Full cross-architecture transfer matrix: test PPL (↓) for 3 source memories × 3 target models. Random replaces the learned source memory with a size-matched randomly initialized memory under the same fitting protocol. Mean ± std over 3 seeds. Deltas shown next to the transferred result are relative to the no-memory baseline; negative values indicate better PPL. A displayed standard deviation of 0.0 indicates a value below 0.05 after rounding to one decimal place.
TargetBaselineTransferredRandom
Pythia-160M source
Pythia-410M21.921.6±0.1 -1.6%21.9±0.0
Qwen3.5-4B10.810.1±0.0 -6.8%10.3±0.0
TinyLlama-1.1B10.69.5±0.0 -10.6%10.0±0.0
Qwen3.5-0.8B source
Pythia-410M22.921.4±0.0 -6.8%22.1±0.0
Qwen3.5-4B10.59.6±0.0 -8.9%10.2±0.0
TinyLlama-1.1B10.89.1±0.0 -15.7%9.3±0.0
Qwen3.5-9B source
Pythia-410M22.621.6±0.0 -4.3%22.3±0.0
Qwen3.5-4B10.59.4±0.0 -10.3%10.2±0.0
TinyLlama-1.1B10.49.1±0.0 -12.2%9.3±0.0
Table 12: Same-tokenizer transfer (Pythia-160M → Pythia-410M). Mean ± std over 3 seeds. Deltas in the PPL column are relative to the no-memory baseline; negative values indicate better PPL. LoRA and Cross-LoRA are iso-parameter baselines (1.03M parameters, same 20M token budget). KNN-LM uses a 5M-token datastore with k=1024 retrieval at inference time.
ConditionTest PPL ↓95% CIParams / Cost
Baseline (no memory)21.9[20.6,23.4]
Transfer Conditions
Random memory21.9±0.0 -0.2%[20.6,23.3]1.05M
Transferred memory21.6±0.1 -1.6%[20.2,23.0]1.05M
Parameter-Matched Baselines
LoRA (rank 7) [15]23.3±0.8 +6.5%[21.9,24.9]1.03M
Cross-LoRA [42]23.9±0.6 +9.3%[22.5,25.5]1.03M
External Retrieval Reference
KNN-LM [20]†20.4 -7.1%[19.3,21.5]5M-tok store
†Non-parametric; requires k=1024 nearest-neighbor search per token at inference.
Table 13: Cross-tokenizer transfer (Pythia-160M → TinyLlama-1.1B). Mean ± std over 3 seeds. Deltas in the PPL column are relative to the no-memory baseline; negative values indicate better PPL. Reader parameters: 2.10M.
ConditionTest PPL ↓95% CIParams
Baseline (no memory)10.6[10.0,11.3]
Transfer Conditions
Random memory10.0±0.0 -5.9%[9.4,10.7]2.10M
Transferred memory9.5±0.0 -10.6%[8.9,10.2]2.10M
Table 14: Peer-to-peer transfer between Phi-4-mini (3.8B) and Qwen3.5-4B. Source memories trained on WikiText-103 (50M tokens). Mean ± std over 3 seeds. Deltas shown next to the transferred result are relative to the no-memory baseline; negative values indicate better PPL.
DirectionBaselineTransferredRandom
Phi-4-mini → Qwen3.5-4B10.59.5±0.0 -10.1%10.2±0.0
Qwen3.5-4B → Phi-4-mini12.611.5±0.0 -9.2%12.3±0.0
Table 15: Target model scaling: Qwen3.5-0.8B source → Qwen3.5-{2B, 4B, 9B}. Mean ± std over 3 seeds. Deltas shown next to the transferred result are relative to the no-memory baseline; negative values indicate better PPL. Baselines are eval-only (no reader training).
TargetBaselineTransferredRandom
Qwen3.5-2B13.711.7±0.0 -14.1%12.6±0.0
Qwen3.5-4B10.59.6±0.0 -8.9%10.2±0.0
Qwen3.5-9B9.38.5±0.0 -8.3%9.0±0.0
Table 16: Domain alignment ablation with corpus-matched Phase 2 readers. Positive gains are shown in green and negative changes in red.
TargetSourceRTE ↑BoolQ ↑OpenBookQA ↑SciQ ↑TruthfulQA ↑RACE ↑
Qwen-0.8BFW-avg+6.1-0.6+0.7+1.8-0.1-0.2
Nemo-avg+7.9+4.1∗+1.1+8.4∗-0.8+1.1∗
Qwen-2BFW-avg+2.7+3.2+0.3+3.5-0.4-0.0
Nemo-avg+8.7∗+14.6∗+0.5-0.7+0.0+1.1∗
Qwen-4BFW-avg+1.3-0.2+0.6+0.9-0.5+0.1
Nemo-avg+0.4+0.6+0.2-6.3-2.9-0.4
Qwen-9BFW-avg+0.5+0.6+0.2+2.7-0.7+1.0
Nemo-avg-4.6+2.1∗-0.3-3.7+0.2+1.4
∗Nemo-avg > FW-avg by ≥2 percentage points.
Table 17: Corpus structure vs. size on Qwen-2B: accuracy change (�%) under corpus-matched Phase 2 readers. Positive gains are shown in green and negative changes in red.
Source corpusBoolQ ↑RTE ↑OBQA ↑SciQ ↑TQA ↑RACE ↑
HQ-DQA (8B, STEM Q&A)+15.3 ± 0.3+8.9 ± 4.7+0.3 ± 0.2+0.9 ± 3.0+0.3 ± 0.2+1.4 ± 0.4
HQ (26B, organic web)+3.0 ± 0.4+1.2 ± 2.1+0.5 ± 0.1-0.5 ± 0.0+0.2 ± 0.3-0.4 ± 0.2
FW-avg (reference)+3.2+2.7+0.3+3.5-0.4-0.0
Table 18: Reader alignment: downstream accuracy change (�%) under mismatched vs. matched Phase 2 adaptation. Positive gains are shown in green and negative changes in red.
SourcePhase 2BoolQ �%↑RTE �%↑SciQ �%↑
Mismatched Phase 2 (WikiText-103)
10MWikiText-103+8.3 ± 0.5+7.7 ± 3.9-4.5 ± 0.5
50MWikiText-103+6.6 ± 0.4+6.1 ± 4.7-1.8 ± 0.6
200MWikiText-103+0.0 ± 0.0+2.9 ± 4.7-1.4 ± 0.6
Matched Phase 2 (HQ-DQA)
10MHQ-DQA+14.1 ± 1.2+10.7 ± 4.0-2.3 ± 3.0
50MHQ-DQA+15.3 ± 0.3+8.9 ± 6.2+0.9 ± 3.7
200MHQ-DQA+14.0 ± 0.8+6.6 ± 4.9+2.9 ± 4.6
Table 19: Gate activation statistics during BoolQ evaluation versus Phase 2 WikiText-103 training. Longer source training suppresses the gate globally; BoolQ shows a lower mean gate, while the near-closed-gate fraction rises on both distributions under mismatch.
SourceGate meanFrac. <0.1
tokensWikiText-103BoolQWikiText-103BoolQ
10M0.60.55.6%3.6%
50M0.60.59.1%2.9%
200M0.50.417.5%15.3%
Table 20: Mixed-corpus memory study on Qwen3.5-2B. Positive gains are shown in green and negative changes in red. The two rightmost columns report aggregate scores: DQA-agg = mean(BoolQ, RTE, SciQ); Br-agg = mean(OBQA, TruthfulQA, RACE).
DesignBoolQ ↑RTE ↑OBQA ↑SciQ ↑TQA ↑RACE ↑DQA-agg ↑Br-agg ↑
Single-corpus references
HQ-DQA ref.+15.3 ± 0.3+8.9 ± 4.7+0.3 ± 0.2+0.9 ± 3.0+0.3 ± 0.2+1.4 ± 0.4+8.4+0.7
FW-Edu ref.+2.5 ± 1.7+1.9 ± 0.2-0.0 ± 0.2+3.2 ± 0.6-0.2 ± 0.2+0.1 ± 0.1+2.5-0.1
Mixed or broadened memories
50/50 mix+14.3 ± 1.1+11.7 ± 3.5+0.4 ± 0.4-0.5 ± 3.8+0.3 ± 0.3+0.5 ± 0.3+8.5+0.4
Sequential HQ→FW+13.6 ± 1.0+11.9 ± 2.8-0.0 ± 0.2-1.7 ± 2.7+0.1 ± 0.4+0.2 ± 0.3+7.9+0.1
Orthogonal + Code+14.4 ± 0.9+9.8 ± 2.6+0.4 ± 0.3-0.4 ± 3.4-0.2 ± 0.7+1.3 ± 0.4+7.9+0.5
Table 21: Out-of-domain evaluation: test PPL (↓) for baseline vs. transferred memory. Negative � indicates improvement.
Target ModelDatasetBaselineTransferred� (%)
Pythia-410MLAMBADA41.041.0+0.0%
WikiText-10322.622.1-2.4%
C424.924.8-0.3%
TinyLlama-1.1BLAMBADA23.623.5-0.7%
WikiText-10310.610.1-5.0%
C411.711.6-0.2%
Table 22: Cross-corpus reader fitting and evaluation. Lower PPL is better.
Reader corpusEval. corpusNo memoryTransfer
WikiTextWikiText22.61622.113-0.502
WikiTextC424.72624.663-0.062
C4WikiText22.61622.538-0.078
C4C424.72624.604-0.122
Table 23: Character-span addressing for non-segmented languages. Results are averaged over three seeds.
LanguageNo-memory PPLTransfer PPLRel. improvement
Chinese20.124819.6718±0.00332.251%
Japanese15.355515.1985±0.02511.023%
Table 24: Measured cost for the LLaMA-2-7B→Mistral-7B-v0.3 using QA experiment configuration on LUMI supercomputer.
ConditionTokensTrain timeGPU-hoursPeak inf. memoryPrefill
No memory00013.658±0.020 GiB55.10±0.06 ms
Phase-1 source artifact4.096M0.653 h3.154
Fresh Mistral memory19.968M3.871 h15.760
Matched FFN19.968M3.680 h14.92913.736±0.020 GiB55.32±0.49 ms
Transfer, incl. Phase 14.096M+19.968M4.451 h18.62313.881±0.020 GiB57.69±0.40 ms

왜 중요한가

외부 지식 저장소를 모델마다 새로 학습시킬 필요 없이 재활용할 수 있다면, 지식 업데이트와 감사, 배포 비용을 크게 줄일 수 있다. 이는 여러 모델에 지식을 나눠주는 서비스 구조나 지식 관리 파이프라인을 설계할 때 실질적인 지침이 된다.

이 논문의 용어

  • Engram · 입력 텍스트의 n-그램을 해시로 주소화해 외부 테이블에서 벡터를 꺼내 쓰는 메모리 방식
  • 퍼플렉시티(PPL) · 언어모델이 다음 단어를 얼마나 잘 예측하는지 나타내는 지표, 낮을수록 좋음
  • 리더(reader) · 외부 메모리에서 꺼낸 벡터를 모델이 쓸 수 있는 형태로 바꿔주는 작은 학습 부품
  • 토크나이저 무관 정규화 · 서로 다른 모델이 텍스트를 쪼개는 방식이 달라도 같은 메모리 주소를 찾도록 텍스트를 표준 형태로 맞추는 과정
  • RAG(검색증강생성) · 답변 생성 시 외부 문서를 검색해서 참고하는 방식

본문에 싣지 못한 그림

  • Figure 1: Overview of the cross-model memory transfer. A memory table trained with source model A is frozen and attached to target model B. Canonicalization keeps the address space fixed across tokenizers, and only the target-side reader (including multi-head and multi-layer variants) is trained. This setup operationalizes whether external memory remains reusable outside its source backbone.
  • Figure 2: The full 3x3 transfer matrix and target-scale transfer performance across different model types trained on Wikitext-103.
  • (b) Target-scale intrinsic transfer: the same transferred Qwen3.5-0.8B memory improves Qwen3.5 targets from 2B to 9B.
  • Figure 3: Downstream task evaluation. Bars report the change in accuracy (�) produced by transferred memory relative to the no-memory baseline across six downstream tasks. Results are averaged over five seeds. Positive values indicate that transferred memory improves the target model after target-side adaptation on FineWeb-Edu (FW-9B) [27].
  • Figure 4: Target-side scaling for Qwen3.5-0.8B → Qwen3.5-2B with the source memory trained on WikiText-103. Transferred memory maintains a consistent intrinsic perplexity advantage, while downstream improvements remain positive but task-dependent.
  • (b) Qwen3.5-2B intrinsic scaling: test perplexity versus target-side training tokens for scratch and transferred memory.
  • Figure 5: Linear CKA similarity between mean-pooled backbone representations at layer ⌊L/3⌋ for the three models shown in the matrix.
원문에서 그림 보기 →

저자 · Mingyuan Li

arXiv에서 원문 보기

최신 논문

논문 전체 보기 →

METAL MEDIA 최신 기사