Chapter 2 · Materials & the Environment

Ashby's Maps, Renewed

Train a small variational autoencoder on 22 materials, and material selection becomes a walk uphill through a continuous, learned map. Any performance index, one network.

1From charts to a learned space

Chapter 1 ended at a wall. An Ashby chart has two axes; a value function has as many objectives as we like but no picture; an eco-Ashby chart changes the axes but not their number. Each still asks a person to decide which properties to plot. Once a choice depends on three or more properties at once, reading charts becomes guesswork.

This chapter takes a different route. A variational autoencoder (VAE) compresses each material's properties into a point in a low-dimensional latent space and learns to decode any point of that space back into properties. The decoder is smooth and differentiable, so a performance index computed on its output can be maximised by gradient ascent. The chart is replaced by a search, and the same trained network answers any index built from its inputs.

2Method

Dataset

Twenty-two materials from the CES/Granta database, spanning seven families: composites, elastomers, foams, metals and alloys, polymers, natural materials and technical ceramics. Each entry has a Young's modulus E and a density \rho. Properties span many decades, so each is log-transformed and min–max normalised to [0,1]:

\tilde{x}_j = \frac{\log_{10} x_j - \min_k \log_{10} x_{k}}{\max_k \log_{10} x_{k} - \min_k \log_{10} x_{k}}.

A variational autoencoder for material properties

The encoder maps the two normalised properties through one fully connected layer of 250 ReLU units to the mean \mu and log-variance of a two-dimensional Gaussian. A latent code is sampled with the reparameterisation trick, z = \mu + \sigma \odot \varepsilon, and the decoder, a mirror image of the encoder with a sigmoid output, maps it back to properties. Training minimises the negative evidence lower bound:

\mathcal{L} = \underbrace{\lVert \tilde{x} - D(z) \rVert^2}_{\text{reconstruction}} \;+\; \beta\,\underbrace{D_{\mathrm{KL}}\!\left(q(z\,|\,\tilde{x}) \,\Vert\, \mathcal{N}(0, I)\right)}_{\text{regularisation}}, \qquad \beta = 4.5\times10^{-5}.

The small \beta, found by grid search, lets the network reconstruct accurately while keeping the latent space continuous. Training runs for 10 000 Adam iterations at a learning rate of 2\times10^{-3}.

Figure 2.1The network and its training. Left: two log-normalised properties pass through a 250-unit encoder to a two-dimensional Gaussian latent code, and back out through a 250-unit decoder. Right: training loss for the network used on this page. Even with β this small, the weighted KL term settles above the reconstruction error by the end of training: the network spreads the 22 codes widely and keeps the plane smooth between them.

The network on this page was re-trained in the browser-friendly form of the published recipe, so its numbers differ slightly from the original notebook. Across the 22 materials, the encode–decode round trip reproduces E with a mean error of — and \rho with —. The original study reported 5.5% and 2.8% (worst cases 17.4% and 8.4%). Both sets of errors are measured on the training materials; with 22 points, a held-out split would say little.

A continuous, differentiable material space

No family labels were given to the network, yet materials of the same family land next to each other in the latent plane. More importantly, every point of the plane, including the empty space between materials, decodes to a pair (E, \rho). The material space has become a continuous field.

Optimising the index in latent space

For an index M(E,\rho) = E^{a}/\rho, we minimise

f(z) = -\log M\big(D(z)\big) \;+\; \lambda\,\lVert z\rVert^2 \;+\; \mu \min_k \lVert z - z_k \rVert^2,

with Adam (step 0.05, up to 600 iterations) from 35 starting points on a grid over the latent plane, clamping codes to the observed range. The first penalty, \lambda = 10^{-3}, is the one of the original study. The second is added here to keep the walk near real materials, in the spirit of the vacant-space constraint of Yepes Llorente et al. Set \mu = 0 in the figure below to see why it is needed. The answer reported is the training material nearest to the best final code.

Figure 2.2Selecting a material by walking through latent space. Left: the 22 materials at their encoded positions, over a background decoded at every point of the plane. Click anywhere to start a gradient walk from there, or run the full multi-start search. Right: the same walk decoded onto a classical stiffness–density chart, with the guideline of the chosen index through the optimum. The walk runs live in your browser on the trained decoder.

3Two baseline cases, checked against the exact chart

Bar, stiffness-limited

For a tie, M = E/\rho. With the defaults of Figure 2.2, the multi-start search converges into the technical-ceramics corner of the latent plane, and the nearest real material is silicon carbide, which is also the exact winner on the chart. In the original study, with a slightly different network and no proximity penalty, the optimum decoded to \rho \approx 2\,704 kg/m³ and E \approx 313 GPa, nearest to silicon nitride, which the classical chart ranks a close second.

Beam and panel, deflection-limited

For a panel, M = E^{1/3}/\rho, the search walks into the natural-materials region and returns softwood pine, again matching the exact ranking. The beam index E^{1/2}/\rho is the delicate case. On this 22-material set silicon carbide beats pine by under 10%, and the in-browser search returns silicon carbide, the exact winner. The original study, with a different network, landed nearest to pine. When two candidates are that close, the latent search and the chart should both be read as a short list, not a verdict.

Drag the μ slider to zero and run the multi-start search again. The walks now leave the data. For the bar, the best walk ends at about 260 GPa and 1 540 kg/m³: five times stiffer than CFRP at the same density, a material that does not exist. Its nearest real neighbour is CFRP, so the reported answer changes too, and the readout flags the optimum as an extrapolation. The decoder is defined everywhere, but it is only trustworthy where it has seen data.

4Beyond two properties

The method's value appears when the index involves more properties than a chart can show. The study extended the VAE to the cases of the Ansys/Granta Performance Indices booklet, adding yield strength, shear modulus, thermal conductivity, expansion coefficient and cost as inputs, and compared the material nearest the latent optimum with the exact winner.The source text speaks of thirteen extended cases with eleven matches, while its table lists sixteen rows, fourteen of them matching. The table is reproduced here as published; the counts should be checked against the case-study notebooks.

CaseIndexExact-Ashby winnerVAE match

Where the method needs care

Thermal shock, with four properties (E, \sigma_y, \alpha, k), is the genuine failure. Data are scarce for that combination and the decoder extrapolates away from real materials, as in Figure 2.2 with μ at zero. Earlier runs with a fixed two-dimensional latent space produced unphysical extrapolations for three-property cases too. Setting the latent dimension equal to the number of properties fixed those cases.

5Final conclusion

Read the two chapters together as a lineage in four stages, each lifting a limit of the one before:

  1. The two-dimensional chart: one index, two properties, ranking by eye.
  2. The value function: many objectives, one score, no picture.
  3. The eco-Ashby chart: the same geometry with an environmental price on an axis.
  4. The latent space: any index over all the properties the network has seen, solved by search.

The next natural experiment is to put eco-indicators into the same latent space, which is exactly what Chapter 3 does with the Ecolizer database. Every index, learned or charted, still encodes one question and one failure mode. The network does not remove the need to choose that question well.

Table 2.1 · The 22-material dataset

FamilyMaterialρ (kg/m³)E (GPa)E decodedρ decoded

Contributions

Joseph Morlier posed the extension, supervised the study and supplied the extended 13-case notebooks. Almudena Cobo-Urios and Álvaro Silva-Vilela-Caridade developed the VAE methodology, the dataset preparation and the latent-space optimisation for the bar and beam cases. The narrative synthesis was drafted with Claude; the in-browser network, proximity penalty and interactive figures were built for this book.

Limitations

Reconstruction errors are training-set errors. The thermal-shock case does not reliably reproduce the exact ranking. The network on this page is a re-implementation and will not reproduce the original notebook's numbers digit for digit.