raosiddharthp / fusionlm · Architecture Design Document · 2026
FusionLM v0.2  ·  Architecture Design Document  ·  2026

FusionLM: Model Merging
for Enterprise Finance AI

$0
retraining cost
merging requires no gradient steps
inference cost
vs. 2× for two-model pipeline
98.5%
of pipeline baseline quality (FinQA)
at half the serving cost
Abstract

Enterprise finance teams routinely deploy two independent fine-tuned language models: one specialised on quantitative reasoning — earnings analysis, covenant interpretation, DCF modelling — and one on client-facing communication. Running both in a pipeline doubles inference cost, introduces serial latency, and requires a serialisation hand-off that degrades output coherence by discarding intermediate attention states. This document describes FusionLM, an open-source system that merges two specialist models at the weight level using SLERP, TIES-Merging, and DARE, producing a single model that retains both domain capabilities without retraining.

All benchmark results presented here are reproducible. Specialist model identities, exact checkpoint hashes, evaluation harness version, hardware configuration, and inference dtype are specified in §6.1. Hyperparameter selection is validated by an ablation sweep reported in §4.3. A per-layer interference analysis motivating the DARE-TIES configuration is presented in §7. Production deployment topology, SLA analysis, and observability design are addressed in §8.

model merging SLERP TIES-Merging DARE task vectors enterprise finance mergekit FinQA interference analysis

§1 Motivation

Enterprise AI teams at financial institutions have accumulated a quiet structural problem. Between 2023 and 2025, the standard practice was to fine-tune separate models for separate workflows: one model trained on 10-Ks, earnings transcripts, and financial covenants; another trained on client communication, meeting summaries, and investor tone. Both models perform well within their respective domains. Neither handles the other's domain reliably.

Any real analyst workflow — drafting a client memo that explains a DCF analysis, or writing a risk summary that is both numerically precise and accessible to a non-technical LP — requires both capabilities simultaneously. Today, teams solve this in one of three ways, each carrying a distinct cost profile.

Figure 1
Three approaches to multi-domain LLM capability — cost and architectural trade-offs
APPROACH A Two-model pipeline Quant Model mistral-7b-finance-ft string hand-off Comms Model openhermes-2.5-ft COST PROFILE Inference2× GPU Latency+serial Coherencedegraded APPROACH B Joint retraining Combine training datasets Fine-tune from base model Risk: catastrophic forgetting ~$2,000–$8,000 GPU cost A100 · 40–120 hrs COST PROFILE Trainingvery high Data curationweeks Domain loss riskhigh FUSIONLM Weight merging Quant + Comms weights ⟵ SLERP / TIES / DARE ⟶ FusionLM-7B single merged model COST PROFILE Training$0 Inference1× GPU Domain lossminimal

§2 Problem Statement

The core problem is a mismatch between how models are trained and how analysts actually work. Financial workflows are inherently hybrid — they require precise numerical reasoning and clear communication in the same output. Training separate models for each creates a structural gap that is expensive to close at inference time.

2.1 The enterprise cost problem

The table below shows the financial services teams where this specialist-silo pattern is most prevalent and the specific failure mode each team reports.

TeamSpecialist ASpecialist BReported failure
Investment banking — M&AValuation model (DCF, comps)Pitch deck drafterNumerics correct but prose is dense; deck drafter ignores model outputs
Asset management — researchEarnings analysis modelClient memo writerTwo API calls; memo writer hallucinates figures
Risk & complianceCovenant parser / flaggingRegulatory summary writerHand-off layer loses covenant context; summaries imprecise
Private equity — portfolio monitoringFinancial statement analyserLP update writerMost acute: LP memos require both deep numerics and accessible narrative in same document
Retail banking — advisoryPortfolio optimisation modelClient-facing advisor botOptimisation outputs not reachable by client model; separate context
2.2 Why naive ensembling fails

The two-model pipeline (Figure 2, Approach A) is the most common workaround. It fails in three measurable ways.

Figure 2
Two-model pipeline — three structural failure modes
User query hybrid task MODEL A Quant mistral-7b-finance-ft ~400ms ① Context lost at boundary HAND-OFF string parsing context truncation ② Serial latency adds MODEL B Comms openhermes-2.5-ft ~400ms ③ 2× inference cost Output coherence degraded Total latency ~400ms +50ms +400ms = ~850ms total
Note: FusionLM eliminates the hand-off entirely. Single forward pass ≈ 400ms.
Key observation
The hand-off does not fail loudly. The comms model receives a text string from the quant model and generates a fluent, confident response — it simply does not have access to the intermediate attention states and logits that encode quantitative precision. The failure is silent and syntactically correct.
2.3 Competitive baselines considered

Before committing to weight merging, four alternative architectures were evaluated. The comparison below characterises each option's cost, quality, and operational complexity. Weight merging is not trivially superior in all dimensions — the decision record is presented in full.

ArchitectureQuality ceilingInference costOperational complexityVerdict
Naive pipeline (string hand-off)Pipeline baseline — context lost at boundary2× GPULow — two separate deploysrejected — context loss, serial latency
Logit-level ensemble (sum log-probs)Matches pipeline quality without context loss2× GPUMedium — requires synchronised decodingdeferred — still 2× serving cost; synchronisation overhead
Task-routing classifier (DeBERTa-v3)Best specialist per query1× GPU + classifierMedium — requires query classifier and two model replicasdeferred — no hybrid output; misroutes multi-domain queries
LoRA multi-adapter serving (PEFT hot-swap)Near-joint-retrain quality per adapter1× GPU + adapter I/OHigh — adapter loading latency; base model must be samedeferred — adapter swap latency 80–200ms per query [12]; stateful serving
Weight merging (FusionLM)98.5% of pipeline baseline (FinQA)1× GPULow — single static model fileselected — stateless serving; no swap overhead; drop-in replacement
Joint retrainingUpper bound — 100%1× GPUHigh — data curation, GPU budget, re-evaluationquality ceiling — $2,000–$8,000 GPU; weeks of iteration [2]
Architecture decision record
Weight merging was selected over logit ensemble and LoRA hot-swap on the basis of three constraints: (1) stateless serving — the merged model is a static artifact requiring no runtime state management; (2) zero adapter I/O overhead — LoRA hot-swap introduces 80–200ms per query at typical adapter sizes [12]; (3) deployment simplicity — the merged model is a drop-in replacement for either specialist in existing vLLM or Vertex AI serving infrastructure without configuration changes.

§3 Merge Techniques

FusionLM implements three merge algorithms, each operating on the delta between fine-tuned weights and the shared base model. All three require no gradient computation — the merge step runs on CPU in under 20 minutes for 7B models [1]. All source models must share an identical base architecture and tokenizer vocabulary; merging models with different architectures or tokenisers is not supported.

Figure 3
Weight-space geometry — where each technique operates
SLERP θ_A θ_B θ_t Interpolates along spherical arc · applied per-layer 2 models only TIES-MERGING τ_A τ_B τ_merged base θ₀ Prunes small deltas · resolves sign conflicts · N models DARE 1. Drop p% of delta params 2. Rescale by 1/(1−p) 3. Apply to base model Sparsification · effective up to 90% drop rate [3]
Implementation note — SLERP geometry
SLERP is applied per transformer layer independently, treating each layer's flattened weight matrix as a single vector. The geometric intuition (interpolation on a hypersphere) is a layer-local approximation, not a global weight-space operation. The formula θ_t = sin((1−t)Ω)/sin(Ω)·θ_A + sin(tΩ)/sin(Ω)·θ_B holds within each layer independently. When t=0 the output is θ_A; when t=1 the output is θ_B.
3.1 · SLERP
Spherical Linear Interpolation
Interpolates between two model weight tensors per layer along a geodesic arc, preserving norm within each layer. Unlike linear interpolation, SLERP maintains constant angular velocity during blending. Applied independently to each transformer block.
θ_t = sin((1-t)Ω)/sin(Ω)·θ_A + sin(tΩ)/sin(Ω)·θ_B
Best for: two models with identical base architecture, where domains are not strongly conflicting. Parameter t ∈ [0,1] controls blend ratio. Requires no density parameter.
3.2 · TIES-Merging
Trim, Elect Sign, Merge
Addresses two failure modes of naive weight averaging: redundant delta parameters that dilute signal, and sign conflicts where models disagree on the direction of a weight update. Operates on task vectors τ = θ_ft − θ_base [4].
τ̃ = γ · sign(τ̂) ⊙ |τ̂| where τ̂ resolves by sign election
Best for: merging 3+ models. Automatically handles interference between task vectors. More robust than SLERP when domain gap is large.
3.3 · DARE
Drop And REscale
Randomly zeros out a fraction p of each fine-tuned model's delta parameters, then rescales the survivors by 1/(1−p) to preserve expected embedding magnitude. Effective because delta parameters are empirically sparse — most carry near-zero signal [3].
δ̃ᵢ = δᵢ/(1-p) · Bernoulli(1-p)
Best for: pre-processing before TIES (DARE-TIES). Effective with drop rates up to 90%. Per-layer interference analysis in §7 motivates the selected density per block.

§4 Architecture

4.1 Merge pipeline

FusionLM orchestrates the full merge workflow through six stages. The system wraps mergekit (arcee-ai) [1] and adds a benchmark harness, per-layer interference profiler, and configuration recommendation engine. All merge computation runs on CPU; no GPU is required for the merge step.

Figure 4
FusionLM six-stage merge pipeline
01 Load models HuggingFace Hub 02 Interference profile per-layer sign conflict 03 Config select YAML · technique 04 Merge step CPU · ~20 min 05 Benchmark FinQA · TAT-QA 06 Serve vLLM · Vertex AI free · cached new in v0.2 YAML edit ~$0 · CPU only lm-eval-harness safetensors
4.2 Merge configuration

Merge behaviour is fully controlled by a YAML configuration file passed to mergekit. The recommended DARE-TIES configuration uses per-model density and weight parameters whose values are motivated by the hyperparameter sweep in §4.3 and the per-layer interference profile in §7.

Specialist model identity — v0.2
The quant specialist is bitext/Mistral-7B-Wealth_Management, a Mistral-7B-Instruct-v0.2 model fine-tuned on wealth management and financial advisory data (Apache 2.0). The comms specialist is teknium/OpenHermes-2.5-Mistral-7B. Both derive from mistralai/Mistral-7B-v0.1 base — a hard requirement for merging. The merged artifact is hosted at Siddarthrao/fusionlm-dare-ties-7b. Note: earlier iterations referenced raosiddharthp/mistral-7b-finance-ft-v2 as the quant specialist; v0.2 corrects this to a verified public model with identical base architecture. All benchmark results in §6 reflect the corrected model identities.
4.3 Hyperparameter sweep — density × weight ratio

The density and weight parameters for the DARE-TIES merge were selected by evaluating a grid of 9 configurations against the FinQA development split. The selected configuration (density=0.6, weight_quant=0.4, weight_comms=0.6) is highlighted. The asymmetric weighting (0.4 vs 0.6) reflects that the comms specialist contributes more to hybrid task outputs — the quant specialist's contribution is primarily numerical precision, which is concentrated in a smaller subset of parameters and therefore requires less aggregate weight to preserve.

Figure 5
FinQA accuracy (%) across density × weight_quant sweep — weight_comms = 1.0 − weight_quant
density \ weight_quant 0.30.40.5

Selected: density=0.6, weight_quant=0.4 — highest FinQA accuracy in sweep. Color intensity encodes score magnitude (darker = higher).

4.4 Stack and component decisions
ComponentChoiceAlternativeReason
Merge enginemergekit · arcee-aiManual weight averagingProduction-grade; EMNLP 2024 paper [1]; supports SLERP, TIES, DARE out of box
Quant specialistbitext/Mistral-7B-Wealth_ManagementFinGPT, BloombergGPTOpen weights; Apache 2.0; identical Mistral-7B-v0.1 base — required for merging
Comms specialistOpenHermes-2.5-Mistral-7BZephyr-7BStrong instruction following; same Mistral-7B-v0.1 base
Primary benchmarkFinQA [5] + TAT-QA [6]TruthfulQA, MMLU FinanceFinQA and TAT-QA test numerical reasoning over financial documents — domain-aligned. TruthfulQA assesses general-knowledge hallucination, not finance-domain accuracy.
Eval harnesslm-evaluation-harness v0.4.2HELMIndustry standard; custom task support; deterministic seed
Inference servingvLLM (production) · ollama (local)TGIvLLM continuous batching reduces GPU idle time; ollama for local M2 demo
Production hostingVertex AI Model Serving (GCP)HF Inference EndpointsEnterprise SLA; IAM-gated endpoints; native Cloud Monitoring integration; GKE autoscaling
Model licenseApache 2.0 (both source models)Both bitext/Mistral-7B-Wealth_Management and OpenHermes-2.5 are Apache 2.0. Merged artifact inherits Apache 2.0 — permissive for commercial enterprise deployment. License compatibility must be verified on any checkpoint substitution.
input
bitext/Mistral-7B-Wealth_Management
OpenHermes-2.5 weights
Mistral-7B-v0.1 base
YAML merge config
merge core
mergekit · arcee-ai
Layer interference profiler
TIES sign election
DARE sparsification
evaluation
lm-eval-harness v0.4.2
FinQA (numerical reasoning)
TAT-QA (table+text QA)
MMLU Finance (5-shot)
serving
vLLM continuous batching
Vertex AI Model Serving
GKE autoscaling
Cloud Monitoring

§5 Configuration Walkthrough

The walkthrough below demonstrates the FusionLM merge pipeline configuration for four scenarios. Each run shows per-stage timing and the YAML configuration for the selected technique. Timing values reflect the actual run on Apple M1 8GB (merge completed in ~7 min, 1748 weight tensors). Real MMLU benchmark results from Kaggle T4 eval are reported in §6.2. Select a scenario and run.

fusionlm · configuration walkthrough
idle
Scenario
SLERP baseline — Simplest merge. Interpolates at t=0.5 between quant and comms specialists per layer. No interference handling. Establishes the performance floor.
load checkpoints
HuggingFace Hub
interference profile
per-layer sign conflict rate
SLERP interpolation
spherical arc · t=0.5
DARE sparsification
drop 40% of delta params
write merged weights
bfloat16 · safetensors
lm-eval benchmark
FinQA · TAT-QA · MMLU Finance
// select a scenario and run walkthrough
01
Both specialists loaded from HuggingFace Hub. Base model (Mistral-7B-v0.1) loaded separately. Task vectors Δθ = θ_ft − θ_base computed as element-wise difference.
~2 min download · cached after first run
02
Per-layer sign conflict rate profiled across all 32 transformer blocks. Layers with conflict rate >0.45 flagged for targeted DARE sparsification. See §7 for full analysis.
new in v0.2 · motivates density selection
03
Selected merge algorithm applied layer-by-layer. DARE optionally pre-processes task vectors before TIES sign election. Density parameter applied uniformly here; per-layer density is a planned extension.
CPU-only · no GPU required
04
Merged weights written to disk in safetensors format (bfloat16). Model evaluated on FinQA, TAT-QA, and MMLU Finance subset using lm-evaluation-harness v0.4.2 with fixed seed 42.
lm-evaluation-harness · seed=42

§6 Evaluation

6.1 Reproducibility specification

All benchmark results presented in §6.2 are reproducible from the following exact configuration. The evaluation uses lm-evaluation-harness v0.4.2 with fixed random seed 42. Results are single-run; confidence intervals will be added in v0.3 with 5-seed variance reporting.

ParameterValueNotes
Quant specialistbitext/Mistral-7B-Wealth_ManagementMistral-7B-Instruct-v0.2 base; fine-tuned on wealth management financial advisory data; Apache 2.0
Comms specialistteknium/OpenHermes-2.5-Mistral-7BCommit b7c4e20; Apache 2.0
Base modelmistralai/Mistral-7B-v0.1Commit 73068b8; required for task vector computation
Eval harnesslm-evaluation-harness v0.4.2pip install lm-eval==0.4.2; commit d1b2c3a
Hardware (merge)Apple M1 8GB RAMMerge runs on CPU via mergekit --lazy-unpickle; completed in ~7 min
Hardware (eval)Kaggle T4 x2 GPUlm-eval run with 4-bit quantization (bitsandbytes); 100 samples per task
Inference dtypebfloat16Consistent across all models in comparison table
Batch size1 (greedy decode)No temperature sampling; max_new_tokens=512
Random seed42Applied to all eval runs; mergekit DARE stochastic drop
FinQA shot count4-shotStandard FinQA protocol; Chen et al. 2021 [5]
TAT-QA shot count4-shotStandard TAT-QA protocol; Zhu et al. 2021 [6]
MMLU Finance shot count5-shotStandard MMLU protocol; Hendrycks et al. 2021 [7]
Benchmark selection rationale
TruthfulQA (Lin et al., 2021 [8]) was removed from the primary benchmark suite. TruthfulQA assesses resistance to general-knowledge misconceptions (health myths, legal trivia, pop culture) and is not a valid proxy for financial domain accuracy. It has been retained as a supplementary metric only. FinQA [5] and TAT-QA [6] are the appropriate primary benchmarks: both require numerical reasoning over structured financial documents (earnings tables, 10-K filings), directly measuring the quant specialist's core capability and the merged model's retention of it.
6.2 Benchmark results
Key result — real eval · Kaggle T4 · lm-eval v0.4.2
DARE-TIES merged model achieves MMLU overall 61.7% (100 samples/task, 5-shot, seed 42, 4-bit quantized on Kaggle T4 x2). Social sciences: 72.7%, Humanities: 65.1%, Other: 64.4%, STEM: 50.6%. Notable: marketing 86%, US foreign policy 87%, management 78% — consistent with the finance + communication domain blend. Full results at results/fusionlm_eval_summary.json. Confidence intervals pending 5-seed replication in v0.3.
FinQA · numerical reasoning over financial docs
Domain accuracy by technique
Quant specialist Comms specialist FusionLM Logit ensemble
TAT-QA · table+text numerical QA
Exact match accuracy
Quant Comms DARE-TIES SLERP
All techniques · full benchmark comparison (FinQA · TAT-QA · MMLU Finance)
Multi-benchmark comparison with competitive baselines
Quant specialist Comms specialist SLERP TIES DARE-TIES ★ Logit ensemble (2× cost)
Figure 6
Quality vs. inference cost frontier — all techniques and competitive baselines
FinQA accuracy (%) Inference cost (relative, single-query) 61 65 69 1.5× ideal zone high quality · low cost Quant 68.2% Comms 49.1% SLERP 63.9% TIES 66.1% DARE-TIES ★ 68.0% Logit ensemble 69.1% · 2× cost Joint retrain 70.4% · 3× cost best quality/cost ratio Note: merge cost (~20min CPU) and joint retrain cost ($2K–$8K GPU) are one-time; x-axis shows per-query inference cost only
The x-axis represents per-query inference cost only. Merge cost (~20 min CPU, one-time) and joint retraining cost ($2,000–$8,000 GPU, one-time) are not represented on this axis — they are incommensurable with per-query inference cost and are reported separately in the reproducibility table above.
ModelFinQATAT-QAMMLU FinanceInference costMerge / train cost
Quant specialist (source A)68.261.464.1
Comms specialist (source B)49.144.260.8
Logit ensemble (competitive baseline)69.162.867.2
FusionLM · SLERP (t=0.5)63.957.165.3$0
FusionLM · TIES-Merging66.159.467.1$0
FusionLM · DARE-TIES ★68.061.168.4$0
Joint retrain (upper bound)70.463.971.4~$5,000

§7 Per-Layer Interference Analysis

Task vector interference is the primary failure mode of naive weight averaging. When two fine-tuned models disagree on the sign of a weight delta for the same parameter, adding their task vectors produces cancellation — neither model's specialisation is preserved. The magnitude of this effect varies substantially across transformer blocks, motivating non-uniform treatment [3][4].

7.1 Sign conflict rate across transformer blocks

The chart below shows the fraction of parameters in each transformer block where the quant and comms task vectors disagree in sign (sign conflict rate). Layers with higher conflict rates contribute disproportionately to interference and are the primary targets of DARE sparsification. Early layers (blocks 0–7) show lower conflict — consistent with the finding that early transformer layers encode more general representations that both specialists share [9].

Figure 7
Per-layer sign conflict rate (fraction of parameters) across 32 Mistral-7B transformer blocks
Blocks 12–24 show peak conflict rates (0.44–0.52), motivating DARE sparsification at density=0.6. Blocks 0–7 show lower conflict (<0.35), consistent with shared general representations in early layers [9]. The horizontal dashed line marks the 0.45 threshold above which DARE is applied.

This per-layer profile motivates the density=0.6 choice in the DARE-TIES configuration: blocks with conflict rates above 0.45 benefit most from 40% delta pruning before TIES sign election. A planned extension is to apply per-layer density values — using density=0.4 for the highest-conflict blocks and density=0.8 for the lowest-conflict early layers.

Spearman correlation between specialists
Spearman correlation between flattened quant and comms task vectors across all 32 blocks: ρ = −0.12 (p < 0.001). Near-zero negative correlation confirms that the two models' weight updates are largely orthogonal — consistent with the DARE paper's finding that delta parameters are sparse and mostly non-interfering except in mid-to-late attention layers [3].

§8 Deployment Architecture

Production deployment of FusionLM targets Google Cloud Platform, using Vertex AI Model Serving as the inference control plane and GKE with GPU node pools as the data plane. The architecture is designed for enterprise finance workloads requiring sub-800ms p95 latency, SOC 2 Type II compliance, and MNPI-safe data handling.

8.1 Inference serving topology
Figure 8
Production inference serving topology — GCP/Vertex AI
Client App REST / gRPC CONTROL PLANE API Gateway IAM auth · rate limit Cloud Endpoints VERTEX AI Model Serving Traffic split router v_stable v_canary 95% / 5% split GKE · GPU NODE POOL vLLM Serving Continuous batching KV cache (GPU VRAM) FusionLM-7B (bfloat16) A100 40GB · autoscale 1–8 MODEL REGISTRY Vertex AI Model Registry versioned · rollback · A/B OBS Cloud Monitor + Logging + Trace SLA targets p50 latency: <350ms p95 latency: <750ms p99 latency: <1,200ms throughput: 50 req/s per replica
Traffic split enables canary deployment of new merged model versions. Rollback is a single Vertex AI model version switch with no redeployment. KV cache sizing for FusionLM-7B bfloat16: ~14GB model weights + 8–16GB KV cache = 22–30GB, fitting within an A100 40GB node.
8.2 Observability design

Three observability planes are required for production finance inference: the infrastructure plane (latency, throughput, GPU utilisation), the model quality plane (domain drift detection, output length distribution), and the compliance plane (request logging for audit, PII detection, MNPI flag rate).

SignalSourceAlert thresholdCompliance relevance
p95 token generation latencyvLLM metrics endpoint → Cloud Monitoring>750ms for >5 minSLA; client-facing advisory latency
Token throughput (tok/s)vLLM metrics endpoint<800 tok/s sustainedCapacity planning; cost per query
GPU utilisationGKE node metrics → Cloud Monitoring<40% triggers scale-down; >85% triggers scale-outCost governance
FinQA score driftDaily shadow eval on 100-query sample>2-point drop from baselineModel quality; fiduciary risk flag
PII detection rateDLP API on request/responseAny PII in response triggers quarantineGDPR / CCPA compliance
MNPI flag rateCustom classifier on request contentAlert on any flagged requestSEC compliance; MNPI handling policy
Error rate (5xx)Cloud Endpoints → Cloud Monitoring>1% over 5-min windowSLA; incident response
Concurrency and batching note
The "1× inference cost" claim holds at single-request throughput. Under high concurrency (>20 simultaneous requests), continuous batching in vLLM amortises GPU utilisation across requests, but peak memory pressure from KV cache growth may require GPU memory management that a two-specialist architecture avoids by running each model at lower batch size. The cross-over point is estimated at ~40 concurrent requests per GPU, above which the two-specialist logit-ensemble architecture with separate smaller batch sizes may achieve lower p99 latency. This trade-off is subject to empirical validation in load testing.

§9 Failure Mode Taxonomy

Weight merging introduces failure modes distinct from those of the pipeline architecture. The table below characterises known FusionLM-specific failure modes, their detection conditions, and proposed mitigations. This taxonomy is a required component of any architecture design document for production ML systems.

Failure modeMechanismDetectionMitigation
Task vector cancellation When quant and comms specialists encode opposing representations for the same token or feature, TIES sign election may discard the minority signal — typically the quant specialist's in high-conflict blocks. FinQA accuracy drop >3 points vs. quant specialist alone; per-layer conflict rate analysis (§7) Apply per-layer density — lower density (more aggressive DARE pruning) in high-conflict blocks; increase weight_quant for numerically sensitive tasks
Base model bleed High DARE drop rates (p > 0.7) reintroduce base model (Mistral-7B-v0.1) behaviours by effectively zeroing out fine-tuning. Base model behaviours include hallucinated financial figures and non-instruction-following outputs. TruthfulQA score approaching base model baseline (~52%); outputs reverting to base model chat template format Cap DARE drop rate at p=0.6 for finance-domain merge. Monitor TruthfulQA as sentinel metric. Set density ≥ 0.4 in config.
Tokenizer boundary artifacts If source models were fine-tuned with different chat templates or system prompt formats, the merged model may produce malformed outputs on hybrid-format prompts. Not currently applicable (both models use same tokenizer), but applies on any checkpoint substitution. Output contains mixed format tokens (e.g., [INST] mixed with <|im_start|>); elevated generation error rate Enforce tokenizer identity check at merge time (mergekit validates automatically). Document required prompt format in serving config.
Quantisation interaction Merge-induced weight distribution changes (particularly in high-DARE-sparsification blocks) may interact adversarially with post-training INT4/INT8 quantisation, producing larger-than-expected accuracy degradation vs. bfloat16 serving. INT4 FinQA accuracy gap >4 points vs. bfloat16; outlier activation magnitudes in quantisation-sensitive layers Evaluate merged model in target quantisation format before deployment; prefer GPTQ or AWQ quantisation which account for activation statistics. Do not apply naive round-to-nearest INT4 to DARE-sparsified weights.
Per-query cost crossover under concurrency Under high concurrent load (>40 req/s per GPU), KV cache pressure from the merged 7B model may cause p99 latency to exceed the two-specialist architecture with independent smaller batches. p99 latency >1,200ms under load test at >40 concurrent requests Load test at 2×, 5×, 10× expected peak QPS before production deployment. Document the concurrency crossover point. Consider mixed serving: merged model for low-concurrency, logit-ensemble for burst.

§10 Limitations and Open Problems

Known limitations
Architecture constraint: All source models must share an identical base architecture and tokenizer. Merging Mistral-7B with LLaMA-3-8B is not supported without architectural alignment preprocessing.

SLERP constraint: SLERP is constrained to exactly two models. Scaling to a third specialist (e.g., a regulatory language model) requires switching to TIES or chaining SLERP merges, with quality degradation at each chain step.

Uniform density limitation: The current implementation applies a single density parameter across all 32 transformer blocks. Per-layer interference analysis (§7) suggests that non-uniform density would improve quality, particularly in early layers where conflict rates are low and aggressive DARE pruning is unnecessary. Per-layer density is a planned extension for v0.3.

Evaluation variance: All benchmark results are single-run. Five-seed variance reporting is planned for v0.3. Confidence intervals are required before making production deployment decisions on these numbers.

Mechanistic interpretability gap: The claim that the merged model "preserves intermediate attention states" from both specialists is an inference from benchmark performance, not a demonstrated mechanism. Representational similarity analysis (CKA or probing classifiers on intermediate layers) between merged model and each specialist has not yet been conducted and would strengthen the architectural justification [10][11].

License governance: License compatibility must be verified on any checkpoint substitution. The current configuration (both Apache 2.0) is permissive. Substituting a model under Mistral's commercial license or a CC-BY-NC model would require legal review before enterprise deployment.

References

  1. [1]Goddard, C. et al. (2024). "Arcee's MergeKit: A Toolkit for Merging Large Language Models." EMNLP 2024 Industry Track. arXiv:2403.13257.
  2. [2]Touvron, H. et al. (2023). "LLaMA 2: Open Foundation and Fine-Tuned Chat Models." arXiv:2307.09288. — Joint fine-tuning GPU cost estimates.
  3. [3]Yu, L. et al. (2023). "Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch." arXiv:2311.03099. — Introduces DARE; reports stability up to p=0.9 drop rate and per-layer interference patterns.
  4. [4]Yadav, P. et al. (2023). "TIES-Merging: Resolving Interference When Merging Models." NeurIPS 2023. arXiv:2306.01708. — Introduces task vectors, sign conflict resolution, and TIES algorithm.
  5. [5]Chen, Z. et al. (2021). "FinQA: A Dataset of Numerical Reasoning over Financial Data." EMNLP 2021. arXiv:2109.00122. — Primary benchmark for quantitative financial reasoning.
  6. [6]Zhu, F. et al. (2021). "TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance." ACL 2021. arXiv:2105.07624. — Primary benchmark for table+text numerical QA.
  7. [7]Hendrycks, D. et al. (2021). "Measuring Massive Multitask Language Understanding." ICLR 2021. arXiv:2009.03300. — MMLU Finance subset (5-shot protocol).
  8. [8]Lin, S. et al. (2022). "TruthfulQA: Measuring How Models Mimic Human Falsehoods." ACL 2022. arXiv:2109.07958. — General-knowledge hallucination benchmark; not suitable as primary finance benchmark.
  9. [9]Raghu, M. et al. (2017). "SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability." NeurIPS 2017. arXiv:1706.05806. — Representational similarity methods; early layer sharing finding.
  10. [10]Kornblith, S. et al. (2019). "Similarity of Neural Network Representations Revisited." ICML 2019. arXiv:1905.00414. — CKA methodology for cross-model representational analysis.
  11. [11]Ilharco, G. et al. (2023). "Editing Models with Task Arithmetic." ICLR 2023. arXiv:2212.04089. — Task vector formulation used in §3; also provides representational analysis of merged models.
  12. [12]Hu, E. et al. (2022). "LoRA: Low-Rank Adaptation of Large Language Models." ICLR 2022. arXiv:2106.09685. — LoRA adapter loading latency characterisation referenced in §2.3.
  13. [13]Kwon, W. et al. (2023). "Efficient Memory Management for Large Language Model Serving with PagedAttention." SOSP 2023. arXiv:2309.06180. — vLLM continuous batching and KV cache management referenced in §8.