Elamur Research

Evaluating the carbon footprint of NLP methods: a survey and analysis of existing tools

Paper · 2021 · Nesrine Bannour, Sahar Ghannay, Aurélie Névéol et al.

Summary

How much carbon does a language experiment emit? The answer depends on how much electricity the run consumes, how that electricity is generated, and which parts of the experiment the calculation covers. Bannour and colleagues review six tools for estimating these quantities in natural language processing. They ask what each tool measures, what information it asks researchers to supply, and how consistently the tools describe the same training run. Their test case is named entity recognition, the task of finding and classifying mentions in text. They train systems on French news and medical corpora using a laboratory server and a shared computing facility.

The study compares packages that monitor hardware during a run with calculators that work from details supplied by the researcher, such as the accelerator type and the runtime. The estimates differ substantially. For training the span-based recognizer on French Press at the laboratory, Carbon Tracker reports 237.96 grams of carbon dioxide equivalent, Experiment Impact Tracker reports 78, and Green Algorithms reports 350.15. Energy Usage reports just 0.496 for that same run. The authors suspect that Energy Usage failed to capture graphics processor consumption in their setup. Differences in electricity data matter too. Some tools used a French electricity figure, while others applied a regional or default value much higher than the French values the authors found.

The shared facility generally yields lower estimates for training than the laboratory server does, although the comparison also changes the hardware. The recognizer that can find mentions inside other mentions achieves higher F-measures than the flat recognizer in all the reported settings, with greater estimated training cost overall. The emissions figures also have a narrower scope than the term carbon footprint might suggest. They principally cover electricity associated with active computation. Equipment production, idle operation, and disposal remain outside a full accounting, and preliminary experiments can add work beyond the run being reported. The paper makes the case for reading a carbon estimate alongside its inputs, its measurement boundary, and the quality of the system’s output.

Deep dive: Evaluating the carbon footprint of NLP methods: a survey and analysis of existing tools

Bannour and colleagues compare six tools for estimating the energy use and carbon footprint of French named entity recognition experiments. · about 30 minutes to read

The problem and its context

The cost behind a performance score

A recognition score tells a reader how well a system identified the mentions it was expected to find. It leaves the cost of obtaining that score open. The paper starts from the widespread use of deep learning for tasks such as classification and entity recognition, where accuracy makes these methods attractive. Training requires computation, and the electricity used by the hardware and the facility that houses it can lead to greenhouse gas emissions. The value of reporting that cost is clearest when a researcher must choose among several systems that are good enough to use, or decide how much computation to spend in pursuit of a better score.

The authors situate the study in a discussion that had already begun. Strubell and colleagues had estimated the energy and emissions associated with deep-learning experiments in NLP, using hardware and system interfaces that some of the surveyed packages subsequently incorporated. Schwartz and colleagues had drawn attention to the growth in the cost of computation. The cited work by Bender and colleagues gives the question a distributional dimension. The people who experience environmental costs can be different from those who run the experiments or benefit from them. The paper also points to a medical imaging study in which the author questioned whether the greater footprint of larger systems brought proportionate improvements in accuracy. Energy and Policy Considerations for Deep Learning in NLP · Green AI

These concerns create a need for quantities that researchers can interpret. Electricity use and emissions describe related parts of a run. Energy consumption describes how much electricity the calculation assigns to the work. Carbon intensity describes the emissions associated with generating a unit of that electricity. A comparison can therefore be about the workload, the electricity supply, or both. A recognizer that draws less energy can have a larger reported footprint if a sufficiently higher carbon intensity is applied to its energy use. Conversely, the same energy estimate can produce several emissions estimates without any change to the training job.

The authors describe a workshop effort that had already offered guidance on environmental measurement. Work discussed there raised the possibility that the method used to assess energy could change the apparent efficiency of an NLP system. Researchers also had packages for collecting and publishing footprint information, and calculators for estimating emissions from the details of a job. This survey examines their meanings side by side. Its question is practical. When two tools give an answer in grams of carbon dioxide equivalent, how much of the answer comes from the computation, and how much comes from the way each tool represents it? Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learning · Quantifying the Carbon Emissions of Machine Learning

What a carbon footprint can cover

Carbon dioxide equivalent, written CO₂e, expresses the climate impact of greenhouse gases on a common basis. The paper treats it as an indicator of global warming potential. It also notes that environmental impact includes questions about resource depletion, water shortages, and human toxicity. The tools surveyed focus on climate emissions, so their outputs address that particular part of environmental impact.

Even within a carbon footprint, the boundary can extend well beyond electricity drawn during training. Computers have to be made, they can draw power while idle, they use electricity while running a workload, and eventually they reach the end of their useful lives. A life cycle assessment may assign part of the emissions from manufacturing a machine to the work performed on it. That allocation is hard to make without reliable data about how the machine was produced and how it is used over its lifetime. Dynamic energy use, the portion associated with active work, is the part the selected tools set out to quantify.

The authors give a concrete reason to take manufacture seriously. They cite a study of a Grenoble data center with CPU servers in which equipment production accounted for around 40% of the emissions assigned to one hour of CPU use. That estimate belongs to the data center and equipment in the cited study. Bannour and colleagues could find no comparable production estimate for graphics processors or tensor processors. They also describe a shortage of data for disposal. A second study they cite identifies manufacturing and infrastructure as major sources of computing’s environmental impact. Taken together, the examples explain why an estimate that begins when training starts and ends when it stops can be useful while covering only part of the footprint.

The boundary matters when drawing comparisons. A tool may estimate how much electricity a processor used during a job. An accounting of the shared facility across its operating life would have to deal with idle periods and with the manufacture and retirement of the equipment as well. A researcher can legitimately report the result of the first calculation as an estimate for the run. The wider question requires evidence about the facility and equipment that a training log alone cannot supply.

Why use entity recognition to test the tools?

Entity recognition gives the survey a workload with a meaningful performance measure and a concrete difference in what the systems can do. A recognizer identifies a span, a stretch of text with a beginning and an end, and assigns it a category. In flat recognition, the output represents mentions without nesting. In nested recognition, a span can contain another mention that has its own category and boundaries. This distinction matters in the medical data the authors select, where a substantial share of mentions is nested.

The paper describes earlier flat recognizers as commonly using sequence labeling. The system works through a sequence of words or tokens, assigning labels from which mention boundaries and categories can be recovered. The authors also describe approaches that allow nested output. These include mention hypergraphs, layered recognition, and methods that express nested structures in a sequence. A span-based approach gives them a recognizer they can train for both flat and nested cases alongside a recognizer designed for flat output. Neural Architectures for Named Entity Recognition · Joint Mention Extraction and Classification with Mention Hypergraphs · Neural Architectures for Nested NER through Linearization

The workload also makes it possible to put a cost estimate next to a measure of usefulness. Comparing tools on a fixed run asks whether they describe the same computation similarly. Comparing the recognition systems asks what quality accompanies the reported cost. Comparing the laboratory and shared facility asks how much changing the place and equipment of execution changes those observations. These are different questions, and the design gives the reader several ways to hold one part of the study fixed while inspecting another.

The method, step by step

From tool selection to a measured run

The authors begin by finding tools that an NLP researcher could obtain and use. They record what those tools accept as input, which components and emissions sources they cover, and what they return. They then train recognizers on the same benchmark corpora under different computing setups. Some tools collect information while the recognizers train. The researchers supply details about those runs to the tools that operate after training. The comparison follows the same run from its recognition scores and runtime through to the reported energy and emissions figures.

How the authors compared carbon measurement tools

The steps in order.

How the authors compared carbon measurement toolsStep 1: Find documented and accessible tools1. Find documented and accessible toolsStep 2: Record inputs, defaults, and emissions coverage2. Record inputs, defaults, and emissions coverageStep 3: Train recognizers on the QUAERO corpora3. Train recognizers on the QUAERO corporaStep 4: Repeat training on the shared facility4. Repeat training on the shared facilityStep 5: Collect hardware readings and calculator estimates5. Collect hardware readings and calculator estimatesStep 6: Compare energy, emissions, and recognition scores6. Compare energy, emissions, and recognition scores

Finding and evaluating the tools

The search started from candidates identified by EcoInfo, a French working group concerned with the environmental impact of computing. The starting set included Experiment Impact Tracker, Carbon Tracker, and pyJoules. The researchers used citation snowballing, which means looking for papers that cite a known work and repeating that process for newly discovered candidates. They searched citing papers in Google Scholar and used related-paper suggestions for arXiv publications when available. The search returned 94 publications through Google Scholar and another 20 from the related-paper route. The authors reviewed 85 after removing duplicates. Within the reviewed set, 43 discussed carbon measurement or offered opinions about it, and 27 described studies that made measurements with one of the selected tools.

The selection criteria reflect the aim of trying the tools on actual NLP research. A tool had to be freely available, usable in the researchers’ Mac or Linux terminal environment, described in a scientific publication, suitable for work such as entity recognition, and capable of giving a carbon dioxide equivalent estimate. These criteria explain the omission of pyJoules. The authors describe it as a Python library that monitors energy associated with components such as the processor, memory, and graphics processor. It supplies energy information without directly producing the required emissions figure. Some work under development also fell outside the review because there was no code or online service for the authors to try. The newer Code Carbon initiative was known to them, but the published version they evaluated was ML CO2 Impact, which met their publication criterion.

Once the tools were selected, the authors evaluated them along publication, technical, configuration, and functional dimensions. The publication assessment records the year of the latest publication and counts citations, including citations for measurement of NLP experiments. The technical assessment records the version date, availability of source code, access through an online interface, licensing, and the available reporting formats. The snapshot for citation counts and version dates was 11 May 2021. The ratings for installation and documentation depend on what the evaluators could actually do. A package installable as an ordinary user earned a stronger installation rating than one requiring administrator access. A guide that answered practical questions about configuration or location earned a stronger documentation rating than one that left those questions open.

The configuration criteria address the assumptions that can change an estimate after the workload has been fixed. The researchers ask whether a tool finds location-specific carbon data automatically, whether users can enter their own carbon intensity, and whether documentation helps them find an appropriate value. They check which platform types a tool recognizes, such as a local server or a cloud provider. They also check whether users can set power usage effectiveness, or PUE. PUE relates the electricity used by a facility as a whole to the electricity used by its computing equipment. Its role in this comparison is to account for facility overhead that a reading from a processor would leave outside its boundary.

The functional questions concern where that boundary lies. The authors look for coverage of emissions from manufacture, idle operation, active use, and end of life. They distinguish electricity attributed to the equipment performing the computation from electricity attributed to transferring data. The review assumes that the tools aim to consider the central processing unit, or CPU, and graphics processing unit, or GPU, so it has no separate checklist item for whether those processor types are in scope. That makes the experiment important. Even when a component is in the intended scope, a run can reveal that the reported value is unlikely to include it.

How the tools turn computation into emissions

A researcher can approach the measurement by observing the machine during a run or by describing the machine and the job to a calculator. The first route depends on access to the hardware information and on successful collection during execution. The second depends on a suitable description of the run and on assumptions built into the calculator. In either case, the resulting estimate has a scope. It can cover selected components, include an allowance for overhead, or account for additional activity the researcher enters.

The Python packages Energy Usage, Carbon Tracker, and Experiment Impact Tracker gather data from CPUs, GPUs, and DRAM (dynamic random-access memory). The experimental comparison includes tools that use the processor energy reporting interface known as RAPL. Reading that interface can require local permissions. Carbon Tracker can also use observations during training to predict consumption across a number of epochs, where an epoch is a pass through the training data. Its other options include choosing components to monitor. The packages consequently depend on what the host machine can expose and what the user is allowed to read.

Green Algorithms takes details entered through a web interface. Its inputs include runtime, the number and kind of cores, the memory requested, the type of platform, and the location. ML CO2 Impact also works from supplied details, including the hardware, duration, and the provider or location where the work ran. These calculators can be used after an experiment if enough information was recorded. An important consequence is that an option chosen by the user can stand in for a more specific physical device. When no matching hardware option exists, the result is an estimate for the approximation entered.

Cumulator is a Python package with a different approach to computation and communication. For computation it uses runtime and GPU load with a fixed value representing a typical GPU’s consumption. For communication it uses file sizes and an accounting assumption from The Shift Project. The paper’s configuration table identifies it as the selected tool whose scope includes communication alongside hardware use. The experimental energy table gives no Cumulator value for the training conditions, even though the emissions table reports Cumulator estimates. That distinction matters when the reader tries to determine whether a difference between tools arose in the energy estimate or the conversion to emissions.

Once a tool has an estimate of the electricity within its boundary, the conversion discussed in the paper can be expressed as follows.

C = E × I

Here C is the estimated carbon dioxide equivalent in grams, E is the energy attributed to the run in kilowatt-hours, and I is the carbon intensity of electricity in grams of carbon dioxide equivalent per kilowatt-hour. The multiplication sign × means that the estimate applies the intensity to the amount of energy consumed. The equality = gives the result of that conversion for the chosen inputs. If a tool allocates a share of facility overhead to the run, the energy used in the conversion must reflect that boundary for the overhead to affect the result.

This relationship explains why the paper reports energy and emissions side by side. When energy estimates differ for a fixed run, part of the disagreement already exists before any electricity mix is applied. When two energy estimates are close but the emissions figures are far apart, carbon intensity or another difference in the conversion deserves inspection. The authors refer to the companion publication’s calculation for ML CO2 Impact when describing how they obtained more precise values for runs whose displayed estimates were zero. Their comparison otherwise describes the inputs, settings, and estimates of the tools, without setting out a complete implementation equation for each one.

Preparing the recognition workloads

The researchers use QUAERO French News, reported as French Press in the results, and QUAERO French Med. The medical corpus contains the EMEA and MEDLINE subsets, which appear separately in the experiments. The authors selected the corpora because they suit the task, give different amounts of training material while remaining modest in size, and are available for noncommercial use. Their corpus statistics also establish the extent of nesting in each collection. The news corpus supplies a larger flat recognition workload. The medical subsets supply smaller workloads where recognition of embedded spans becomes relevant.

The flat recognizer follows Ma and Hovy. Its approach labels the sequence, using information from words and characters. The architecture named in the paper consists of a bidirectional recurrent network, a convolutional network, and a conditional random field. The bidirectional component uses context on both sides of a position. The character convolution captures local patterns within words. The conditional random field scores a sequence of labels jointly, so the labels used to recover entity boundaries are chosen in relation to one another. For this study, its distinguishing property is the flat structure of the mentions it can return. Ma and Hovy’s sequence-labeling method

The recognizer based on Yu and colleagues asks a different question of the text. It considers positions as possible starts and ends and scores the span delimited by each candidate pair for a category. This follows an idea from dependency parsing, where a scorer evaluates pairs of positions. The entity task uses the pair to define a span. A multilayer bidirectional long short-term memory network supplies context-sensitive representations, and the biaffine scorer uses the representations of both boundaries when judging a candidate. Since different pairs can delimit spans inside one another, the approach can represent embedded mentions as well as flat ones. Yu and colleagues’ span-based recognition method

For their implementation of the span-based method, the authors use the pretrained CamemBERT BASE encoder to represent words and a convolutional network to encode character-based word embeddings. They obtain CamemBERT from Hugging Face’s Transformers library. This detail belongs to the training setup because the results apply to the particular implementation the authors ran. The study takes the pretrained encoder as a starting point, and the recorded cost concerns training the entity recognizer in that setup. CamemBERT · Transformers

Running on the laboratory server and shared facility

The laboratory server had 2 Nvidia GeForce GTX 1080 Ti GPUs. The shared facility had 43 GPUs in its inventory, including the Tesla V100 used in the study. Those inventory figures describe the installations. The configuration for the experiments reports 1 core, with 11 GB of memory on the server and 32GB at the facility, and also reports 20 CPUs for the facility setup. Both sets of experiments took place in France, which the authors entered as the location where the respective tool documentation directed them to do so.

The precise accelerator at the facility was a Tesla V100-PCIE-32GB. For ML CO2 Impact the available choices included V100-PCIE-16GB and V100-SXM2-32GB. The authors used V100-SXM2-32GB for the reported estimates. Green Algorithms offered the broader Tesla V100 category. At the time of the comparison, its interface also prevented the authors from entering CPU and GPU use together. Thus the facility experiment and its description in the calculators differ in known ways. A reader should interpret their outputs as estimates using the available hardware selections.

For each recognition run, the paper gives a runtime, recognition performance, and estimates from the different tools. It presents electricity consumption in kilowatt-hours and emissions in grams of carbon dioxide equivalent. The availability of both measurements is central to the design. A discrepancy can come from what a tool allocates to the run in energy terms, from the conversion of that energy to emissions, or from both steps. Recording the recognition metrics lets the reader see which workload each estimate belongs to and what the system achieved with that run.

Experiments and results

Corpora and comparison points

French Press is the largest of the reported corpora. The paper’s corpus statistics list 167 documents, 1,347,368 tokens, 79,632 entity mentions, and 19,876 unique entities across 5 entity types. There are 0 nested mentions. EMEA contains 38 documents, 40,257 tokens, and 7,159 mentions across 10 types. Of its mentions, 1,009 are nested, reported as 14,27 %. The maximum nesting depth is 4. MEDLINE contains 2,498 documents, 31,926 tokens, and 9,074 mentions across 10 types. It has 2,280 nested mentions, reported as 25,31 %, and the same maximum depth of 4. These figures describe the corpora in the statistics table. The recognition results are reported by corpus and computing setup.

The flat recognizer is the internal point of comparison for the more capable span-based recognizer. The laboratory server provides the local computing comparison for the shared facility. On the measurement side, the authors inspect each tool’s result against the others for a given run. The comparison therefore has several baselines in the practical sense of a reference setting. It has no designated reference meter whose value serves as the true electricity consumption or emissions. For recognition on the medical data, the authors also discuss earlier results from the 2016 CLEF eHealth shared task.

The task metrics are precision, recall, and F-measure. Precision describes how many of the returned mentions are correct. Recall describes how many of the reference mentions were found. F-measure combines the two, so a system needs both reliable predictions and coverage of the annotated entities to obtain a strong score. That last point matters on the medical data. A span-based system can propose embedded mentions and potentially recover more of the reference annotations. A flat system has less expressive output, even when the labels it supplies are precise.

Recognition quality and training time

On French Press, the Yu-based recognizer obtains an F-measure of 80.68 on the laboratory server and 80.83 at the facility. Its precision is 87.49 on the server and 88.05 at the facility, while its recall is 74.85 and 74.71. The flat recognizer records F-measures of 73.87 and 75.38 in the same order. Since the corpus contains no nested annotations, the gap here cannot be explained by recovery of embedded mentions. It describes the difference between the complete recognition systems on a flat corpus.

On EMEA, the span-based recognizer reports F-measures of 66.02 on the server and 66.84 at the facility. The corresponding values for the flat recognizer are 55.43 and 54.58. Precision and recall move in different directions when the span-based recognizer is run at the facility. Its precision is 73.78 on the server and 77.58 at the facility, while recall is 59.74 and 58.71. The F-measure reflects both changes. The paired results show why the separate metrics are useful even when a reader is mainly interested in whether one setting has a higher F-measure.

MEDLINE shows the largest variation between the span-based recognizer’s reported F-measures across the two computing setups. Its precision and recall on the laboratory server are 66.62 and 62.11. At the facility they are 79.73 and 78.35. The flat recognizer also has a higher F-measure at the facility on this subset, although its precision rises from 43.97 to 52.39 while its recall falls from 41.08 to 36.68. The chart shows the outcome for each recognizer and site.

Recognition system and computing setup on QUAERO French Med MEDLINE by F-measure

The span-based recognizer at the shared facility has the highest reported F-measure on MEDLINE.

Recognition system and computing setup on QUAERO French Med MEDLINE by F-measureFlat recognizer, laboratory server: 42.47Flat recognizer, laboratory server42.47Flat recognizer, shared facility: 43.15Flat recognizer, shared facility43.15Span-based recognizer, laboratory server: 64.28Span-based recognizer, laboratory server64.28Span-based recognizer, shared facility (this paper): 78.98Span-based recognizer, shared facility(this paper)78.98
The numbers
System or settingF-measure
Flat recognizer, laboratory server42.47
Flat recognizer, shared facility43.15
Span-based recognizer, laboratory server64.28
Span-based recognizer, shared facility (this paper)78.98

The records include much shorter training runs for the medical subsets than for French Press. For the span-based recognizer, the French Press runtime entries are 163:39 on the laboratory server and 118:04 at the shared facility. On EMEA they are 9:31 and 6:51. On MEDLINE they are 11:55 and 9:11. The flat recognizer’s French Press entries are 58:30 and 46:44, and its EMEA entries are 02:14 and 02:27. The flat EMEA run is a case in which the facility is slower in the reported comparison. Short training makes the medical workloads particularly informative about whether a tool can resolve a small energy or emissions value.

The authors place the medical results in the context of the 2016 CLEF eHealth evaluation. They describe their recognition scores as above the median and average of participating systems and point out that the leading result on the benchmark still belonged to the Erasmus team’s dictionary-based method, which they characterize as having a low carbon cost. The paper qualifies the comparison with the shared task. The span-based system has the appropriate coverage for direct comparison, since it can return nested entities. The flat system omits the embedded mentions the task includes. Its scores help describe the alternatives in this experiment, while the nested system offers the closer match to the shared-task output.

Electricity use and emissions estimates

For French Press training with the span-based recognizer, Experiment Impact Tracker reports 1.399 kWh on the server and 0.865 kWh at the facility. Carbon Tracker also estimates lower consumption at the facility, with 0.809 kWh on the server and 0.548 kWh at the facility. Within either site, those two packages give different energy estimates despite being applied to the same training condition. Green Algorithms gives 1.38 kWh on the server and 1.03 kWh at the facility. The three sets of estimates agree on the direction of the site comparison for this workload while giving different amounts of electricity for each run.

Experiment Impact Tracker energy for span-based French Press training by computing setup

Experiment Impact Tracker attributes less energy to the shared facility run.

Experiment Impact Tracker energy for span-based French Press training by computing setupLaboratory server: 1.399Laboratory server1.399Shared facility (this paper): 0.865Shared facility (this paper)0.865
The numbers
System or settingkWh
Laboratory server1.399
Shared facility (this paper)0.865

The emissions comparison for the server run makes the effect of the conversion visible. For span-based French Press training, Green Algorithms reports 350.15 grams of CO₂e and ML CO2 Impact reports 290. Carbon Tracker gives 237.96 grams of CO₂e, Experiment Impact Tracker gives 78, and Cumulator gives 302. Energy Usage gives 0.496 grams of CO₂e. This is a disagreement about a single training condition. A paper reporting only one of these values could make the cost of that condition appear markedly different depending on the instrument chosen.

A comparison within Green Algorithms holds that instrument fixed across both recognizers and sites. On French Press, the emissions estimates are lower at the facility for each recognizer, and the flat recognizer has the lower estimate at each site. The minimum in that comparison belongs to the flat recognizer at the facility. It is a minimum for the reported emissions metric. The span-based runs obtain higher recognition scores, which remain a separate part of the comparison.

Green Algorithms carbon estimates for French Press training by recognizer and site

Each recognizer has a lower estimate at the facility, and the flat recognizer has the lowest estimate there.

Green Algorithms carbon estimates for French Press training by recognizer and siteSpan-based recognizer, laboratory server: 350.15Span-based recognizer, laboratory server350.15Span-based recognizer, shared facility: 260.26Span-based recognizer, shared facility260.26Flat recognizer, laboratory server: 104.40Flat recognizer, laboratory server104.40Flat recognizer, shared facility (this paper): 102.08Flat recognizer, shared facility (thispaper)102.08
The numbers
System or settingg CO₂e
Span-based recognizer, laboratory server350.15
Span-based recognizer, shared facility260.26
Flat recognizer, laboratory server104.40
Flat recognizer, shared facility (this paper)102.08

The medical runs show how the tool differences carry over to smaller workloads. For span-based EMEA training, Carbon Tracker gives 9.70 grams of CO₂e on the server and 8.07 at the facility. Green Algorithms gives 16.67 and 14.31 grams of CO₂e for those settings. The corresponding Carbon Tracker energy estimates are 0.033 kWh and 0.027 kWh. Green Algorithms gives 0.07 kWh and 0.06 kWh. Both tools report the same ordering across sites for this run. The different energy estimates and different electricity assumptions still make the absolute values hard to compare without examining the method behind each figure.

On MEDLINE with the span-based recognizer, Carbon Tracker estimates 0.046 kWh at the laboratory and 0.036 kWh at the facility. Experiment Impact Tracker gives 0.045 kWh and 0.021 kWh. The laboratory figures for these two packages are almost the same, while the facility figures are farther apart. Green Algorithms reports 0.08 kWh at both sites, and ML CO2 Impact reports 0.05 kWh at both sites. Thus the general tendency towards lower facility estimates coexists with conditions where the recorded result stays the same. The paper’s findings concern a pattern across conditions and tools, with individual outcomes worth inspecting.

Energy Usage is especially different. Its estimates for span-based French Press training are 0,00117 kWh on the server and 0,00231 kWh at the facility. The facility estimate is higher for this tool, even though the recorded facility runtime is shorter. Its emissions estimates, 0.496 and 0.979 grams of CO₂e, are also much smaller than those of the other tools for that workload. The low energy estimates make the difference impossible to explain solely by the electricity mix. The authors’ investigation turns to whether the GPU was included in the energy reading.

What the ablations show

The paper contains no component-removal ablations of the recognizers, but it compares measurement tools on fixed runs, examines their electricity and hardware assumptions, and contrasts training outcomes across the two computing setups.

How carbon intensity changes the estimate

Carbon Tracker applied 294.21 grams of CO₂e per kilowatt-hour, the EU-28 average for 2017, during experiments conducted in France. The authors found French values of around 30 to 40 grams of CO₂e per kilowatt-hour through electricityMap. Green Algorithms used the 2020 electricityMap value of 39 grams of CO₂e per kilowatt-hour. Experiment Impact Tracker used a 2018 value from the same source, 47.60 grams of CO₂e per kilowatt-hour for France. These figures refer to different reference data and therefore lead to different conversions even before considering differences in hardware coverage.

The Energy Usage estimate for France appears to have used 424 grams of CO₂e per kilowatt-hour. The authors trace that value to energy mix data for 2016 from the U.S. Energy Information Administration, used with assumed emissions for the different sources of electricity. In ML CO2 Impact they used the default of 432 grams of CO₂ per kilowatt-hour. A published result can therefore reflect a country-specific average from one source, an estimate the tool derives from energy records, or a default that represents some other context. The number remains sensitive to that choice even when the run and its reported location are held fixed.

The researchers also followed some of the documentation to see what value a user might enter manually. The Carbon Footprint source they consulted gave 53 grams of CO₂ per kilowatt-hour for France using 2018 emissions data. Its more recent 2020 data gave 38,95. At the time of the experiments, electricityMap showed 31 grams of CO₂ per kilowatt-hour. The European Commission source offered values that varied with the kind of electricity considered and used 2013 data. This investigation gives concrete reasons why entering the same country in several tools can yield different estimates. A country field alone leaves the reference year, emissions data, and method of constructing the average open.

The press results illustrate the interpretation. For the span-based training on the laboratory server, Experiment Impact Tracker gives a larger energy estimate than Carbon Tracker. Their emissions figures reverse that ordering. The much higher intensity applied by Carbon Tracker gives a reason for the reversal. The study did not rerun every tool with a common intensity and common energy input, so the observed carbon differences remain a combination of the tools’ settings and methods. The comparison identifies a source of disagreement and shows where it enters the calculation.

How the energy estimate can go wrong

Energy Usage gives particularly small estimates in the experiments. The authors investigated and suspected a software defect that left GPU consumption out of the reported result. They reported the issue to the developers. That diagnosis fits the pattern in which the package produces low emissions while appearing to apply a high electricity intensity. It directs attention to the collection of component readings. The paper treats the defect as a possible explanation and gives no corrected GPU measurement that could establish the size of the omission.

For the web calculators, the concern is different. Their answers follow from what the user can enter. A hardware menu can force a choice between an exact product description and the closest available category, and the study encountered that situation with the facility’s V100. The authors also point to differences in PUE settings. A tool can change the amount of electricity attributed to a job by including a different allowance for the facility around it. Accordingly, agreement on elapsed time and processor family still leaves room for differences in calculated energy.

The authors characterize the online calculators as frequently producing higher values in this experiment, which they relate to the calculators’ reliance on supplied information and estimates. They also cite a study by Miozzo and colleagues that found higher emissions from Green Algorithms than from ML CO2 Impact. In the French Press runs, Green Algorithms likewise gives the span-based recognizer higher emissions estimates than ML CO2 Impact at both sites. The authors use such comparisons to direct attention to configuration, including PUE and electricity assumptions. The results describe how the calculators behave under the inputs used here, and some reported outputs vary in their ordering under other conditions.

What the setup and recognizer comparisons isolate

The facility generally gives lower energy and emissions figures. It commonly completes training sooner, and its accelerators differ from those on the server. The authors suggest equipment as an explanation, particularly the GPUs. The experiment changes equipment and site together, so the comparison identifies the effect of choosing one of these complete setups for these runs. Allocating the difference to a particular GPU would require holding other features of the setup fixed or measuring the components separately.

The same logic applies to the recognizers. The span-based implementation differs from the flat one in its output representation, how it scores candidates, and the use of CamemBERT in the reported implementation. The comparisons establish a task quality and cost tradeoff for the two complete systems. They leave open the contribution of each component to the energy or F-measure difference. The French Press outcome is particularly helpful for interpretation. The span-based recognizer scores higher even on a corpus without nesting, so the recognizers differ in more than how many embedded mentions they can express.

Runtime provides another comparison because it is an input in some tools and part of the reason smaller readings are difficult to report. On short training jobs, ML CO2 Impact’s display returned 0 for several cases. The authors used its published calculation to recover greater precision. The pattern shows that a displayed zero can be a property of the reporting resolution. A short run requires a reporting format capable of distinguishing small values before any ranking of those runs can be taken seriously.

Finally, the installation experience exposes a distinction between obtaining a package and obtaining the data it needs. A researcher can run a web calculation after training, but may have to decide what memory figure or carbon intensity to supply. A researcher measuring during training may have a more direct source of hardware information, but the experiment showed that reading RAPL could require administrative assistance even with the available power-cap interface. These are empirically different obstacles to producing a measurement. The authors’ evaluation includes them because access to a meaningful input is part of making the estimate usable.

Limitations

Limits identified by the authors

The authors’ broadest qualification concerns the life cycle. The surveyed tools mainly estimate the emissions associated with active equipment use. They leave manufacturing, idle consumption, and end-of-life treatment outside a complete accounting. The shortage of data for producing the kinds of accelerators used in NLP makes it hard to extend the estimates into a life cycle total. The Grenoble example explains why the omitted stages may be consequential, but its result belongs to CPU servers at that site. The study supplies no corresponding manufacturing allocation for the laboratory or facility GPUs.

The authors also distinguish running the reported training jobs from the preparatory work required to arrive at them. Testing settings and choosing parameters can consume electricity before the final run begins. Green Algorithms calls attention to repeat work through a configurable scaling factor. That factor makes repeated trials visible as an accounting choice. Its use still depends on knowing or estimating how much work occurred. The training figures apply to the runs defined by the experiment and cannot capture unrecorded preparation.

Tool access and precision constrain what can be measured. The authors needed elevated access to read some processor information. They found that brief training runs produced impact values of 0 in some outputs, which they interpreted as inadequate sensitivity for small workloads. They also document the mismatched accelerator choices at the shared facility and the inability, at the time, to enter both CPU and GPU activity in Green Algorithms. Their suspected Energy Usage defect adds a potential failure of component coverage. Together these issues limit how literally a reader can treat a printed number, especially when the run is short or a tool’s hardware description differs from the actual machine.

The authors place a limit on their performance comparison too. On the shared task, annotations include embedded mentions. The flat recognizer cannot return the same range of structures, so its medical scores do not provide a direct comparison with the shared-task results. The span-based recognizer is the relevant comparison there. This qualification keeps the practical cost discussion tied to the task a system is expected to perform. A low training estimate is most informative when the associated output satisfies the same requirements.

Limits visible in the study design

The experiment gives a comparison among measurement tools instead of a calibration against independently established energy use or emissions. The paper provides sound reasons to question particular values, such as the intensity chosen for France or the very small Energy Usage readings. It reports no independent total for each job against which the tools’ errors could be measured. Close estimates therefore establish agreement under a condition, and far-apart estimates expose sensitivity to assumptions or data collection. Choosing which estimate is closest to a complete operational footprint would require a reference with a clearly defined boundary.

The carbon intensity analysis examines the values the tools used and alternatives the authors found, but it does not put all tools through a common set of inputs. A direct comparison using identical carbon intensity and identical PUE could help distinguish differences in the treatment of electricity from differences in the calculation of energy. The study’s design instead observes what a researcher would obtain from the tools as configured for these experiments. This gives it practical relevance while leaving some causes of disagreement intertwined.

The learning experiments are similarly comparisons of complete conditions. Site, accelerator, and aspects of the available configuration vary together. The estimates are informative for a choice between the observed server and facility, while generalizing the direction of the difference to other installations calls for additional evidence. In particular, the tables report scores and costs for each setup without giving a distribution across repeated training runs. The variation in MEDLINE F-measure across the computing setups cannot be attributed to the GPU itself from those entries.

The scope of the workloads also matters. QUAERO supplies French news and medical text with deliberately modest training demands. This is useful for exposing display resolution and configuration problems under light workloads. It leaves open how well the estimates would agree for much longer training or at a different scale. Operating a deployed recognizer would require a further account of prediction volume, runtime behavior, and the system hosting it. The experiments measure training runs. The lifetime of a service, the upstream training of a reused encoder, and the complete series of exploratory jobs are larger units of analysis.

Finally, the availability criteria define which tools the conclusions describe. Freely accessible, published software that works in the authors’ environment and reports CO₂e was a deliberate selection. Energy-only monitors and tools without an accessible implementation were outside it. The publication and version counts are dated snapshots. A claim about a default value, hardware menu, or installation experience applies to the tool examined in that survey. It is evidence about why results differed in the experiment and about what features are worth documenting when those tools change.

What came after

Carbon accounting for multilingual and Arabic systems

Two citing works from 2022 place questions raised by the comparison in a different research setting. The BLOOM paper concerns an open-access multilingual system. In Bannour and colleagues’ study, the reporting unit is a downstream recognizer training run with a specified corpus and computing setup. The BLOOM work gives the question of reporting scope a different object. When describing a large multilingual system, the distinction between the cost of producing the shared resource and the cost of training or running an application that uses it becomes important. The citation connects the works, while the title identifies the system and its multilingual and open-access scope. It does not establish that the authors adopted a particular calculator from the survey. BLOOM

The Noor study, also from 2022, explicitly takes up the carbon footprint of a very large Arabic system and describes its assessment as holistic. That scope speaks directly to Bannour and colleagues’ distinction between active electricity use and the larger set of emissions that could be assigned to a computing project. A reader comparing the two studies would want to know which stages the Noor assessment includes and what unit it uses to assign their costs. The title identifies the broader accounting aim. Details such as which manufacturing data or electricity factors the assessment uses cannot be inferred from that description. Carbon footprint assessment of Noor

Safety evaluation and sustainable benchmarks

Another citing study from 2022 concerns risk-graded safety for handling medical queries in conversational AI. Its stated subject brings evaluation into a setting where the consequences of the output matter alongside its functional quality. Bannour and colleagues make a related distinction within a different task. Comparing the cost of two recognizers requires understanding which mentions each can return. In a study of medical queries, a risk grade describes another aspect of system behavior that an energy figure alone cannot express. The citation shows a connection to the footprint survey. The subject of the citing work does not establish that it measured energy or used any of the surveyed tools. Risk-graded safety for medical queries

The 2026 green leaderboard work explicitly puts sustainability into the evaluation of streaming NLP shared tasks for risk prediction. A leaderboard brings the comparability issue into the benchmark itself. Bannour and colleagues show how rankings can depend on what participating systems report, even when they use the same unit. A shared task that incorporates sustainability therefore gives the treatment of electricity, hardware, and workload boundaries a direct role in how readers interpret the standings. The later work’s stated contribution is the introduction of the green leaderboard. Its title leaves the exact scoring protocol and the choice of measurement tools open. Green leaderboard for streaming risk prediction

Cite

Cite as Nesrine Bannour, Sahar Ghannay, Aurélie Névéol and Anne-Laure Ligozat. 2021. Evaluating the carbon footprint of NLP methods: a survey and analysis of existing tools. Proceedings of the Second Workshop on Simple and Efficient Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.sustainlp-1.2

@inproceedings{bannour2021evaluating,
  title = {{Evaluating the carbon footprint of NLP methods: a survey and analysis of existing tools}},
  author = {Nesrine Bannour, Sahar Ghannay, Aurélie Névéol and Anne-Laure Ligozat},
  booktitle = {Proceedings of the Second Workshop on Simple and Efficient Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.sustainlp-1.2},
  url = {https://doi.org/10.18653/v1/2021.sustainlp-1.2}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bannour-2021-evaluating-carbon-footprint-nlp-methods/