AutoKeras integration for automatic neural network architecture search

Manual model architecture selection stretches launch by weeks and depends on one engineer's experience. We implement AutoKeras turnkey: from data preparation to a ready model with reproducible results. The experimentation cycle is reduced severalfold, and the team gets predictable quality metrics.
Frequently Asked Questions

AutoKeras: where manual architecture search breaks deadlines

Manual neural network architecture tuning looks like research but in practice becomes a project bottleneck.

The engineer tests one configuration after another: changes the number and width of layers, the way blocks are connected, restarts training, and compares metrics on a holdout set. One such cycle takes hours, and dozens of cycles are needed for a comparable result.

The cost of waiting falls on the product team. While the search is underway, the interface, integrations, and model usage scenarios remain stalled — the timeline for bringing the model into production shifts not by days but by weeks.

Worse, quality hinges on one specialist's experience: it is their intuition that decides which options even enter the search, and atypical but more accurate configurations are simply never considered.

The shortage of ML specialists amplifies the effect: the same engineer is needed for data preparation, error analysis, and neural network architecture search. The task queue grows, while architecture search remains a stage that can hardly be parallelized without losing context.

AutoKeras addresses exactly this dependency: manual model tuning is replaced by automatic search over a predefined space of options, where the quality criterion is a metric, not subjective judgment. Let's break down how this works in a project and what remains with the engineer.

Automated architecture search: what changes in model metrics

Architecture search in AutoKeras is not running a single model but a guided search: the number and type of blocks, layer width, activation functions, regularization strategies, and learning rate are tested within a given time budget.

The output is not a single network but a ranked list of configurations with validation metrics, from which you choose based on measurement, not intuition.

The first effect is a shorter tuning cycle. Manual search usually caps out at 8-12 options: the engineer physically cannot get through more.

Automated search tests dozens or hundreds of combinations on identical data splits within the same timeframe — the model training cycle shrinks from weeks to days, and the decision rests on comparison rather than habit.

The second is model quality on new data. We select not the best validation metric but the configuration with the smallest variance across cross-validation folds: it survives a change of season and dataset updates.

To do this, we fix the random seed, preprocessing order, and dependency versions — experiment reproducibility becomes a property of the process rather than the luck of a particular run.

The third is reduced team workload. Engineers stop manually running routine variants and focus on what solves the problem: labeling, features, and error analysis.

The ranked list of configurations and the search log remain in the project — the next iteration starts from accumulated measurements, not from scratch.

Architecture search modes: comparison of approaches

Automated architecture search is always a trade-off between model quality and compute budget. The wider the search space, the higher the chance of coming across a successful configuration, but the longer the search and the harder it is to reproduce the result later. Therefore, the mode is selected for the task, not "the most powerful one by default".

Option When it fits Limitations
Full automated search There is enough data, and there are no hypotheses about the model type The search runs for hours and days; the result is sensitive to labeling and dataset quality
Limited search space There is an understanding of the task class and acceptable model families Along with the boundaries, successful options that fall outside them are also cut off
Fixed template with fine-tuning of a pretrained model Little data, tight deadlines, predictability needed The quality ceiling is set by the preselected model and does not rise

In practice, AutoKeras covers the first two modes: it searches options within a given space and stops when the compute budget is exhausted.

We keep the third mode as a baseline — we compare everything the search finds against it, so that architecture complexity pays off rather than simply increasing training time.

Run parameters and randomness are fixed; otherwise, a repeated run yields a different result, and comparing approaches becomes meaningless.

AutoKeras implementation: stages of engineering work

Automated architecture search is not "run the search and take the best model." It pays off when the data and model quality metric are defined before the start: otherwise, AutoKeras optimizes the wrong criterion, and the best internal evaluation result is not confirmed on new data. That is why we implement automated search step by step.

Order of stages

  1. Data audit: volume and labeling, class imbalance, duplicates, leaks between dataset splits, availability of features at prediction time. Skipping this step means training the search on data that will not exist in production.
  2. Model quality metric: one primary metric and a threshold for acceptance into production. For imbalanced tasks, this is not accuracy but recall for the target class.
  3. Search scheme: architecture space, parameter ranges, time limit, and early stopping rule so the search does not proceed blindly.
  4. AutoKeras setup: search configuration, a log of every trial and its result, fixed randomness — the result becomes reproducible.
  5. Holdout validation: we run the model selected by validation on data that participated neither in training nor in architecture search.
  6. Comparison with baseline and handover: measurement against a simple model or the current heuristic, then configurations, retraining policy, and training for the client's team.

Each stage is closed with an artifact that can be rechecked — that is why the search can be repeated without us.

Implementation artifacts: configurations, schemes, policies

Implementation ends not with a demonstration of a trained model but with handing the client's team a set of artifacts that let the solution live without us.

A model without a search configuration and retraining policy degrades within a couple of months — and there is nothing left to reproduce a successful run. Therefore, acceptance includes not only a working prototype but also everything that describes its reproduction.

  • Architecture search configuration — files with the option space: which layer types and hyperparameter ranges AutoKeras searches, how many trials are allocated per model, by what criterion the best assembly is selected, and how the seed is fixed for repeatability.
  • Training pipeline scheme — where data comes from, where labeling and validation happen, how training and validation sets are formed, and at which step the model artifact is saved.
  • Data access rules — which service accounts read the dataset, where keys are stored, and who gets access to training results and intermediate feature exports.
  • Retraining policy — the metric degradation threshold and data drift signal that trigger a new cycle, the person responsible for launching it, cycle duration, and a check that the new version is not worse than the previous one.
  • Solution documentation — description of model inputs and outputs, restrictions by data type, known weaknesses, and instructions for running in a clean environment.
  • Infrastructure description — environment requirements, dependency list, deployment scheme, and rollback procedure to the previous model version.
  • Acceptance checklist — a set of tests and metrics your team uses to independently verify each new version before releasing it to production.

Each item is agreed upon with your engineers before handover: we review the configuration and policy together with those who will maintain them.

Case study: how we reduced the model tuning cycle from weeks to hours

The task was typical: churn prediction on tabular data with heterogeneous features.

Two engineers manually searched architectures — about 50 configurations over three weeks, while holdout quality "fluctuated" from run to run, and the best result was not reproducible on a repeat run.

We fixed the search procedure: the architecture and layer space, the time budget per experiment, a single selection metric, and the same cross-validation scheme for all candidates.

The search itself was delegated to AutoKeras — it builds and trains variants automatically and stops when new configurations stop improving the target metric.

Before: three weeks of work, ~50 manual configurations, holdout quality spread of 5-7 points, and rolling back to the previous model required manual reassembly.

After: 180+ configurations in one work shift, selection of the best model by holdout metric, the spread between repeat runs reduced to 1-2 points, and the error rate decreased by approximately 12%.

What remained with the engineers was what automated search does not replace: defining the metric, checking feature leaks between training and holdout sets, interpreting the result, and moving the selected architecture into the production environment.

These steps are what turn the search into a reproducible result that can be defended before the client.

How automated architecture search differs from manual tuning

Automated search does not think for the engineer: it searches configurations within a predefined space and compares them by holdout metric. Manual tuning starts from hypotheses about the data — class imbalance, signal nature, feature sparsity. It is not "smart versus manual" but search versus expert narrowing of the search area.

Automated search wins where there are many options and they need to be covered quickly: number and size of blocks, layer order, learning rate, regularization. AutoKeras builds and evaluates dozens of architectures overnight and keeps a log of trials — the result is reproducible.

It loses at the edges. With a small dataset, the search overfits to validation, and a formally specified metric rewards model behavior that the product does not need.

If custom processing or strict response time is required, the search space does not describe that operation, and the best found option is inferior to one assembled manually.

The engineer's role does not disappear but shifts: they define the search space and budget, choose the metric and validation scheme, monitor leaks between splits, and constrain options by memory and response time. Otherwise, the search diligently optimizes the wrong objective.

Interpretability remains with humans: the log shows which configurations won but does not explain why. Analysis of feature contribution and control runs without suspicious blocks show that the model learned a pattern, not a labeling artifact.

A working scheme is automated search as a first pass over a wide space, then manual refinement of the candidate and a repeat search in a narrowed area.

Technical concerns: limitations, data, quality control

We check concerns about data, overfitting, and reproducibility before work starts — otherwise automated architecture search with AutoKeras turns into a lottery. Below are answers to four questions that most often determine the project format.

How much data is needed for architecture search to produce a result?

The volume is set not by the library but by the task type: for tabular data, several thousand rows with explicit features work; for images, hundreds of examples per class with transfer learning.

During reconnaissance, we calculate quality on 60%, 80%, and 100% of the dataset and show the point where it plateaus — there it is clear where new data no longer adds accuracy, and the collection budget does not need to be inflated.

How do you control model overfitting?

The search uses a stratified holdout set, not the training set.

Each architecture is stopped when the validation metric has not improved for several epochs in a row, and we compare the result with a simple baseline model: if the search does not beat it with a margin, the baseline goes into production.

Will the result be reproducible in six months?

Yes. We fix random seeds, the environment manifest, and the search log with the parameters of every tested architecture. A repeat run on the same dataset yields the same top three models, with metric deviation of fractions of a percent.

How will the model get into the client's closed environment?

We export the best model to a format that is read by a standard runtime without the automated search library — it is needed only during the search stage.

We can run training on our side and leave inference inside the environment without an external network; we provide dependencies via a local package mirror so deployment does not require outside access.

Let's discuss the task: what data is needed to evaluate a solution

To come back with an estimate of the scope of work rather than general considerations, we need a slice of the task — not a full export and not access to the production environment.

An anonymized data sample, a description of the fields, and an understanding of which answer is considered correct are enough.

AutoKeras searches for the architecture and settings specifically on this sample, so the quality of the slice directly affects the accuracy of the estimate and how many stages implementation will require.

What to send before the first conversation:

  • anonymized data sample — several hundred records, including difficult and edge cases;
  • description of fields and their types: numbers, categories, text, images, time series;
  • target metric and its current value — what we will compare the model result against;
  • how the task is solved now: manually, by rules, with another tool;
  • where the model will run after launch and who uses its answers;
  • constraints on response time and the volume of data to be processed;
  • how the result is checked: who accepts or rejects an answer and by what criterion.

During the conversation, we agree on a stage plan: data preparation, architecture search, holdout validation, transfer to the production environment, and handover of the model to the client's team.

Describe the task and send what you have — we will come back with an estimate of the scope of work and an implementation plan.

AI Development Areas

Latest works

  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1393
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1368
  • B2B Advance company logo design
    B2B Advance company logo design
    815
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1139
  • AIDER company logo development
    AIDER company logo development
    1057
  • CRM development for Chasseurs
    CRM development for Chasseurs
    1152