Search arXiv⌕ Search

arXiv subjects

Joanna Moulierac

Publications and source records attributed to Joanna Moulierac.

4 recordsLinked to original sources

Wattribution: Every Joule, Every Layer - Tracing and Predicting the Energy of Language Models

Choosing or deploying a language model requires knowing its energy consumption in advance. Layer-wise estimators predict it from the architecture, but are trained on layers measured in isolation, under GPU conditions that differ from those of the complete model. We introduce Wattribution, a protocol and tool that attributes the energy of a language model to each of its layers within its actual execution, building on the buffer of timestamped NVML power samples, which we characterize for the first time to our knowledge on nine GPUs from Turing to Blackwell, and which provides a new reading every 20 ms instead of a one-second average. Using Wattribution, we collect nearly 34M per-layer values from 11 language models (0.6B to 8B parameters) over 1,548 model--configuration runs; these values are repeatable, add up to the energy of the full generation without any correction factor, and show that the prefill can account for two thirds of the energy of a run with long prompts. A lightweight layer-wise estimator trained on these measurements predicts the energy of a language model from its configuration alone, with a median absolute percentage error of 4.8% on unseen configurations, 13.1% on language models never seen during training, and 16.9% on unseen model families.

cs.AI↗

WattLayer: Get Layers Right to Estimate Inference Energy of Neural Networks

The widespread adoption of Artificial Intelligence (AI) has led to increasing concerns about energy consumption, yet there is a lack of standardized methodologies to accurately estimate AI inference energy consumption, particularly across various tasks and architectures. In this study, we propose a task independent, layer-wise energy estimation model for AI architectures. Our model is evaluated on a large dataset of more than 100,000 layers for 295 neural network architectures across 3 widely-used tasks and 3 distinct hardware platforms. Our approach achieves a median error of 19.6%, outperforming state-of-the-art methods. We further show that layer-wise decomposition generalize to new tasks without complete retraining, by leveraging shared layers across architectures. It offer tools, insights and a precise methodology to empower stakeholders in designing energy-efficient AI systems.

cs.LG↗

Small is Sufficient: Reducing the World AI Energy Consumption Through Model Selection

The energy consumption and carbon footprint of Artificial Intelligence (AI) have become critical concerns due to rising costs and environmental impacts. In response, a new trend in green AI is emerging, shifting from the "bigger is better" paradigm, which prioritizes large models, to "small is sufficient", emphasizing energy sobriety through smaller, more efficient models. We explore how the AI community can adopt energy sobriety today by focusing on model selection during inference. Model selection consists of choosing the most appropriate model for a given task, a simple and readily applicable method, unlike approaches requiring new hardware or architectures. Our hypothesis is that, as in many industrial activities, marginal utility gains decrease with increasing model size. Thus, applying model selection can significantly reduce energy consumption while maintaining good utility for AI inference. We conduct a systematic study of AI tasks, analyzing their popularity, model size, and efficiency. We examine how the maturity of different tasks and model adoption patterns impact the achievable energy savings, ranging from 1% to 98% for different tasks. Our estimates indicate that applying model selection could reduce AI energy consumption by 27.8%, saving 31.9 TWh worldwide in 2025 - equivalent to the annual output of five nuclear power reactors.

cs.CY↗

Energy Efficient Routing by Switching-Off Network Interfaces

Several studies exhibit that the traffic load of the routers only has a small influence on their energy consumption. Hence, the power consumption in networks is strongly related to the number of active network elements, such as interfaces, line cards, base chassis,... The goal thus is to find a routing that minimizes the (weighted) number of active network elements used when routing. In this paper, we consider a simplified architecture where a connection between two routers is represented as a link joining two network interfaces. When a connection is not used, both network interfaces can be turned off. Therefore, in order to reduce power consumption, the goal is to find the routing that minimizes the number of used links while satisfying all the demands. We first define formally the problem and we model it as an integer linear program. Then, we prove that this problem is not in APX, that is there is no polynomial-time constant-factor approximation algorithm. We propose a heuristic algorithm for this problem and we also prove some negative results about basic greedy and probabilistic algorithms. Thus we present a study on specific topologies, such as trees, grids and complete graphs, that provide bounds and results useful for real topologies. We then exhibit the gain in terms of number of network interfaces (leading to a global reduction of approximately 33 MWh for a medium-sized backbone network) for a set of existing network topologies: we see that for almost all topologies more than one third of the network interfaces can be spared for usual ranges of operation. Finally, we discuss the impact of energy efficient routing on the stretch factor and on fault tolerance.

cs.NI↗