Purpose
The purpose of Phase 3 is to give EMEP users a comprehensive toolkit for model merging. Linear Merge, SLERP, and Task Arithmetic work well for homogeneous models with aligned objectives, but real-world scenarios often involve redundant parameters, conflicting updates, and incompatible architectures. TIES trims redundant parameters before merging. DARE drops and rescales weights to reduce magnitude bias. DARE+TIES combines both benefits. Franken-Merge handles structural combinations where layer counts or widths differ. You also build validation infrastructure so that every advanced merge is tested before it enters the evolutionary pipeline in Phase 5.Entry Criteria
- Phase 2 exit criteria satisfied: TensorEngine, MergeEngine, Linear Merge, SLERP, Task Arithmetic, and MergeStrategy plug-in system are operational
- MergeStrategy plug-in system proven to load new strategies without engine restart
- Test suite from Phase 2 passes as regression baseline
- Literature on TIES, DARE, and structural merging reviewed and algorithm specifications documented
Exit Criteria
- TIES strategy trims low-magnitude parameters and resolves sign conflicts before merging (Yadav et al. 2023)
- DARE strategy randomly drops weights and rescales survivors to preserve expectation (Yu et al. 2023)
- DARE+TIES strategy applies TIES trimming followed by DARE dropping and rescaling
- Franken-Merge strategy combines structurally different models by aligning and splicing compatible substructures
- Merge validation framework runs automated checks on merged outputs: shape consistency, weight distribution, and sanity benchmarks
- All four strategies integrate with MergeEngine through the existing MergeStrategy plug-in system
- Regression tests for Phase 2 strategies continue to pass
Primary Components
Phase 3 extends the canonical components established in Phase 2:- MergeEngine: the orchestrator, now executing advanced strategies through the same pipeline it used for basic merges
- MergeStrategy: the plug-in abstraction, now hosting four additional implementations
- TensorEngine: the low-level layer, extended with sparse operations and structural alignment primitives needed by TIES, DARE, and Franken-Merge
- ModelCompatibilityAnalyzer: extended to support structural compatibility checks for Franken-Merge scenarios where layer shapes differ
- ArtifactStore: extended to store merge validation reports alongside merged checkpoints
Deliverables
Dependencies
Phase 3 depends directly on Phase 2:- Phase 2: Basic Merge Engine: provides TensorEngine, MergeEngine, MergeStrategy plug-in system, and the three baseline strategies that advanced methods extend or contrast against
Key Tasks
Track Phase 3 work in the project task registry: Typical Phase 3 tasks include:- Implement TIES parameter trimming with configurable magnitude threshold
- Implement TIES sign election and disjoint merging logic (Yadav et al. 2023)
- Implement DARE random weight dropping with configurable drop rate
- Implement DARE rescaling to preserve weight expectations (Yu et al. 2023)
- Compose DARE+TIES as a sequential strategy: trim first, then drop and rescale
- Implement Franken-Merge structural alignment: layer matching, width padding, and submodel splicing
- Build merge validation framework with shape checks, distribution tests, and quick benchmark inference
- Register all four strategies with MergeEngine via the MergeStrategy plug-in system
- Run regression tests to ensure Phase 2 strategies remain unaffected
- Document parameter tuning guidance for each advanced strategy
Risks
- Hyperparameter sensitivity: TIES and DARE performance depends heavily on threshold and drop-rate settings. Mitigate by providing sensible defaults and sensitivity analysis in documentation.
- Franken-Merge brittleness: Structural alignment may fail for radically different architectures. Mitigate by implementing graceful degradation and clear error messages when alignment is impossible.
- Validation overhead: Merge validation may become a bottleneck if it runs full benchmarks. Mitigate by tiering validation into fast sanity checks and optional deep evaluation.
Quality Gate
Phase 3 is complete when the following checklist is fully satisfied:- TIES reproduces published performance trends on a known model pair (Yadav et al. 2023)
- DARE reproduces published performance trends on a known model pair (Yu et al. 2023)
- DARE+TIES outperforms or matches both TIES and DARE individually on at least one test case
- Franken-Merge successfully combines two models with different layer counts without runtime errors
- Merge validation framework flags at least one injected failure case (e.g., shape mismatch)
- All Phase 2 regression tests pass with no changes to baseline strategy behavior
- Each advanced strategy is documented with parameters, constraints, and tuning guidance
- Memory and compute benchmarks establish resource requirements for each strategy