Experiment Matrix và Metrics

Research questions

RQ-A — Task-aware prompt có giúp continual relation extraction không?

So sánh shared prompt, oracle-task prompt và learned/prototype router để đo giá trị thật của task awareness.

RQ-B — Không có task ID lúc inference thì mất bao nhiêu performance?

Đo gap giữa oracle routing và predicted routing.

RQ-C — Prototype/hierarchy có làm routing tốt hơn không?

Kiểm tra prototype-guided router, đặc biệt trên các relation gần nghĩa.

RQ-D — Memory và prompt tương tác thế nào?

So M=0 rehearsal-free/raw-data-free với M=1 exemplar/relation nếu đủ thời gian.

Experiment matrix

IDModelShared PromptTask PromptRouterPrototypeHierarchyReplayMục đích
B0Sequential FT-----0Lower bound forgetting
B1Joint Training-----fullReference upper bound
B2Prototype sanity---relation-0/1Kiểm tra representation/prototype
B3ConPL---relation-1Prototype-based FCRE baseline
B4CPLyes--model-specific-yesPrompt + contrastive baseline
B5WAVE-CRE/WAVE++ hoặc EoEyesyeslearned/votingmodel-specific-latent/0Closest task-aware prompt comparator
P0Shared Promptyes----0/1Prompt baseline tối thiểu
P1Oracle-Task Promptyesyesoracle--0/1Upper bound cho routing
P2Learned Task Routeryesyeslearned--0/1Test task prediction
P3Prototype Routeryesyesprototyperelation-0/1Test semantic routing
P4TAPTA minimalyesyesprototype-softrelation/internalyes0/1Proposed full model tối thiểu
A1P4 no hierarchyyesyesprototype-softrelation-0/1Tree có cần không?
A2P4 hard routingyesyestop-1relation/internalyes0/1Soft routing có hơn hard routing không?
A3P4 no KDyesyesprototype-softrelation/internalyes0/1KD có giúp chống quên không?
A4P4 EMA vs snapshotyesyesprototype-softrelation/internalyes0/1EMA có hơn freeze checkpoint không?
A5P4 logits KD vs similarity KDyesyesprototype-softrelation/internalyes0/1Distillation target nào giữ quan hệ cũ tốt hơn?

Ablation và đối chứng KD

  • A3: P4 không có KD, làm mốc cho mọi biến thể teacher.
  • A4: EMA teacher so với snapshot teacher, giữ nguyên distillation target và các yếu tố khác.
  • A5: distillation trên logits relation cũ so với distribution similarity giữa câu và relation/prototype, giữ cùng teacher. Chốt rõ class set, temperature, normalization và stop-gradient trước khi chạy.
  • Nếu cần kiểm tra tương tác giữa EMA và target, chạy pilot 2×2 (snapshot/EMA × logits/similarity); không gộp hai thay đổi vào một ablation rồi quy toàn bộ gain cho một yếu tố.

RQ tương ứng: KD Logits hay Similarity, và Vai trò EMA Teacher trong TAPTA.

Metrics bắt buộc

Evaluator phải lưu performance matrix:

          Test T1  Test T2  Test T3  ...  Test Tn
After T1    A11
After T2    A21      A22
After T3    A31      A32      A33
...
After Tn    An1      An2      An3         Ann

Từ matrix này tính:

  • Final Average Accuracy hoặc Final Macro-F1.
  • Average Incremental Accuracy.
  • Average Forgetting.
  • Backward Transfer.
  • Old/new split.
  • Router/Task-ID accuracy.
  • Oracle vs predicted routing gap.
  • Similar-relation subset accuracy.
  • Trainable parameters.
  • Stored memory: raw examples, prototypes, prompt parameters, Gaussian/statistics nếu có.
  • Inference latency hoặc số forward passes qua PLM.

Protocol mặc định (Protocol v1 — Đã khóa ngày 2026-11-14)

Chi tiết đặc tả: xem research-code-lab/docs/protocol-v1.md.

Thành phầnSetting khóa cho Protocol v1Ghi chú
Hạ tầng thực thi / ComputeGoogle Colab (NVIDIA GPU CUDA: T4 / V100 / A100) cho toàn bộ các lượt train, chạy thử nghiệm (smoke) và full runs từ W15 trở điĐảm bảo tính nhất quán môi trường CUDA chuẩn quốc tế; không dùng MacBook cá nhân để huấn luyện.
Backbonebert-base-uncased + entity markers ([E11], [E12], [E21], [E22])Báo cáo trainable parameters theo từng mô hình
Max sequence length256 (hoặc 128 tùy ablation được ghi rõ)
BenchmarksTrack A: FewRel (8 tasks × 10 rels, 5-shot) & TACRED (8 tasks × 5 rels, 5-shot)
Track B: FewRel 10×8 data-rich (cho B5 smoke run)
Nguồn split chuẩn: ConPL/CFRL
Memory budgetBáo cáo riêng 2 setting: (1 exemplar/rel) và (rehearsal-free)Stored memory ghi rõ byte/kích thước
Task ID inferenceKhông cấp Task ID lúc inference (Class-Incremental chuẩn)Task Oracle chỉ dùng đối chứng ở P1
Metric chínhaccuracy_whole trên tập quan hệ lũy kế đã học ()Kèm theo ma trận đầy đủ
Metric phụAIA, Average Forgetting (), BWT, Task-ID / Router Accuracy, Oracle Gap
Seeds2021 (smoke), [2021, 2121, 2221] (pilot 3 seeds), + 2321, 2421 (final 5 seeds)
OptimizerAdamWTheo config tác giả/mô hình
Encoder LR2e-5 nếu encoder trainable
Prompt/router LR5e-4 hoặc 1e-4
Batch size16Dùng gradient accumulation nếu thiếu VRAM
Artifact storageresearch-code-lab/runs/<model>/<setting>/seed_<k>/Lưu config, git commit provenance, env_info, run.log, metrics.json; checkpoints lưu Cloud

Config cần có

configs/
  conpl_original.yaml
  cpl_original.yaml
  wave_original.yaml
  common_fewrel_5shot.yaml
  common_tacred_5shot.yaml
  tapta_p0_shared_prompt.yaml
  tapta_p1_oracle_task_prompt.yaml
  tapta_p2_learned_router.yaml
  tapta_p3_prototype_router.yaml
  tapta_p4_full.yaml

Rule: với published baseline, chạy authors’ config trước, common protocol sau. Không chỉnh baseline cho đến khi nó tốt rồi đem so với proposed method chạy config khác.

Master experiment table

IDDateModelDatasetProtocolMemorySeedAA/F1ForgetRouter AccConfigResult FileStatus
E001Sequential FTFewRel5-shot02021-todo
E002Joint TrainingFewRel5-shotfull2021-todo
E003Prototype sanityFewRel5-shot0/12021-todo
E004ConPLFewRel5-shot12021-todo
E005P0 Shared PromptFewRel5-shot0/12021-todo
E0062026-11-15WAVE-CRE (B5)FewRelTrack B (Authors 10x8)0 (latent GMM replay)202191.68% (5-task)3.50%-configs/b5_wave_cre_fewrel_author_seed2021.yamlruns/wave_cre/fewrel_author_config/seed_2021/metrics.jsoncompleted (smoke 5/10 tasks; see wave-b5-blocker-report-2026-11-15.md)
E0072026-11-15P0 Shared PromptFewRelTrack A (Protocol v1 8x10)0 (rehearsal-free)2021CIL: 9.84%, Proto: 52.83%86.54% (Linear) / 19.20% (Proto)-configs/p0_shared_prompt_fewrel_5shot_seed2021.yamlruns/p0_shared_prompt/fewrel_5shot/seed_2021/metrics.jsoncompleted_real
E0082026-11-15P1 Oracle PromptFewRelTrack A (Protocol v1 8x10)0 (rehearsal-free)2021CIL: 9.84%, Proto: 70.14%, TIL: 82.75%85.71% (Linear) / 8.36% (Proto)100% (Oracle)configs/p1_oracle_prompt_fewrel_5shot_seed2021.yamlruns/p1_oracle_prompt/fewrel_5shot/seed_2021/metrics.jsoncompleted_real (Oracle Upper Bound)
E0092026-11-21P2a Centroid Cosine RouterFewRelTrack A (Protocol v1 8x10)0 (rehearsal-free)2021Proto: 59.28%, Routed-Gated: 59.35%, AIA: 69.71%11.91%64.69% (AIA: 78.23%)configs/p2a_centroid_router_fewrel_5shot_seed2021.yamlruns/p2a_centroid_router/fewrel_5shot/seed_2021/metrics.jsoncompleted_real (Colab CUDA, Gap Closed: 37.69%)
E0102026-11-21P2b Learned MLP RouterFewRelTrack A (Protocol v1 8x10)0 (Gaussian feature replay)2021Proto: 56.04%, Routed-Gated: 46.25%, AIA: 67.45%14.51%50.85% (AIA: 67.75%)configs/p2b_learned_router_fewrel_5shot_seed2021.yamlruns/p2b_learned_router/fewrel_5shot/seed_2021/metrics.jsoncompleted_real (Colab CUDA, Gap Closed: 18.56%)
E0112026-11-21P3 Soft Top-K Prompt RouterFewRelTrack A (Protocol v1 8x10)0 (rehearsal-free)2021Proto: 55.50%, Top-1 Gated: 59.25%, AIA: 66.84%15.13%Top-1: 64.69%, Top-2: 81.41% (AIA: 90.58%)configs/p3_soft_router_fewrel_5shot_seed2021.yamlruns/p3_soft_router/fewrel_5shot/seed_2021/metrics.jsoncompleted_real (Colab CUDA, Gap Closed: 19.86% / 37.11%)

Repository structure đề xuất

thesis/
  data/
    raw/
    processed/
    task_orders/
  baselines/
    conpl/
    cpl/
    sckd/
    wave/
  src/
    models/
    prompts/
    router/
    prototypes/
    evaluation/
  configs/
  scripts/
  results/
    raw/
    aggregate/
    figures/
  paper_notes/
  weekly_reports/
  thesis/