<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Geo Zhang on Medium]]></title>
        <description><![CDATA[Stories by Geo Zhang on Medium]]></description>
        <link>https://medium.com/@geozhang?source=rss-39877dfc6d16------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8GoVOMiUc3dPQf3raR_COA.jpeg</url>
            <title>Stories by Geo Zhang on Medium</title>
            <link>https://medium.com/@geozhang?source=rss-39877dfc6d16------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:41:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@geozhang/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beyond BERT’s Embeddings: Discovering New SOTA Encoders]]></title>
            <link>https://geozhang.medium.com/beyond-berts-embeddings-discovering-new-sota-encoders-358993c41081?source=rss-39877dfc6d16------2</link>
            <guid isPermaLink="false">https://medium.com/p/358993c41081</guid>
            <category><![CDATA[bert]]></category>
            <category><![CDATA[encoder]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[sota]]></category>
            <dc:creator><![CDATA[Geo Zhang]]></dc:creator>
            <pubDate>Sat, 08 Mar 2025 06:28:18 GMT</pubDate>
            <atom:updated>2025-03-08T06:28:18.758Z</atom:updated>
            <content:encoded><![CDATA[<p>In 2018, BERT (Bidirectional Encoder Representations from Transformers) marked a significant milestone in the advancement of text embedding and understanding models. Now, more than six years later, the AI landscape has notably shifted toward decoder-based large language models (LLMs) such as ChatGPT, Claude, Gemini, Deepseek, Grok, Qwen, … primarily used for generative AI tasks. These generative models excel in content creation, question-answering, and conversational applications.</p><p>However, despite the impressive capabilities of large generative models, their substantial size and computational demands make them impractical for lightweight, offline devices or scenarios requiring rapid response. Many specialized tasks — particularly those requiring efficiency, low latency, and scalability — still greatly benefit from compact, task-focused text embedding models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*89mToSuhFJb201rbVqFn3w.png" /></figure><p><strong>So, what exactly are text embeddings?</strong></p><p>According to OpenAI, <a href="https://platform.openai.com/docs/guides/embeddings">text embeddings</a> measure the semantic relatedness between text strings. Put simply, embeddings convert text into numerical vector representations, capturing essential semantic and contextual features. These embeddings are versatile and widely utilized in various applications, including search relevance, document clustering, recommendation systems, anomaly detection, and text classification.</p><p>Following BERT, several embedding-focused models emerged, including RoBERTa, DistilBERT, Sentence-BERT, and others, each refining or expanding upon BERT’s architecture and approach. This evolution raises an essential question:</p><p><strong>What constitutes the current state-of-the-art (SOTA) encoder models for generating high-quality text embeddings today?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GRSF7jgX4ZbmBaoUcWaUg.png" /><figcaption>Overall pre-training and fine-tuning procedures for BERT (Devlin, Jacob, et al. “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.” arXiv preprint arXiv:1810.04805 (2018).)</figcaption></figure><h3>(1) MTEB <strong>Embedding Leaderboard</strong></h3><p><strong>(</strong>https://huggingface.co/spaces/mteb/leaderboard)</p><p>The primary resource I recommend for evaluating text embedding models is the <strong>Massive Text Embedding Benchmark (MTEB)</strong>, available on <a href="https://huggingface.co/spaces/mteb">Hugging Face</a> and <a href="https://github.com/embeddings-benchmark">GitHub</a>. MTEB rigorously assesses a variety of models across numerous datasets and tasks. It maintains an actively updated leaderboard that highlights the best-performing embedding models to date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyyQpuFlVGlPVKQWVsd8dw.png" /><figcaption>Enevoldsen, Kenneth, et al. “MMTEB: Massive Multilingual Text Embedding Benchmark.” <em>arXiv preprint arXiv:2502.13595</em> (2025).</figcaption></figure><p>We can conveniently filter models on the MTEB leaderboard by language, domain, and task type to identify the current state-of-the-art (SOTA) embedding models. An interesting observation is that, despite recent models significantly increasing in size — from under 1 billion parameters up to over 100 billion — the corresponding performance improvements on embedding tasks are often minimal. This suggests that embedding performance doesn’t scale linearly with parameter count, highlighting the importance of efficiency and model design over sheer model size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFOO_bf2H0hr7poji6UphQ.png" /><figcaption>Model test on all dataset displayed (<a href="https://huggingface.co/spaces/mteb/leaderboard">https://huggingface.co/spaces/mteb/leaderboard</a>)</figcaption></figure><h3>(2) Paper with Code datasets</h3><p><a href="https://paperswithcode.com/">Papers with Code</a> is an open-source platform to share research findings and promote science. It also provides access to numerous open datasets for model evaluation. Selecting a dataset reveals a leaderboard displaying the top-performing models and their evaluation scores. For example, the Stanford Sentiment Treebank (SST) dataset lists its current SOTA models below the description.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*5KFLCuG5YNlZaw7SAPLlag.png" /><figcaption>The leaderboard for SST (<a href="https://paperswithcode.com/dataset/sst">https://paperswithcode.com/dataset/sst</a>)</figcaption></figure><p>Also, we can explore well-known benchmarks such as GLUE (General Language Understanding Evaluation), each accompanied by their own regularly updated leaderboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9sLNOz_g4KEBXOQA0__uA.png" /><figcaption>A leaderboard demo (<a href="https://paperswithcode.com/sota/natural-language-inference-on-rte">https://paperswithcode.com/sota/natural-language-inference-on-rte</a>)</figcaption></figure><p>While Papers with Code is a valuable source for identifying relevant datasets and SOTA models, it’s important to note that the frequency of updates may vary significantly, as it relies heavily on contributions from the original authors and the research community.</p><h3>(3) Other (commercial/academia) sources</h3><p>API providers such as <a href="https://platform.openai.com/docs/guides/embeddings">OpenAI</a> also offer their state-of-the-art embedding models. However, their usage typically involves costs calculated per token via their API services and not open source. Additionally, research papers often include comprehensive comparisons of various embedding models evaluated across multiple datasets, making these papers valuable resource for identifying current SOTA embedding models.</p><p><strong>Please help me add more sources if possible! Thanks!</strong></p><h3>References:</h3><ol><li><a href="https://research.google/blog/open-sourcing-bert-state-of-the-art-pre-training-for-natural-language-processing/">https://research.google/blog/open-sourcing-bert-state-of-the-art-pre-training-for-natural-language-processing/</a></li><li><a href="https://platform.openai.com/docs/guides/embeddings">https://platform.openai.com/docs/guides/embeddings</a></li><li>Devlin, Jacob, et al. “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.” arXiv preprint arXiv:1810.04805 (2018).</li><li><a href="https://huggingface.co/spaces/mteb/leaderboard">https://huggingface.co/spaces/mteb/leaderboard</a></li><li><a href="https://paperswithcode.com/dataset/glue">https://paperswithcode.com/dataset/glue</a></li><li>Wang, Alex, et al. “GLUE: A multi-task benchmark and analysis platform for natural language understanding.” <em>arXiv preprint arXiv:1804.07461</em> (2018).</li><li>Zhou, Ce, et al. “A comprehensive survey on pretrained foundation models: A history from BERT to ChatGPT.” International Journal of Machine Learning and Cybernetics (2024): 1–65.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=358993c41081" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Massive Energy for Massive GPU Empowering AI]]></title>
            <link>https://medium.com/data-science/massive-energy-for-massive-gpu-empowering-ai-dff59ae1da44?source=rss-39877dfc6d16------2</link>
            <guid isPermaLink="false">https://medium.com/p/dff59ae1da44</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[energy]]></category>
            <dc:creator><![CDATA[Geo Zhang]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 03:00:28 GMT</pubDate>
            <atom:updated>2024-10-31T19:33:08.113Z</atom:updated>
            <content:encoded><![CDATA[<h3>Massive Energy for Massive GPUs Empowering AI</h3><h4>Massive GPUs for AI model training and deployment require significant energy. As AI scales, optimizing energy efficiency will be crucial</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xRAf67i75_zbOLqL" /><figcaption>Photo by <a href="https://unsplash.com/@lucaskphoto?utm_source=medium&amp;utm_medium=referral">Lucas Kepner</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>OpenAI founder Sam Altman has made ambitious calculations, suggesting a potential investment scale of $7 trillion in GPUs for an AI future. This number, rejected by industry leaders like Nvidia’s founder Jensen Huang, implies a monumental acquisition of GPUs, requiring enormous energy, almost on a galactic scale. To put this in perspective, Nvidia’s current market worth is around $3 trillion, below half of Altman’s proposed investment. When compared to the GDPs of the United States (approximately $26.8 trillion) and China (around $17.8 trillion), this $7 trillion investment is still indeed staggering.</p><p>Despite this, the AI era is still in its infancy, and achieving such a scale might necessitate even more advanced computational structures. This brings us to a critical underlying question: how much energy will be needed to power computational units and data centers?</p><p>Let&#39;s take a look at some simple and direct numbers from three perspectives,</p><blockquote>1. Energy consumption per computational unit</blockquote><blockquote>2. Energy costs of training/operating modern models</blockquote><blockquote>3. Energy supply and demand</blockquote><h3>Energy consumption per computational unit</h3><p>From a user perspective, some video game enthusiasts have built their own PCs equipped with high-performance GPUs like the NVIDIA GeForce RTX 4090. Interestingly, this GPU is also capable of handling small-scale deep-learning tasks. The RTX 4090 requires a power supply of 450 W, with a recommended total power supply of 850 W (in most cases you don’t need that and will not run under full load). If your task runs continuously for a week, that translates to 0.85 kW × 24 hours × 7 days = 142.8 kWh per week. In California, PG&amp;E charges as high as 50 cents per kWh for residential customers, meaning you would spend around $70 per week on electricity. Additionally, you’ll need a CPU and other components to work alongside your GPU, which will further increase the electricity consumption. This means the overall electricity cost can be even higher.</p><p>Now, your AI business is going to accelerate. According to the manufacturer, an H100 Tensor Core GPU has a maximum thermal design power (TDP) of around 700 Watts, depending on the specific version. This is the energy required to cool the GPU under a full working load. A reliable power supply unit for this high-performance deep-learning tool is typically around 1600W. If you use the NVIDIA DGX platform for your deep-learning tasks, a single DGX H100 system, equipped with 8 H100 GPUs, consumes approximately 10.2 kW. For even greater performance, an NVIDIA DGX SuperPOD can include anywhere from 24 to 128 NVIDIA DGX nodes. With 64 nodes, the system could conservatively consume about 652.8 kW. While your startup might aspire to purchase this millions-dollar equipment, the costs for both the cluster and the necessary facilities would be substantial. In most cases, it makes more sense to rent GPU clusters from cloud computation providers. Focusing on energy costs, commercial and industrial users typically benefit from lower electricity rates. If your average cost is around 20 cents per kWh, operating 64 DGX nodes at 652.8 kW for 24 hours a day, 7 days a week would result in 109.7 MWh per week. This could cost you approximately $21,934 per week.</p><p>According to rough estimations, a typical family in California would spend around 150 kWh per week on electricity. Interestingly, this is roughly the same cost you’d incur if you were to run a model training task at home using a high-performance GPU like the RTX 4090.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lpS-O38d8U9FbKauWdEJSA.png" /><figcaption><strong>Energy Cost Comparison</strong></figcaption></figure><p>From this table, we may observe that operating a SuperPOD with 64 nodes could consume as much energy in a week as a small community.</p><h3>Energy costs of training/operating AI models</h3><h4>Training AI models</h4><p>Now, let’s dive into some numbers related to modern AI models. OpenAI has never disclosed the exact number of GPUs used to train ChatGPT, but a rough estimate suggests it could involve thousands of GPUs running continuously for several weeks to months, depending on the release date of each ChatGPT model. The energy consumption for such a task would easily be on the megawatt scale, leading to costs in the thousands scale of MWh.</p><p>Recently, <a href="https://llama.meta.com/">Meta released LLaMA 3.1</a>, described as their “most capable model to date.” According to Meta, this is their largest model yet, trained on over 16,000 H100 GPUs — the first LLaMA model trained at this scale.</p><p>Let’s break down the numbers: LLaMA 2 was released in July 2023, so it’s reasonable to assume that LLaMA 3 took at least a year to train. While it’s unlikely that all GPUs were running 24/7, we can estimate energy consumption with a 50% utilization rate:</p><p>1.6 kW × 16,000 GPUs × 24 hours/day × 365 days/year × 50% ≈ 112,128 MWh</p><p>At an estimated cost of $0.20 per kWh, this translates to around <strong>$22.4 million</strong> in energy costs. This figure only accounts for the GPUs, excluding additional energy consumption related to data storage, networking, and other infrastructure.</p><p>Training modern large language models (LLMs) requires power consumption on a megawatt scale and represents a million-dollar investment. This is why modern AI development often excludes smaller players.</p><h4>Operating AI models</h4><p>Running AI models also incurs significant energy costs, as each inquiry and response requires computational power. Although the energy cost per interaction is small compared to training the model, the cumulative impact can be substantial, especially if your AI business achieves large-scale success with billions of users interacting with your advanced LLM daily. Many insightful articles discuss this issue, including <a href="https://www.trgdatacenters.com/resource/ai-chatbots-energy-usage-of-2023s-most-popular-chatbots-so-far/#:~:text=The%20training%20time%20of%20GPT,%2Dhours%2C%20or%207%2C200%20MWh.">comparisons of energy costs among companies operating ChatBots</a>. The conclusion is that, since each query could cost from 0.002 to 0.004 kWh, currently, popular companies would spend hundreds to thousands of MWh per year. And this number is still increasing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zWlv6fzQnMtiLui5" /><figcaption>Photo by <a href="https://unsplash.com/@solenfeyissa?utm_source=medium&amp;utm_medium=referral">Solen Feyissa</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine for a moment that one billion people use a ChatBot frequently, averaging around 100 queries per day. The energy cost for this usage can be estimated as follows:</p><p>0.002 kWh × 100 queries/day × 1e9 people × 365 days/year ≈ 7.3e7 MWh/year</p><p>This would require an 8000 MW power supply and could result in an energy cost of approximately $14.6 billion annually, assuming an electricity rate of $0.20 per kWh.</p><h3>Energy supply and demand</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tgogOzz2Xk4JuSw2" /><figcaption>Photo by <a href="https://unsplash.com/@matthewhenry?utm_source=medium&amp;utm_medium=referral">Matthew Henry</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The largest power plant in the U.S. is the <a href="https://en.wikipedia.org/wiki/Grand_Coulee_Dam">Grand Coulee Dam</a> in Washington State, with a capacity of 6,809 MW. The largest solar farm in the U.S. is <a href="https://en.wikipedia.org/wiki/Solar_Star">Solar Star</a> in California, which has a capacity of 579 MW. In this context, no single power plant is capable of supplying all the electricity required for a large-scale AI service. This becomes evident when considering the annual electricity generation statistics provided by <a href="https://www.eia.gov/todayinenergy/detail.php?id=46676">EIA (Energy Information Administration)</a>,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9bRAmE2jK8lK9Grckef1Wg.png" /><figcaption><strong>Source: </strong>U.S. Energy Information Administration, <a href="https://www.eia.gov/outlooks/aeo/"><em>Annual Energy Outlook 2021</em></a> (AEO2021)</figcaption></figure><p>The 73 billion kWh calculated above would account for approximately 1.8% of the total electricity generated annually in the US. However, it’s reasonable to believe that this figure could be much higher. According to some media reports, when considering all energy consumption related to AI and data processing, the impact could be around 4% of the total U.S. electricity generation.</p><p>However, this is the current energy usage.</p><p>Today, Chatbots primarily generate text-based responses, but they are increasingly capable of producing two-dimensional images, “three-dimensional” videos, and other forms of media. The next generation of AI will extend far beyond simple Chatbots, which may provide high-resolution images for spherical screens (e.g. for <a href="https://gotickets.com/venues/msg-sphere">Las Vegas Sphere</a>), 3D modeling, and interactive robots capable of performing complex tasks and executing deep logistical. As a result, the energy demands for both model training and deployment are expected to increase dramatically, far exceeding current levels. Whether our existing power infrastructure can support such advancements remains an open question.</p><p>On the sustainability front, the carbon emissions from industries with high energy demands are significant. One approach to mitigating this impact involves using renewable energy sources to power energy-intensive facilities, such as data centers and computational hubs. A notable example is the collaboration between <a href="https://blog.google/outreach-initiatives/sustainability/google-fervo-geothermal-energy-partnership/">Fervo Energy and Google</a>, where geothermal power is being used to supply energy to a data center. However, the scale of these initiatives remains relatively small compared to the overall energy needs anticipated in the upcoming AI era. There is still much work to be done to address the challenges of sustainability in this context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sj2DLMDM8mTJpAw7" /><figcaption>Photo by <a href="https://unsplash.com/@benwhitephotography?utm_source=medium&amp;utm_medium=referral">Ben White</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>Please correct any numbers if you find them unreasonable.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dff59ae1da44" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/massive-energy-for-massive-gpu-empowering-ai-dff59ae1da44">Massive Energy for Massive GPU Empowering AI</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>