AI Glossary / AI and machine learning / Intermediate

Multi expression programming

Definition

Multi expression programming is an evolutionary programming method that represents several candidate expressions within one linear chromosome. It evaluates those expressions and typically uses the best one to determine the chromosome's fitness during the search for a useful program.

What it means

In genetic programming, candidate programs are changed and selected through an evolutionary search. Multi expression programming, abbreviated MEP, uses a sequence of genes rather than requiring every candidate to be stored as one separate expression tree.

Each gene can represent an input, a constant or an operation that refers to earlier genes. As the sequence is evaluated, it builds several possible expressions. A later gene may combine results already represented by earlier genes.

The distinctive idea is that one chromosome can contain multiple potential solutions. This does not mean the method automatically combines them into an ensemble or that every encoded expression becomes part of the final deployed model.

How it works

The user specifies available inputs, constants, functions and an evaluation objective. An initial population of valid chromosomes is generated. Their expressions are evaluated on the task, and fitness guides selection.

Crossover and mutation produce new chromosomes while respecting the representation's validity rules. The search repeats for a chosen budget, retaining promising solutions. In symbolic regression, fitness might depend on prediction error, with additional controls for complexity if desired.

Backward references allow a chromosome to be evaluated in sequence. Syntactic validity does not ensure numerical safety, useful predictions or generalization, so implementations still need appropriate handling of operations and independent validation.

Three practical examples

  • A symbolic-regression experiment searches for an explicit formula relating measured inputs to an observed output.
  • A research project evolves classification expressions and compares their held-out performance with standard classifiers.
  • An optimization study evolves a heuristic scoring rule for selecting the next step in a combinatorial search.

Think of it this way

Think of a worksheet where each row either names an input or calculates something from earlier rows. Several rows contain possible answers, and the evaluator identifies the most useful one.

The analogy captures shared intermediate calculations and multiple candidates. Evolutionary search is not a human carefully designing each row, and the best worksheet answer on practice examples may still fail on new cases.

Worked example

One chromosome, several expressions

Consider this simplified chromosome: gene 1 is x; gene 2 is y; gene 3 adds genes 1 and 2; gene 4 multiplies genes 1 and 1; gene 5 adds genes 4 and 2.

It encodes x, y, x + y, x squared, and x squared + y. For the illustrative target z = x squared + y, the fifth expression matches the rule on all noiseless examples generated from that rule.

At x = 2 and y = 3, the five values are 2, 3, 5, 4 and 7. The target is 7. Evaluation would normally use many examples, not just this one, before choosing an expression.

This demonstrates representation, not a complete evolutionary run. A real search may find an expression that fits training data by chance, especially if many alternatives are explored. A separate test set remains necessary.

Illustrative case study

Fictional case: exploring a calibration formula

Willow Sensors, an invented engineering team, wants a compact formula for a laboratory calibration exercise. It compares MEP with a simple regression baseline, using the same training and validation split.

An evolved expression has low training error but behaves erratically outside the measured input range. Engineers restrict the intended operating range, inspect the formula and assess new measurements before deciding whether it is useful.

The case illustrates that an explicit formula is inspectable but not automatically trustworthy. It does not describe a certified sensor product or claim a real improvement in calibration accuracy.

Common misconceptions and mistakes

Multiple expressions in one chromosome do not mean multiple independent models are necessarily deployed. MEP is different from gene expression programming, despite the similar names. Evolutionary discovery is not evidence that a formula expresses a true physical law.

Syntactically valid programs can still contain unsuitable operations or unstable numerical behavior. Low training error can also conceal overfitting, excessive complexity and poor extrapolation.

Business use

MEP may interest businesses that need explicit formulas or compact heuristics rather than opaque predictions alone. Its value should be assessed against simpler baselines and the cost of evolutionary search.

Define acceptable operators and output ranges, separate training from evaluation, and inspect discovered expressions for stability. Include complexity and operational constraints where they matter. If the formula influences consequential decisions or controls equipment, use domain-specific validation before deployment. Keep the search configuration and random seeds so promising results can be reproduced. Interpretability comes from the actual expression's clarity, not merely from being able to print it.

People also ask

Is MEP a neural network?

No. It is an evolutionary program-representation and search approach.

Can one chromosome hold several answers?

Yes; that is a central feature of the representation.

Does the simplest-looking expression generalize best?

Not necessarily. Simplicity can help, but performance still needs independent testing.

Check your understanding

The best expression in a chromosome fits every training example. Has MEP established the underlying scientific law?

Answer: No. It has found an expression that fits those examples under the chosen search space. New data, domain reasoning and tests of stability are needed to support broader conclusions.

Related terms

  • Genetic programming
  • Symbolic regression
  • Evolutionary computation
  • Fitness function
  • chromosome
  • program synthesis

Learn next

Learn next how symbolic regression differs from fitting coefficients in a fixed equation. Then trace a short linear chromosome by hand and identify which intermediate expressions are reused and which gene supplies the selected output.

  • Symbolic regression

More in AI and machine learning

  • Monte Carlo integration - Monte Carlo integration estimates an integral or average by random sampling: draw points at random, evaluate the quantity at each, and let the sample...
  • Moral graph - A moral graph is an undirected graph constructed from a directed acyclic graph by connecting every pair of nodes that share a child and then removing arrow...
  • Moral outsourcing - Moral outsourcing is the shifting of responsibility for ethical judgment or harmful consequences onto an external person, organization or system.
  • Multi-class - Multi-class describes a classification setting where each item belongs to exactly one of three or more categories: a ticket routed to one of ten teams, a...
  • Multi-class classification - Multi-class classification is the task of assigning each item to exactly one category from three or more: routing a ticket to one of ten teams, tagging a...
  • Multi-label - Multi-label describes a setting where each item can carry several labels at once: a photo tagged beach and sunset and family, a ticket marked billing and...

Sources

Primary sources: Mihai Oltean, Multi Expression Programming: an in-depth description, https://arxiv.org/abs/2110.00367 ; classification methods, https://arxiv.org/abs/2203.13202 . Sections 2-4 of the primary in-depth description were consulted for backward references, expression decoding and best-expression fitness; the classification paper abstract was also consulted. Chromosome example and case are original.

Previous: Multi-document summarization Next: Multi-head attention

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer