HotCarbon 2026

Evaluating LLM Knowledge Placement Techniques for Carbon-Efficiency

Rankyung Hong (University of Minnesota), Abhishek Chandra (University of Minnesota)

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:04 So next up, we have Rankyung Hong presenting Evaluating LLM Knowledge Placement Techniques for Carbon-Efficiency. Hello, good afternoon. My name is Rankyung Hong. I am from University of Minnesota, and this is a joint work with my advisor, Abhishek Chandra. So today, we're going to talk about the carbon efficiency challenge where we can think about where the LLM knowledge should be placed. So yeah, let's get started. So this is really basic. I assume when I am preparing this material, I was thinking my attendee is maybe not familiar with the LLM. So some of the slides may be like 101 style. So yeah, but I would like you to think about this basic concept related to the carbon efficiency factor. So the LLM, this is a use case.

1:14 So the first one is conversational AI. So like ChatGPT, Gemini, those things are like the basic like questionnaire based application. And another example is code generation. So the model help the developer to generate debugging like in real time using the model. And also like in terms of the content creation, like a marketer generating the draft of email with the model. Also as a researcher, I'm using the model to summarize so many different papers in a single time. So it really helped to using the LLM in a daily based life. So here, so we here in order to understand the knowledge placement, let's just think about like two strategically very different processes. So first the training. So training happens at once when you're building and when you're feeding the knowledge into the model.

2:15 So it requires a lot of resources. So we have to pay a lot of carbon costs at once upfront. So by training, we can implement the knowledge in the model. But inference phase, the model weights are fixed. And after we added all the information to the model, we can free to use the knowledge in the inference phase. But here, the inference happening every time whenever you're sending any prompt to the model and then get the response. So we have to consider it is continuously generating cost, the carbon cost over and over and over. So here, now we have to think about where we're going to place the knowledge here. So there are two different strategies. So as I mentioned briefly in the previous slide, in the parametric knowledge is bake all the information in the model while training.

3:23 So your knowledge is available any time. So you don't need to actually retrieve any knowledge externally. But on the other hand, in the non-parametric knowledge, the knowledge is not in the model itself. So you actually have to retrieve the knowledge from the external sources. So it requires some latency to bring the new knowledge into your prompt. So you have to think about that in the picture. Now, what we would like to see is, so if you consider bringing all those knowledge into the model, then you have to probably increase the model size. Because the model should contain the large information and baked in the model weights. So if you increase the model, you probably need more carbon cost. And also, you may, if by using like a big model, your latency may be increased.

4:32 But if you're not really bake all those information in the model, and you're just using the external data source, then maybe you can maintain small model. But so by using the small model, your latency will be decreased. But you need retrieval latency. So there is like a lot of things in the single picture. So what I would like to do is, I would like to understand what these three critical dimensions are playing each other. Because these three levers pull different directions. So we would understand these three factors in a single framework. By the way, one thing that I would like to point is, there is existing researches which is studying about the relationship between the model quality and latency a lot here. But there is a not specific study like considering the carbon footprint in the picture.

5:38 Because I am personally a data scientist building the model. So we normally think about the model accuracy a lot. And the engineer in the team, they really care about the latency because they have to start really fast. But nobody care about the carbon. So that's why I think there is not really active research in this domain. But if, but I think the ALT itself is very, very limited research for everyone. So if some people realize, oh, we really care about the carbon itself into the picture. So when we design, when we build, and when we deploy this model, we should consider the carbon as one of the very, very important factor in the design. So this is a three method that I am thinking related to knowledge placement perspective.

6:41 So the base, base is just the reference to compare the rest of the three methods. So if you see the middle of the, the picture in the middle, the green box is a question and the blue one is a context for the question. And then the gray is a prompt feed to the model, which is a color in orange, and the yellow is the answer. So in the base, I'm not providing any context regarding the question. So the question only attached to the prompt and then sent to the LLM to get the answer. The second one is RAG. So before starting the inference phase, I put, I inserted all the context as a vector in the RAG database. And then once each, each question should be, when the question is added to the prompt, it retrieved the related information and then attached to the, attached to the prompt along with the question.

7:47 And the third one is caching. Here, cache, I use the vLLM cache model. So I just turn on the cache option of the vLLM so that internally, somehow, the reusable knowledge can be cached in the key value storage, key value cache, so that some of the information, some of the knowledge can be lived in there. So that's why it's not actively controlled. We cannot really actively control what information lives in the model. But I just consider this is one of the method in terms of the knowledge placement. And the third one is fine tuning. So before starting the inference, I do the fine tuning using the LoRA model so that the model can understand the context of the question beforehand. This is an experimental design.

8:52 I use the two-by-two model. So there is a small and large model. I know these two models are still small, but I consider a TinyLlama model as a small model. And the Llama 8 billion model as a large model. And use two different question-answer data set. The SQuAD is having very short context relatively compared to the TriviaQA. So I consider small and large context in here. And I run this model in a single GPU A100 GPU in the Lambda Cloud. And also at the bottom, there is a carbon equation. Here there is operational carbon and embodied carbon. Energy is calculated using the CodeCarbon library. And then grid CI is set as an average of US CI value. And then the data center overhead is applied to there as an operational carbon.

9:59 And as an embodied carbon, amortized build cost for the single GPU is used based on the actual used GPU hours. So the first result is showing which method win. So X axis show like 1B and 8B is a small and large model. SQ and TQ is a small and large context. And the left panel shows the quality. Middle panel shows the latency per query. And the right panel shows the carbon per query. So as you can see, the orange bars are fine-tuning one. And the gray bar baseline. As you can see, the fine-tuning has highest quality and the lowest latency and the smallest carbon efficiency. So in every axis, fine-tune wins. Then why fine-tune wins? We look at the number of output token. So here, since the fine-tuning baked all the information in the model, so even though they use very few output token, they hit the gold answer really well compared to the other methods.

11:24 So that's why it directly used, so decoding energy gets less and it ended up using the lower carbon. Now this slide shows the effect between the model size and the quality and carbon. The green bar is a small model and orange bar is a large model. And left side bars showing the small context and the right side showing the large context. So left panel shows the quality, so model accuracy. The left side, the short context, there is like 20% of accuracy increase when you're using the larger model. But if you look at the right panel, there is like three times bigger carbon usage. If you look at the larger context, then there is accuracy, like two times of accuracy improvement, but five times more carbon was used.

12:30 So here are the messages. As a practitioner, if you are aware of deciding when to stop or how to build this model in terms of the model accuracy, then you need to find like a sweet spot between the accuracy and carbon emission. This is the last slide. This slide shows how the inference placement in different energy grid results in different carbon emission. So if you see in both the graph, especially the purple bars, initial carbon cost indicating the carbon usage for the training. So training happens in the clean grid for the both cases. And, but if you look at the x-axis, it's a number of queries serving on the time. So left graph, the inference happens in the dirty grid. And the right graph, the inference happens in the clean grid.

13:43 So actually the increase, the slope of the slope of the carbon, the left side, which is running in the dirty grid, the slope is steeper than the right side. So that's why the break even number, break even point based on the number of queries, it is smaller than the right side. But in terms of the number of queries for the break even point, it looks like left one is better, but we have to think about that. The inference, we have to do like forever. If nothing, retraining is not happening. So in general, this message is showing the actual carbon ceiling is dependent on the placement of the inference instances. So everything all together, I have a playbook for you and for everyone. First one is, you have to do fine tuning if your data is stable enough.

14:52 So what they mean is, if your data does not really require fine tuning over and over and over, then fine tuning is good for every aspect. Second, run your inference on the clean grid, because training happens only once, but inference happens every time. Three, use the smallest model if it fits your constraints. Four, use RAG system for some edge cases. If your data is keep changing, or if your data is really rare, so the training is not actually really hard to capture. I mean, it's hard to generalize some knowledge. In that case, using RAG is worth for the carbon cost. The number five, layer caching on top. I didn't really heavily mention about the caching, but caching is always in between the RAG and fine tuning.

15:56 But if you think about the caching technique, you can use that caching technique with RAG or with the fine tuning option. So just layer the caching on top of your choice. So this is our study and the future direction. This result actually showing when your data set is like in distribution data set. So for example, actually the carbon drop was lead by the drop of output token. What if your application is code generation? Generating the small code is not really guaranteed because it is generating so much output token. So it's a very different data type. So we need to think about like a different type of data set in the same format. The next one is a hybrid LoRA and RAG. We don't need to actually choose one of those.

17:08 So if your data changing, we have to frequently fine tuning the model once the new data comes in. So we have to think about like hybrid way with a carbon accuracy and latency. And the last point is distributed setting. So here I tested only in the single GPU. But if we infer like using multiple instance, then caching, cache hit may be another factor that we have to consider in terms of the model accuracy. And also the data transmission between workers and worker can be another factor. So these are very important, interesting future direction that we summarize. Thank you. Thank you. If you have any question, please. Yeah. Ask. Okay. So I've looked at RAG systems on some of the simpler benchmarks, like TriviaQA, I think is what you used.

18:26 And some of the recent models don't need any RAG at all. They like, like, if you don't give them any of the documents, they'll still know the answer. And I think that's partially because maybe TriviaQA made its way into the training set. But also, right, like, you know, that benchmark was made for a different time, beyond the point where we're testing them now on like things. And so I'm curious, right, like, real use cases have a mix of these things. Sometimes they're really, like, leading-edge workloads, very specific. And other times, they can just get by on this, like, general knowledge. And so I'm curious, like, how does that difference in workload factor into decision-making around this? Actually, this is a very good question. Because I have exactly opposite experience in my real life.

19:27 Because I, by the way, I work with Target and then I build a model for the item recommendations. But here, the item catalog change every day. So we cannot really bake that information in the model. So actually, we tried to fine-tune the model using our item catalog. But the result was not good. It's actually opposite to the, like, in-distribution case that I presented today. And you maybe have a similar experience of this, my study. But in real life, especially in, like, retail, I don't know other application well. But there are a lot of, like, lively moving data set. So, and then also small company don't have that much money. So we cannot really train the model. So that's why the RAG system is, like, good solution for those kind of use cases.

20:21 So it's still worth to research about using, like, hybriding, like, model training and using RAG in terms of the carbon model accuracy and latency. And I think that's kind of similar to the previous question, but I'm curious. If you look at not even other tasks, but larger scale models, does the break-even point change where maybe even more now? So the usefulness of RAG, maybe on a smaller scale, would be higher. Like, is that something that you've thought about or seen? So here, actually, the break point is the relative slope between the fine-tuning and RAG. So I think I have to rethink about, I mean, this is one good way to think about the break-even point, comparing, like, fine-tuning and RAG. But we have to think about the different, only look at the fine-tuning, only look at the cost for the fine-tuning and using the inference-wise.

21:42 So I don't have, like, a clear answer for that for now. But, yeah, it's good to work to look at how we can define the break point and, yeah, things like that. Thank you. Thank you. Thank you. Thank you.