Upload /strategic-analysis.md with huggingface_hub
Browse files- strategic-analysis.md +124 -0
strategic-analysis.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Predator-Q Strategic Analysis: MoQ vs ASI-Evolved v2
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-06-24
|
| 4 |
+
**Context:** Phase 5 multi-benchmark validation found MoQ-4.0 (12.4 GiB) and ASI-Evolved v2 (14.4 GiB) are statistically tied on 6 code benchmarks (all McNemar p > 0.31, Bonferroni Ξ± = 0.0167). Question: which is actually better, and is ASI-Evolve worth using again?
|
| 5 |
+
|
| 6 |
+
## TL;DR
|
| 7 |
+
|
| 8 |
+
| Question | Answer |
|
| 9 |
+
|---|---|
|
| 10 |
+
| Is MoQ-4.0 truly superior? | **For this model at this BPW on code tasks: YES.** Same task performance, 2 GB smaller, simpler to build. |
|
| 11 |
+
| Was ASI a waste of time? | **Partially.** The 5+ LLM calls and 2 GB file premium weren't justified. The LLM did find real improvements (L64 nextn bf16, selective IQ4_NL) that are now incorporated. |
|
| 12 |
+
| Can ASI be used differently? | **YES β fine-tuning is where it shines.** Quantization is a narrow, mostly-solved search space. LoRA recipes, training schedules, and data mixtures are where LLM-guided search has much higher leverage. |
|
| 13 |
+
|
| 14 |
+
## MoQ vs ASI for Quantization: Why MoQ Wins Here
|
| 15 |
+
|
| 16 |
+
The kaitchup MoQ recipes are already strong local optima:
|
| 17 |
+
- Designed by experts (Waleed Ahmad + Benjamin Marie)
|
| 18 |
+
- Validated on multiple Qwen3.5 variants
|
| 19 |
+
- Beating them by 0.005 KL-div requires expensive search
|
| 20 |
+
- And even when you beat them on KL-div, the task-level win doesn't materialize (as we proved)
|
| 21 |
+
|
| 22 |
+
The reason ASI didn't move the needle here:
|
| 23 |
+
1. **The kaitchup recipe is well-designed.** A human expert had already iterated on it.
|
| 24 |
+
2. **KL-div is the wrong optimization target for tasks.** A model can be more F16-like in logit distribution without being more correct on outputs.
|
| 25 |
+
3. **The LLM only found ~0.5% improvement** (after the first iteration's easy win on L64 nextn). 19 more iterations = nothing meaningful.
|
| 26 |
+
|
| 27 |
+
## Where ASI-Evolve Shines: Fine-tuning
|
| 28 |
+
|
| 29 |
+
The 5 LoRA specialists in MoL-Coder (L0_chat, L1_codegen, L2_debug, L3_review, L4_refactor) had **dramatically different outcomes**:
|
| 30 |
+
- L1_codegen: 8/10 HumanEval (80%) β +10pp over base
|
| 31 |
+
- L0_chat: 4/10 (40%) β **HURT** by 30pp
|
| 32 |
+
- L2_debug: 1/10 (10%) β **destroyed** the model
|
| 33 |
+
- L3_review: 4/10 (40%) β hurt
|
| 34 |
+
- L4_refactor: 4/10 (40%) β hurt
|
| 35 |
+
|
| 36 |
+
**4 of 5 LoRAs actively hurt performance.** This is exactly the kind of problem where ASI-Evolve could help:
|
| 37 |
+
- The LLM could analyze the failed LoRAs and find why (probably data quality issues)
|
| 38 |
+
- It could search for better LoRA hyperparameters per task (rank, alpha, target modules)
|
| 39 |
+
- It could find optimal data mixtures (which subset of HumanEval-style data works)
|
| 40 |
+
- It could find optimal LR schedules (which decay function, warmup steps)
|
| 41 |
+
|
| 42 |
+
### Concrete ASI-for-LoRA applications
|
| 43 |
+
|
| 44 |
+
| Application | Search space | LLM value | Time/cost |
|
| 45 |
+
|---|---|---|---|
|
| 46 |
+
| Per-LoRA rank/alpha optimization | {16, 32, 64, 128, 256} Γ {16, 32, 64, 128} | **High** β non-obvious which combo per task | ~5-10 LLM calls Γ 4 tasks = $5-10 |
|
| 47 |
+
| LoRA target module search | {q,k,v,o}, {q,k,v,o,gate,up,down}, etc. | **High** β surprising what helps | ~5-10 LLM calls = $5-10 |
|
| 48 |
+
| Training data mixture | Code-only, code+docs, code+chat, code+QA, etc. | **Very high** β explains L0/L2/L3/L4 failure | ~5-20 LLM calls = $5-20 |
|
| 49 |
+
| LR schedule search | Cosine, linear, constant, WSD, etc. | **Medium** β well-known options | ~3-5 LLM calls = $3-5 |
|
| 50 |
+
| Optimal prompt format | Find the chat template that maximizes task accuracy | **Medium** β needs empirical feedback | ~5-10 LLM calls = $5-10 |
|
| 51 |
+
| Synthetic data generation | Have LLM write training examples | **High** β fully LLM-native task | ~20-50 LLM calls = $20-50 |
|
| 52 |
+
|
| 53 |
+
**Compare to quantization search:**
|
| 54 |
+
- ~20 LLM calls to find ~0.5% KL-div improvement β **0% task improvement** β not worth it
|
| 55 |
+
- 5-10 LLM calls per LoRA to find data mixture that fixes a broken LoRA β could be **+30pp improvement** β huge leverage
|
| 56 |
+
|
| 57 |
+
The math: if ASI-for-LoRA turns 1 broken LoRA into a winning one, that's worth 5x the entire quantization experiment.
|
| 58 |
+
|
| 59 |
+
## Recommendation
|
| 60 |
+
|
| 61 |
+
**For quantization (where we are now):**
|
| 62 |
+
- **Use MoQ-4.0 directly.** Don't bother with ASI-Evolve.
|
| 63 |
+
- The kaitchup recipe is a strong local optimum. Marginal KL-div wins don't translate to task wins.
|
| 64 |
+
- If you need to push further on quantization, use **heuristic search** (random per-tensor swaps, hill-climb on KL-div). It's free (no LLM cost) and might find 1-2% more, but probably still won't beat MoQ-4.0 on tasks.
|
| 65 |
+
|
| 66 |
+
**For fine-tuning (next steps):**
|
| 67 |
+
- **USE ASI-Evolve aggressively.** This is where it has real leverage.
|
| 68 |
+
- Specifically for the broken L0/L2/L3/L4 LoRAs: have ASI search for the right data mixture, target modules, and hyperparameters
|
| 69 |
+
- Build a 6th MoL "router LoRA" that learns which expert to pick β could be a 2-stage classifier + LoRA, where ASI searches the classifier architecture
|
| 70 |
+
- Budget: 50-100 LLM calls for fine-tuning searches = $50-100. Easily justified by 1 LoRA going from broken to working.
|
| 71 |
+
|
| 72 |
+
**For the overall Predator project:**
|
| 73 |
+
- Predator-Q is done (MoQ-4.0 is the canonical winner)
|
| 74 |
+
- Next: Predator-Q + MoL-Coder, where we use MoQ-4.0 as the base and apply ASI to fine-tuning tasks
|
| 75 |
+
- Estimated budget for MoL-Coder with ASI: $200-300 (L1 already done; fix 4 broken LoRAs + train router; ASI helps find recipes)
|
| 76 |
+
|
| 77 |
+
## Anti-Pattern: Using ASI for KL-div Search
|
| 78 |
+
|
| 79 |
+
The Phase 5 result is generalizable:
|
| 80 |
+
|
| 81 |
+
> **Optimizing for a proxy metric (KL-div, perplexity, log-likelihood) gives you a model that's better on the proxy, not necessarily better on tasks.**
|
| 82 |
+
|
| 83 |
+
The proxy is only useful when:
|
| 84 |
+
- The proxy is well-correlated with the task (it isn't, past a certain point)
|
| 85 |
+
- The optimization cost is much less than the alternative
|
| 86 |
+
- You have no better signal
|
| 87 |
+
|
| 88 |
+
For quantization, the alternatives are:
|
| 89 |
+
- **Heuristic search** (free, no LLM, ~1% improvement ceiling)
|
| 90 |
+
- **Direct expert recipe** (what kaitchup did β best ROI for this problem)
|
| 91 |
+
- **Multi-benchmark validation** (what we just did β but this is evaluation, not search)
|
| 92 |
+
|
| 93 |
+
For fine-tuning, the alternatives are:
|
| 94 |
+
- **Manual hyperparameter tuning** (slow, error-prone)
|
| 95 |
+
- **Optuna / random search** (works but no domain knowledge)
|
| 96 |
+
- **ASI-Evolve with LLM** (incorporates prior knowledge of training, fast iteration on structured search spaces)
|
| 97 |
+
|
| 98 |
+
**ASI is much better suited to fine-tuning than quantization because:**
|
| 99 |
+
1. Fine-tuning search spaces are larger and more combinatorial
|
| 100 |
+
2. LLM has more relevant prior knowledge (training tricks, optimizer choices)
|
| 101 |
+
3. Each iteration has more leverage (recipe change β measurable capability change)
|
| 102 |
+
4. The cost of LLM calls is small relative to training cost
|
| 103 |
+
|
| 104 |
+
## Files
|
| 105 |
+
|
| 106 |
+
- `docs/results/predator-q-multi-benchmark-validation-2026-06-24.md` β full multi-benchmark report
|
| 107 |
+
- `docs/results/charts/*.png` β comparison charts
|
| 108 |
+
- `~/work/predator/scripts/run_eval.py` β unified multi-benchmark eval harness
|
| 109 |
+
- `~/work/predator/scripts/compare_results.py` β McNemar + Bonferroni comparison
|
| 110 |
+
- `~/work/predator/asi_evolve/experiments/p5a/` β MoL LoRA recipe ASI-Evolve scaffold (for next phase)
|
| 111 |
+
|
| 112 |
+
## Decision Matrix for Future ASI Use
|
| 113 |
+
|
| 114 |
+
| Task | Use ASI? | Why |
|
| 115 |
+
|---|---|---|
|
| 116 |
+
| Per-tensor quantization recipe | **No** | KL-div proxy doesn't correlate with tasks; expert recipes are already near-optimal |
|
| 117 |
+
| LoRA hyperparameters | **Yes** | Combinatorial, LLM has strong priors, task metric is direct |
|
| 118 |
+
| LoRA data mixture | **Yes** | Explains our 4 broken LoRAs; high-leverage |
|
| 119 |
+
| Training schedule | **Maybe** | Few choices, low ceiling, but LLM might know tricks |
|
| 120 |
+
| LoRA target modules | **Yes** | Non-obvious combinations, LLM can search well |
|
| 121 |
+
| Router architecture | **Yes** | 2-stage classifier+LoRA, LLM can suggest the design |
|
| 122 |
+
| Synthetic data generation | **Yes** | Pure LLM task, huge leverage |
|
| 123 |
+
| Distillation prompt design | **Yes** | LLM can iterate on prompt templates empirically |
|
| 124 |
+
| KL-div search (any) | **No** | Proven by Phase 5 to not translate to task wins |
|