Toward a Life Cycle Assessment for the Carbon Footprint of Data
This transcript was made by AI. The open source speech recognition model Whisper (large-v3-turbo) transcribed the recording with faster-whisper. Names and technical terms were checked against the paper, but it can still contain mistakes. The recording is the reference.
0:01 All right. Thanks, everyone. Hopefully, I'm going to be able to answer some of these questions that were just presented about the previous paper by zooming out more onto the entire lifecycle of data as opposed to the model. And this is joint work with Sanjay Krishnan, who's over here, and I'd like to extend a thanks to Andrew Chien and his group for kind of inspiring this work. So the first observation is that data like a good has a lifecycle. So in the case of a device, we have certain sort of manufacturing phase, and that proceeds to the end of life stage. As with a video, we have kind of a collection at the sensor, and then also we eventually dispose of that data at the end of the lifecycle.
0:48 So potentially, this indicates that we could perform something like a lifecycle analysis over a data item. And there's two kind of key observations here. So the first is that like a device, data actually sort of has this embodied cost, which is encapsulated by the collection, transfer, and storage operations. And they map pretty closely onto the embodied costs of a device. And there's also sort of an operational phase where we might do something like train a model or serve a query. So another piece is I want to kind of introduce this idea of data sustainability. So we have all this proliferation of devices that have sensing capabilities throughout all society, high fidelity audio, video, and things along those lines. And what we're observing is kind of the data volume is increasing exponentially as a factor of time.
1:43 So there's two kind of sustainability problems with this. First of all, there's a manufacturing aspect where we're kind of having to scale our infrastructure in both network bandwidth and storage capacity to be able to store and transmit what might be a fraction of this data, but still significant. And then the more classical operational side where we're kind of eventually going to reach curtailment in the performance per watt. And this will affect kind of all of these devices. So we need to begin thinking about how can we be sustainable with our use of data.
2:21 So in this example right here, we collected 24 webcam videos on a personal computer, and we looked at the carbon costs across two grids. In this case, we're mostly tracking the encoding and once it's in memory. But for example, a 26 second webcam video has a carbon cost from anywhere from 37 milligrams to 119 milligrams in this setting.
2:46 So beyond kind of, there's been a lot of talk of like the AI lifecycle. And if we zoom out, both kind of the collection and communication of data are important. They're important costs, including sort of a lifecycle assessment, like Tamar mentioned. So if we look at communication in this case, we have a core path to some data center from a user device. And we notice that even if the data center is in a carbon efficient location or there's renewable matching, we still are traversing a bunch of different nodes that have variable carbon intensity. So when we're sending data along these paths, we have very real costs. And in this instance, we get an estimate of 1.51 grams of carbon dioxide equivalent per gigabyte of data transmitted.
3:35 And this is just taking an average over the path and multiplying by a lifecycle estimate. So for the rest of this talk, I'm first going to talk about this idea of carbon provenance, which is how do we track these carbon costs across the lifecycle of data? And then we're going to talk a bit about how do we actually deal with these costs by altering sort of certain aspects of the data lifecycle, in particular, how do we approximate data?
4:04 So first, carbon provenance, the idea is simple. We want to associate two annotations with each data item. So for instance, a photo, an embodied annotation, which deals with the collection, transfer and storage operations, and then an operational annotation, which deals with the use phase. So in this example here, you can see that we have an example of a video lifecycle, and we have kind of incrementing costs across time. So we're associating, we're basically taking energy use across a bunch of different devices, and the local carbon intensity forming some sort of estimate and then incrementing the cost. So we're able to get an idea of how much carbon we are expending to collect, transfer, and store data, as opposed to used data. And if that kind of is higher, that might indicate that potentially we should adjust how much data we are collecting in the future.
5:00 So there's another idea, what about purchase data? So if we treat it like a good, in kind of the greenhouse gas protocol, you have to account in scope three for purchased items. So a physical good in this case. What about the data lifecycle? So what if some company buys data from another company? What do you do here? And we argue that we need to do some sort of value chain accounting, similar to what Tamar stated in the previous talk. But the goal is that we want to link these costs across different kind of entities, so companies, organizations, individuals, when a data item is sold. And just a preliminary idea of how we might do this is by a carbon header, where we kind of embed these costs in a network transfer or API call between kind of two entities.
5:52 And we state some sort of consistent method to estimate the carbon costs in this case, as well as sort of a product ID or item ID to preserve consistency. So we know what item we're talking about across organizations. This is illustrated in this figure here, where we kind of throw a carbon header into kind of the example.
6:15 Okay, so now that we've talked a bit about kind of a vision for constructing these carbon costs, what do we do about these costs? And we're going to talk a bit about a direction that's different from kind of the conventional workload shifting lens. So approximate computing is not a new idea in the systems research community. But we're going to kind of focus in on data in particular. But the key observation is that a little bit of error can go a long way. And this is not broadly applicable. There are certain data that you need kind of no information loss. But there are kind of, for example, images can tolerate error already. So we can kind of be creative with how we allocate error. And the key idea is that we want to dynamically use error to reduce carbon costs.
7:04 And in particular, I'm going to argue that there's actually no workload shifting necessary in a lot of these situations. So you need some sort of error policy. And the error policy basically specifies how do we set kind of the error according to the conditions of carbon intensity. So in the top right figure here, we have a lossy compression algorithm, which is just uniform quantization and GZIP. And we're looking at sort of the storage savings that we get when we add error. So the x-axis is the error. And the y-axis is the storage size. So if you look at the error right there, basically what that's saying is that at 1% worst-case error, we can get a factor of 10 in terms of space saving. So that's a pretty powerful technique if we're trying to optimize ongoing storage costs.
7:56 And then in the bottom, it's just illustrating the idea that we can vary the error of the approximation according to carbon intensity. So kind of one lens we can look at this through is the idea of carbon-adaptive data science. So in certain workloads that can tolerate error, maybe in an approximate query processing situation, we can basically adapt kind of the error of our estimate. And in this case, we're going to look at the mean of a stream. So you see there's five values here. And if the carbon intensity is high, we can simply sample a subset of these values. So let's say three, which are the brackets right here. And if the carbon intensity is low, we can just simply use all five values. So in this instance, we're actually adapting kind of the energy that is used to execute the query instead of moving it across space or time.
8:52 And this estimator is unbiased still because it's a random sample. So in SIGMOD of this year, we proposed this idea of multi-resolution compression. So I started thinking about what are ways we could actually adapt sort of the encoding that is sent in a network transfer according to carbon intensity. So a multi-resolution compression algorithm simply kind of cleverly combines sub-encodings that have different errors and sizes. So there's different storage sizes for each of the encodings. So in this instance, we have a red encoding and a green encoding. And the red encoding is smaller than the green encoding. So in this figure here, when the carbon intensity is high, we can send the smaller encoding and vice versa. So in this case, our error policy is that we're just choosing a certain encoding to store.
9:49 And yes, there is kind of a cost to doing this, but we believe this might be applicable for more frequently accessed data items. And then the final idea, we're going to kind of shift towards what can we do about manufacturing carbon for sort of these network and storage devices by simply altering the data lifecycle. So we have this setup where the more data that we have, the more storage that is required, and then the more manufacturing carbon that results. I mean, we do kind of optimize, we're hoping that that becomes optimized in the future, but in general, this trend should hold. So there's this idea of what do we do at the end of the data lifecycle? How do we discard or reduce the quality of data in order to kind of make room for more relevant or valuable data?
10:42 So the question I'll pose is, what is the gray area between retention and deletion? So users currently only have a choice of whether to retain the data item in its original form or delete the data item. So we introduced this idea of a data wrinkle where we recursively apply like approximation operations such as JPEG over time to progressively reduce the storage size of that item. And this is only for items that can tolerate information loss, but this object basically captures a distinct point in time where we trade error epsilon for beta in storage space, essentially. And this is illustrated in this right-hand figure right here, where we have a photo, and we are recursively applying JPEG compression to this photo at maybe a yearly interval.
11:34 And we're getting kind of a space savings that allows us to store other data in the storage device. All right. To summarize, first, I talked about this idea of data sustainability, which is simply that the proliferation of sensing devices creates kind of this large-scale volume issue, and this can come at a cost to the environment. Then I talked about carbon provenance, which is simply an automated lifecycle for data that uses kind of simple annotation machinery and defines these embodied operational categories. And then finally, I talked a bit about carbon responsive data, which is when in certain use cases we can use error to reduce carbon costs. And I defined three kind of open problems here. Thanks. All right. Do we have time for a few questions?
12:37 So how much the power or the energy you could save? Of course, if you do really strict encoding, then you can send less amount of data, and then you can save energy. But what is the driving factor you're doing this? And also, the second one is how much energy or the power you could save by applying this? Yeah. So kind of the adaptive compression lens is under the assumption that some of the network devices have some degree of energy proportionality. So not all are strictly energy proportional, but the idea is if more work is being done at a certain router, for instance, we assume that kind of the energy cost is increased. So I had a question that kind of ties to the discussion we're having about Tamar's model about data embodied carbon.
13:35 I'm curious how this kind of lifecycle analysis ties to that, because it seems to have sort of an opposite view, right? That the use of the data actually generates carbon cost accounting or something like that, as well as the creation. And there's no apportionment of it, right, in the embodied carbon kind of sense. I'm curious if you could tie those two things together. Yeah, yeah. So I think we're looking kind of at data in a more broad lens. Uh, so Tamar mentioned kind of the training data aspect, uh, in this case, we're just looking kind of at the full picture. Um, but I think. It's about, yeah, the apportionment issue. We have to figure out ways to sort of take maybe a process energy estimate for a single device and then come up with a cost model in terms of how we're able to allocate energy over a given time to kind of all the involved data.
14:29 So that's something we're thinking about, but I think it's definitely an open question. Yeah, I would say the way I think about it is it's two different things. There is the embodied carbon of data, which is the, the work that went into creating, curating that data, uh, you know, the crawling, the tokenization, the deduplication and all of that. And that's, uh, the embodied. Then there is the use. Use relates to where is it stored? How much is stored? Uh, what's the read and write ratio? What's the network and so on. And it's two different aspects. Now how we put them together, maybe it's a weight function. I don't know. You know, depends on policy would be. Yeah, absolutely. I agree with that.
15:23 I want to go back to the issue of looking at the full life cycle. So if you think about the video life cycle, the video is captured, encoded, uh, you know, in a cloud and then delivered by a CDN. And then, you know, it gets consumed in a user device, right? Uh, putting carbon numbers to all of these things is a very difficult problem. Uh, so, you know, that's one of the issues. I don't know how you got the numbers, but those numbers are all difficult because they're all done by shared infrastructure. Um, there are many levels to these infrastructure and, you know, there's carbon spent at all of those levels. Um, so that's one issue. The other issue is that carbon has to be a trade-off with performance and other sorts of things, because I don't think consumers will want a lower quality video, uh, just because it reduces energy.
16:20 I mean, it has to be a performance versus, um, you know, carbon trade-off. So, yeah, so to your, so to your first question, um, this is sort of just a high-level example of the actual, like, mechanisms of how we would construct these estimates is much more difficult. Um, yeah, and it's device dependent. There's heterogeneous device types. Uh, networking is an open problem, uh, where we don't really know kind of the cost necessarily. Uh, and you kind of have to, in a coarse-grained fashion, approximate those values, um, yeah, so I think this is not sort of being presented as, like, a solved problem. This is more being presented as, uh, a high-level framework, and then we have to work on kind of the low-level details to construct these estimates.
17:08 And then can you repeat your, uh, second question, please? Yeah, yes. Yeah, so I think you, you alluded to it when you previously said the question, but I think that in this instance, where we're talking about, like, an encoding, uh, performance, like, latency is actually closely coupled kind of with, uh, carbon in this instance, uh, because as you decrease the size of the encoding, you're also speeding up kind of the latency. So I think that, uh, if quality loss were to be somewhat imperceptible to the user, then it might, uh, justify kind of the, uh, carbon reduction as well as kind of the latency side as well. Okay, let me, uh, call all the speakers.