# Model development

We start with the frontline task and the compute resources available to perform it. We then compare precision and architecture choices, and evaluate the resulting models against a baseline.

## Two starting points

Serafina began with a commercially developed MoE model that we modified. Spark is our own model, built from the ground up with quantization and biomimetic design. That distinction matters: adapting an existing model and developing an original one give us different choices over its architecture and numerical representation.

[About the models →](https://lamedanalytics.com/models.html)

01

### Define

Set the task, device limits, and evaluation criteria.

02

### Reduce

Compare numerical precision against the baseline.

03

### Design

Investigate where computation can be selective.

04

### Evaluate

Measure quality and resource use together.

01

### Define the problem before changing the model

Specify the frontline task: what the model receives, what it should produce, and what counts as a useful result. Record the available memory, processing capacity, power budget, expected response time, and workload the device needs to sustain.

Establish a baseline and fixed evaluation data. Without those reference points, a smaller or faster variant is difficult to judge fairly.

#### Record

A task definition, a resource budget, a baseline, and a set of criteria for comparing candidate models.

02

### Find where precision can be reduced

Compare numerical settings on the same task and data. Record model size and memory use alongside task quality, then inspect the cases where outputs change.

The goal is to identify a useful trade-off. The smallest representation is not automatically the best choice if it introduces errors that matter to the task or lacks efficient runtime support.

#### Record

A comparison of precision settings with their quality, memory, and runtime implications.

03

### Investigate which computation is necessary

Study sparse connections and selective activity. Ask whether a model can use fewer active components for a given input while retaining the information needed to produce a useful output.

Keep the implementation in the comparison. Routing, scheduling, and memory access all have costs; a reduction in theoretical computation needs to translate into an observed improvement.

#### Record

An architecture comparison that includes both model behavior and the practical cost of executing it.

04

### Evaluate the complete candidate

Compare each candidate against the baseline using fixed evaluation data. Measure task quality, memory, and latency under stated hardware and software conditions.

Inspect failure cases as well as aggregate scores. A change that improves an average may still make some inputs less reliable.

#### Record

A record of the comparison, its limitations, and the next question to test. Evaluation may send the work back to an earlier stage.

## Designing an experiment

Keep the evaluation data and runtime fixed when testing a precision change. Otherwise it becomes difficult to tell which change caused the result.

This example shows the information we need to interpret a precision comparison.

### Example experiment record

Question

Can lower precision reduce memory while preserving task quality?

Reference

Baseline model and fixed evaluation inputs

Change

Numerical precision setting

Measurements

Task score, memory use, and inference latency

Context

Device, runtime, configuration, and observed failure cases

Next

[Our evaluation approach](https://lamedanalytics.com/evaluation.html)[→](https://lamedanalytics.com/evaluation.html)
