using-neural-architectures
Neural Architecture Decisions
Use this contract for the concrete task. Apply a short relevant check for a small change; expand investigation when the failure, risk or requested artifact warrants it. Resolve facts from the repository and runtime before imposing a process. Delegation is optional and should answer a bounded unresolved question.
Decision contract
Record task/modality, representative data, pretrained assets, target metric, compute/memory/latency budget and deployment constraints. Do not infer the best architecture from dataset size or trend alone. A pretrained model changes the data requirement compared with training from scratch.
- Include a simple or pretrained baseline and explain why a neural approach is needed for the task.
- Compare feasible alternatives using the same data/splits, training budget and evaluation protocol. Distinguish architectural effects from preprocessing, optimization and pretraining.
- Check input/output shape, inductive assumptions, receptive/context requirements, invariances and numerical behavior.
- For attention/sequence choices, measure context length, memory and hardware kernel support; asymptotic complexity alone does not predict runtime.
- For generative models, compare quality, controllability, task-specific speed and available pretrained/distilled models. Neither GAN nor diffusion is a universal real-time recommendation.
- For normalization and residual paths, test the architecture's actual stability/scale behavior. Depth thresholds and normalization family are hypotheses, not diagnoses.
- Record uncertainty and the experiment that would distinguish the leading choices. Explain resource/quality tradeoffs rather than claiming a universally best family.
Evidence and output
Produce a compact comparison/decision record: constraints, candidates and source versions, baseline, measured or estimated resource use, quality evidence, tradeoff and verification plan. For component repair, give the broken invariant and affected validation. Label unrun comparisons as proposals.