Independent research index. Livestock Library today is an Australian livestock-software business. We are not affiliated with the former Livestock Library repository that the Sheep CRC and Beef CRC built and AGBU managed, which closed in 2026. Summaries here are our own writing; the research belongs to its authors and publishers. About this index
Research summary · AAABG proceedings

Large mixed model estimation: why memory limits forced new strategies

A model with 6 traits, 200,000 records and 100 variance parameters can demand 960 Mbytes just for one working matrix, according to Gilmour and Thompson. That single figure explains why the paper looks for ways of estimating large mixed models without simply buying ever bigger computers, at a time when animal breeding software was being pushed toward increasingly complex genetic evaluations.

By the Livestock Library teamPublished 23 November 20267 min read

The paper

Options for estimating variance components in large mixed models

Authors
A.R. Gilmour, R. Thompson
Published
2003
In
Proc. Assoc. Advmt. Anim. Breed. Genet. 15
Collection
AAABG proceedings

We know of no online copy of this paper today. A university or state library that holds the Proceedings of the Association for the Advancement of Animal Breeding and Genetics is the place to ask.

Reference: Gilmour, A.R. and Thompson, R. (2003) Options for estimating variance components in large mixed models. Proc. Assoc. Advmt. Anim. Breed. Genet. 15.
Server computer racks representing the computing memory limits behind estimating large mixed models
Illustration generated for this summary; not a photograph from the study.
In this summary
  1. Why bigger genetic models were becoming a problem
  2. Hardware and file storage as partial answers for large mixed models
  3. Cyclic maximisation as a way to trade processing time for memory
  4. Imputation: borrowing ideas from Gibbs sampling
  5. Refinements the authors flag as still open
  6. What this means for software handling genetic evaluations
  7. Sources and further reading
  8. Questions

Why bigger genetic models were becoming a problem#

The paper opens by describing how improvements in computing methods, especially the Average Information or AI algorithm, had let researchers push toward bigger, more complicated models applied to larger collections of records. That progress brought its own headaches. The AI approach does not automatically keep unstructured variance matrices positive definite, a mathematical property needed for the results to make practical sense, and new approaches were required where this had to be enforced.

A second and, for this paper, more central problem was that models and datasets kept swelling until computers simply ran short of memory. Gilmour and Thompson weigh up the choices available: trim the dataset, use a simpler model, upgrade to more powerful hardware, shift intermediate workings onto disk storage, or invent an altogether new way of computing. Since the authors preferred to keep all the data within a workable model rather than throw information away, they concentrate on the last three of these choices, with particular attention to an approach they term imputation.

The setting for this work is ASReml, software built around the AI algorithm described in earlier work by Gilmour, Thompson and Cullis, and documented in the ASReml user guide. The authors frame their discussion as a review of options for making that software capable of handling bigger jobs, rather than as a single experiment with one tidy result. This paper was published among the AAABG conference proceedings for 2003, a collection shared with other work from the Association for the Advancement of Animal Breeding and Genetics community.

Hardware and file storage as partial answers for large mixed models#

Buying more powerful hardware is the most direct response to memory shortages. Most machines at the time ran 32 bit operating systems, limiting addressable memory to 2 Gigabytes, and the paper notes that moving to 64 bit hardware and software, or to parallel computing, offered a way around this ceiling. ASReml was already available for 64 bit machines from several manufacturers. The authors caution that this does not solve everything, since memory needs grow roughly with the square of how large the problem becomes, and machines of that capacity were not yet common.

Holding intermediate results on file storage rather than in active memory is the second option discussed. Disc space costs far less than memory, and planning file access carefully can work out faster overall than letting the operating system juggle memory on its own. ASReml normally keeps intermediate vectors and matrices active in memory while the raw data itself sits on file. Sparse matrices, meaning matrices mostly filled with zeros, are stored either as indexed lists, used where the structure stays fixed, or as linked lists, used where matrices grow unpredictably as new values get inserted.

Two memory-saving tricks had already been put into practice by the time of writing. For large models, the working variable matrix spans the number of records against the number of variance parameters, and the paper's own worked example of 6 traits, 200,000 records and 100 variance parameters puts this at 960 Mbytes. Working through records in small batches, rather than holding the whole matrix in memory simultaneously, is described as a strategy that clearly works. A separate, larger cross-product matrix is harder to shrink because it must be built in full before use; when memory runs tight it can instead be written to and updated on disk, though the authors warn this slows processing considerably and needs large temporary files.

Hard disk drives used for storing large datasets during statistical computing
Illustration generated for this summary; not a photograph from the study.

Cyclic maximisation as a way to trade processing time for memory#

Beyond file storage, the paper sets out a method it calls cyclic maximisation, aimed specifically at shrinking the memory footprint of the working cross-product matrix while still fitting the whole model. The idea is to divide the variance parameters into separate groups, say three of them, and run three passes where one group stays fixed in turn while the calculations needed for the other two groups go ahead. Pooling the results from all three passes within a single round of iteration would build up the complete set of calculations without ever keeping the entire cross-product matrix in memory at once.

The authors suggest this approach could let a given model handle up to 50 percent more working variables, though they are candid that cyclic maximisation will be relatively costly in processing terms even as it eases memory pressure. A more general version is sketched too, where dividing the parameters into k groups would need a larger number of passes and could accommodate somewhat more working variables as a result.

A variant works through two of the three groups each round, cycling between different pairings while the remaining group stays fixed. Both versions depend on the assumption that working variables are never built for parameters currently held fixed, which is exactly what frees up space. This part of the paper reads less like a finished recipe and more like a set of options the authors were still testing against each other.

Options for handling large mixed models: Strategies set out by Gilmour and Thompson (2003)
Diagram: Livestock Library · open full size

Imputation: borrowing ideas from Gibbs sampling#

The strategy the paper spends most time on is imputation, a term the authors borrow from earlier work by Clayton and Rasbash, who proposed it for mixed models containing large crossed random factors. Gilmour and Thompson adapt the idea to a generic animal model where a response vector is explained partly by fixed effects, such as contemporary group, and partly by random animal effects, with both groups assumed to be large in number.

The method works by fitting two simplified models in turn rather than one large combined model. The first treats the random animal effects as if already known and estimates the fixed effects; the second adjusts the data for those fixed effects and estimates the animal effects along with the genetic and residual variance components. Noise is deliberately mixed into each set of estimated effects before they feed into the next round, echoing Gibbs sampling, and the whole cycle repeats with the data re-adjusted each time. After an initial settling-in period described as 'burn in', averaging the variance estimates across many rounds is proposed as a way to recover stable components while softening some of the added sampling noise.

The appeal of this approach is computational. Gilmour and Thompson note that exact calculation methods become dramatically more expensive as the number of effects grows, scaling with its cube, while sampling-based methods scale only in direct proportion to that number. As models keep expanding, there comes a point where sampling approaches turn out cheaper overall, effectively swapping the hard task of calculating prediction error variances for the comparatively simpler task of sampling them instead.

Refinements the authors flag as still open#

The paper does not present imputation as a finished, tested method. One refinement under consideration was running calculations for around 10 working response variables side by side, intended to cut down the sampling variance attached to the estimated variance parameters. This idea draws on earlier arguments made by Thompson and by Garcia-Cortes and Sorensen, who had shown that sampling error in updating the genetic variance component can be reduced by accounting for the variance of the noise added to the random effects, though the authors note this is simpler to apply when effects are uncorrelated.

A further refinement mentioned is block updating, which can bring the sampling approach closer to the behaviour of exact calculation but comes at the cost of more complicated formulas for correcting the variance estimates afterward. The authors are explicit that it is not always obvious beforehand which computational scheme, exact, sampling-based, or something in between, will end up needing the least overall effort for any given problem.

This section matters because it shows the paper functioning as a progress report rather than a finished demonstration. The imputation strategy is laid out in enough technical detail that it could be built into software, but the authors state plainly that, at the time of writing, it had not yet been implemented or tested against real data.

Rural research station building housing computing equipment for genetic evaluation work
Illustration generated for this summary; not a photograph from the study.

What this means for software handling genetic evaluations#

In their discussion, Gilmour and Thompson point out that for many researchers simply obtaining more powerful hardware will be adequate, since the expense of collecting data for a designed experiment naturally limits how large the resulting dataset and model can become. But they flag a different situation entirely: ASReml being used to analyse data drawn from large databases in what they call a 'data mining' context, where a dataset running to a million records is not unreasonable and where a suitable model could easily outgrow the computers available at the time using existing methods.

Their closing assessment is measured rather than triumphant. Small adjustments to the internal workings, such as processing working variables in batches or writing cross-product matrices to disk, will allow some increase in the size of job that can be handled, but the authors state plainly that genuinely significant gains depend on new approaches altogether. Imputation is put forward as the candidate they hope will fill that role, alongside a clear admission that it had not yet been implemented or evaluated when the paper was written.

We would treat the imputation proposal here as a promising direction rather than a settled method, given the authors' own acknowledgement that it remained untested; readers wanting a verdict on whether it actually worked would need to look beyond this particular paper. The related question of keeping certain variance matrices positive definite is likewise flagged for separate, deeper treatment elsewhere by the same authors. A reader exploring the surrounding research collection can also browse the Livestock Library research index for other work from this period.

Sources and further reading#

Questions#

What is the Average Information algorithm the paper refers to?

It is a computing method for estimating variance parameters in mixed models, used in the ASReml software discussed throughout the paper. The paper explains that it allowed researchers to fit bigger, more complicated models to larger collections of records, but that it does not automatically keep certain variance matrices positive definite, which creates its own technical problems.

What does imputation mean in this context?

The paper uses imputation to describe a strategy, adapted from earlier work on mixed models with large crossed random factors, that splits a large combined model into two simpler models fitted in turn, with noise deliberately added at each step in a manner resembling Gibbs sampling. The aim is to estimate variance components for very large datasets without holding the full model in computer memory at once.

Were these memory-saving strategies actually tested on real data?

Some were. The paper states that processing working variables in small batches of records was already working successfully inside ASReml. Others, including cyclic maximisation and the imputation approach, are described in technical detail but the authors say plainly that imputation had not yet been implemented or evaluated at the time of writing.

Where was this paper presented?

The paper was published in volume 15 of the proceedings of a conference in 2003, within a collection of proceedings from a breeding and genetics research community, and sits alongside other work from the same era.

About this summary

Written by the Livestock Library team from the published paper by A.R. Gilmour and R. Thompson (2003), and released on 23 November 2026. It is our account of the research in our own words, not the paper itself. For anything you plan to act on, read the original.

Are you an author or publisher of this paper? If something here is wrong, or you would like it changed or removed, tell us and we will fix it.