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?

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

Thành phầnSetting khởi tạo
Backbonebert-base-uncased hoặc backbone giống baseline cần reproduce
Inputsentence + marked head/tail entities
Max sequence length256
OptimizerAdamW
Encoder LR2e-5 nếu encoder trainable
Prompt/router LRbắt đầu 5e-4
Batch size16, dùng gradient accumulation nếu thiếu VRAM
Weight decay0.01
Warm-up10% optimization steps
Epochstối đa 10/task cho vòng debug
Gradient clipping1.0
Prompt length10 virtual tokens/component
Prompt top-k2
Router temperature0.1
Seeds2021, 2121, 2221, 2321, 2421
Runs1 seed debug, 3 seeds pilot, 5 seeds finalists

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

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/