Close Menu
Ztoog
    What's Hot
    Technology

    Elon Musk pledges to fund legal bills of users fired for posting on X

    Gadgets

    The AI-assistant wars heat up with Claude Pro, a new ChatGPT Plus rival

    Gadgets

    “Disgraceful”: Messy ToS update allegedly locks Roku devices until users give in

    Important Pages:
    • About Us
    • Contact us
    • Privacy Policy
    • Terms & Conditions
    Facebook X (Twitter) Instagram Pinterest
    Facebook X (Twitter) Instagram Pinterest
    Ztoog
    • Home
    • The Future

      What is Project Management? 5 Best Tools that You Can Try

      Operational excellence strategy and continuous improvement

      Hannah Fry: AI isn’t as powerful as we think

      FanDuel goes all in on responsible gaming push with new Play with a Plan campaign

      Gettyimages.com Is the Best Website on the Internet Right Now

    • Technology

      Iran war: How could it end?

      Democratic senators question CFTC staffing cuts in Chicago enforcement office

      Google’s Cloud AI lead on the three frontiers of model capability

      AMD agrees to backstop a $300M loan from Goldman Sachs for Crusoe to buy AMD AI chips, the first known case of AMD chips used as debt collateral (The Information)

      Productivity apps failed me when I needed them most

    • Gadgets

      macOS Tahoe 26.3.1 update will “upgrade” your M5’s CPU to new “super” cores

      Lenovo Shows Off a ThinkBook Modular AI PC Concept With Swappable Ports and Detachable Displays at MWC 2026

      POCO M8 Review: The Ultimate Budget Smartphone With Some Cons

      The Mission: Impossible of SSDs has arrived with a fingerprint lock

      6 Best Phones With Headphone Jacks (2026), Tested and Reviewed

    • Mobile

      Android’s March update is all about finding people, apps, and your missing bags

      Watch Xiaomi’s global launch event live here

      Our poll shows what buyers actually care about in new smartphones (Hint: it’s not AI)

      Is Strava down for you? You’re not alone

      The Motorola Razr FIFA World Cup 2026 Edition was literally just unveiled, and Verizon is already giving them away

    • Science

      Big Tech Signs White House Data Center Pledge With Good Optics and Little Substance

      Inside the best dark matter detector ever built

      NASA’s Artemis moon exploration programme is getting a major makeover

      Scientists crack the case of “screeching” Scotch tape

      Blue-faced, puffy-lipped monkey scores a rare conservation win

    • AI

      Online harassment is entering its AI era

      Meet NullClaw: The 678 KB Zig AI Agent Framework Running on 1 MB RAM and Booting in Two Milliseconds

      New method could increase LLM training efficiency | Ztoog

      The human work behind humanoid robots is being hidden

      NVIDIA Releases DreamDojo: An Open-Source Robot World Model Trained on 44,711 Hours of Real-World Human Video Data

    • Crypto

      Google paid startup Form Energy $1B for its massive 100-hour battery

      Ethereum Breakout Alert: Corrective Channel Flip Sparks Impulsive Wave

      Show Your ID Or No Deal

      Jane Street sued for alleged front-running trades that accelerated Terraform Labs meltdown

      Bitcoin Trades Below ETF Cost-Basis As MVRV Signals Mounting Pressure

    Ztoog
    Home » Advancements in machine learning for machine learning – Google Research Blog
    AI

    Advancements in machine learning for machine learning – Google Research Blog

    Facebook Twitter Pinterest WhatsApp
    Advancements in machine learning for machine learning – Google Research Blog
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp

    Posted by Phitchaya Mangpo Phothilimthana, Staff Research Scientist, Google DeepMind, and Bryan Perozzi, Senior Staff Research Scientist, Google Research

    With the latest and accelerated advances in machine learning (ML), machines can perceive pure language, interact in conversations, draw photographs, create movies and extra. Modern ML fashions are programmed and educated utilizing ML programming frameworks, corresponding to TensorMove, JAX, PyTorch, amongst many others. These libraries present high-level directions to ML practitioners, corresponding to linear algebra operations (e.g., matrix multiplication, convolution, and many others.) and neural community layers (e.g., 2D convolution layers, transformer layers). Importantly, practitioners needn’t fear about the best way to make their fashions run effectively on {hardware} as a result of an ML framework will robotically optimize the consumer’s mannequin by an underlying compiler. The effectivity of the ML workload, thus, will depend on how good the compiler is. A compiler sometimes depends on heuristics to resolve complicated optimization issues, typically ensuing in suboptimal efficiency.

    In this weblog publish, we current thrilling developments in ML for ML. In specific, we present how we use ML to enhance effectivity of ML workloads! Prior works, each inner and exterior, have proven that we are able to use ML to enhance efficiency of ML packages by choosing higher ML compiler choices. Although there exist just a few datasets for program efficiency prediction, they aim small sub-programs, corresponding to primary blocks or kernels. We introduce “TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphs” (introduced at NeurIPS 2023), which we not too long ago launched to gas extra analysis in ML for program optimization. We hosted a Kaggle competitors on the dataset, which not too long ago accomplished with 792 individuals on 616 groups from 66 nations. Furthermore, in “Learning Large Graph Property Prediction via Graph Segment Training”, we cowl a novel technique to scale graph neural community (GNN) coaching to deal with giant packages represented as graphs. The approach each permits coaching arbitrarily giant graphs on a tool with restricted reminiscence capability and improves generalization of the mannequin.

    ML compilers

    ML compilers are software program routines that convert user-written packages (right here, mathematical directions offered by libraries corresponding to TensorMove) to executables (directions to execute on the precise {hardware}). An ML program may be represented as a computation graph, the place a node represents a tensor operation (corresponding to matrix multiplication), and an edge represents a tensor flowing from one node to a different. ML compilers have to resolve many complicated optimization issues, together with graph-level and kernel-level optimizations. A graph-level optimization requires the context of the complete graph to make optimum choices and transforms the complete graph accordingly. A kernel-level optimization transforms one kernel (a fused subgraph) at a time, independently of different kernels.

    Important optimizations in ML compilers embrace graph-level and kernel-level optimizations.

    To present a concrete instance, think about a matrix (2D tensor):

    It may be saved in laptop reminiscence as [A B C a b c] or [A a B b C c], often known as row- and column-major reminiscence structure, respectively. One necessary ML compiler optimization is to assign reminiscence layouts to all intermediate tensors in this system. The determine beneath reveals two totally different structure configurations for the identical program. Let’s assume that on the left-hand aspect, the assigned layouts (in pink) are probably the most environment friendly choice for every particular person operator. However, this structure configuration requires the compiler to insert a copy operation to rework the reminiscence structure between the add and convolution operations. On the opposite hand, the right-hand aspect configuration is likely to be much less environment friendly for every particular person operator, however it doesn’t require the extra reminiscence transformation. The structure project optimization has to commerce off between native computation effectivity and structure transformation overhead.

    A node represents a tensor operator, annotated with its output tensor form [n0, n1, …], the place ni is the dimensions of dimension i. Layout {d0, d1, …} represents minor-to-major ordering in reminiscence. Applied configurations are highlighted in pink, and different legitimate configurations are highlighted in blue. A structure configuration specifies the layouts of inputs and outputs of influential operators (i.e., convolution and reshape). A replica operator is inserted when there’s a structure mismatch.

    If the compiler makes optimum selections, vital speedups may be made. For instance, we’ve got seen as much as a 32% speedup when selecting an optimum structure configuration over the default compiler’s configuration in the XLA benchmark suite.

    TpuGraphs dataset

    Given the above, we goal to enhance ML mannequin effectivity by enhancing the ML compiler. Specifically, it may be very efficient to equip the compiler with a discovered value mannequin that takes in an enter program and compiler configuration after which outputs the expected runtime of this system.

    With this motivation, we launch TpuGraphs, a dataset for learning value fashions for packages operating on Google’s customized Tensor Processing Units (TPUs). The dataset targets two XLA compiler configurations: structure (generalization of row- and column-major ordering, from matrices, to increased dimension tensors) and tiling (configurations of tile sizes). We present obtain directions and starter code on the TpuGraphs GitHub. Each instance in the dataset incorporates a computational graph of an ML workload, a compilation configuration, and the execution time of the graph when compiled with the configuration. The graphs in the dataset are collected from open-source ML packages, that includes fashionable mannequin architectures, e.g., ResNet, EfficientNet, Mask R-CNN, and Transformer. The dataset supplies 25× extra graphs than the biggest (earlier) graph property prediction dataset (with comparable graph sizes), and graph dimension is 770× bigger on common in comparison with current efficiency prediction datasets on ML packages. With this tremendously expanded scale, for the primary time we are able to discover the graph-level prediction activity on giant graphs, which is topic to challenges corresponding to scalability, coaching effectivity, and mannequin high quality.

    Scale of TpuGraphs in comparison with different graph property prediction datasets.

    We present baseline discovered value fashions with our dataset (structure proven beneath). Our baseline fashions are based mostly on a GNN because the enter program is represented as a graph. Node options, proven in blue beneath, encompass two elements. The first half is an opcode id, crucial data of a node, which signifies the kind of tensor operation. Our baseline fashions, thus, map an opcode id to an opcode embedding through an embedding lookup desk. The opcode embedding is then concatenated with the second half, the remainder of the node options, as inputs to a GNN. We mix the node embeddings produced by the GNN to create the fixed-size embedding of the graph utilizing a easy graph pooling discount (i.e., sum and imply). The ensuing graph embedding is then linearly remodeled into the ultimate scalar output by a feedforward layer.

    Our baseline discovered value mannequin employs a GNN since packages may be naturally represented as graphs.

    Furthermore we current Graph Segment Training (GST), a way for scaling GNN coaching to deal with giant graphs on a tool with restricted reminiscence capability in instances the place the prediction activity is on the entire-graph (i.e., graph-level prediction). Unlike scaling coaching for node- or edge-level prediction, scaling for graph-level prediction is understudied however essential to our area, as computation graphs can comprise tons of of hundreds of nodes. In a typical GNN coaching (“Full Graph Training”, on the left beneath), a GNN mannequin is educated utilizing a whole graph, that means all nodes and edges of the graph are used to compute gradients. For giant graphs, this is likely to be computationally infeasible. In GST, every giant graph is partitioned into smaller segments, and a random subset of segments is chosen to replace the mannequin; embeddings for the remaining segments are produced with out saving their intermediate activations (to keep away from consuming reminiscence). The embeddings of all segments are then mixed to generate an embedding for the unique giant graph, which is then used for prediction. In addition, we introduce the historic embedding desk to effectively receive graph segments’ embeddings and phase dropout to mitigate the staleness from historic embeddings. Together, our full technique quickens the end-to-end coaching time by 3×.

    Comparing Full Graph Training (typical technique) vs Graph Segment Training (our proposed technique).

    Kaggle competitors

    Finally, we ran the “Fast or Slow? Predict AI Model Runtime” competitors over the TpuGraph dataset. This competitors ended with 792 individuals on 616 groups. We had 10507 submissions from 66 nations. For 153 customers (together with 47 in the highest 100), this was their first competitors. We discovered many fascinating new strategies employed by the taking part groups, corresponding to:

    • Graph pruning / compression: Instead of utilizing the GST technique, many groups experimented with other ways to compress giant graphs (e.g., conserving solely subgraphs that embrace the configurable nodes and their quick neighbors).
    • Feature padding worth: Some groups noticed that the default padding worth of 0 is problematic as a result of 0 clashes with a sound characteristic worth, so utilizing a padding worth of -1 can enhance the mannequin accuracy considerably.
    • Node options: Some groups noticed that further node options (corresponding to dot common’s contracting dimensions) are necessary. A number of groups discovered that totally different encodings of node options additionally matter.
    • Cross-configuration consideration: A successful staff designed a easy layer that enables the mannequin to explicitly “examine” configs towards one another. This approach is proven to be a lot better than letting the mannequin infer for every config individually.

    We will debrief the competitors and preview the successful options on the competitors session on the ML for Systems workshop at NeurIPS on December 16, 2023. Finally, congratulations to all of the winners and thanks for your contributions to advancing analysis in ML for programs!

    NeurIPS expo

    If you have an interest in extra analysis about structured information and synthetic intelligence, we hosted the NeurIPS Expo panel Graph Learning Meets Artificial Intelligence on December 9, which coated advancing discovered value fashions and extra!

    Acknowledgements

    Sami Abu-el-Haija (Google Research) contributed considerably to this work and write-up. The analysis in this publish describes joint work with many further collaborators together with Mike Burrows, Kaidi Cao, Bahare Fatemi, Jure Leskovec, Charith Mendis, Dustin Zelle, and Yanqi Zhou.

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp

    Related Posts

    AI

    Online harassment is entering its AI era

    AI

    Meet NullClaw: The 678 KB Zig AI Agent Framework Running on 1 MB RAM and Booting in Two Milliseconds

    AI

    New method could increase LLM training efficiency | Ztoog

    AI

    The human work behind humanoid robots is being hidden

    AI

    NVIDIA Releases DreamDojo: An Open-Source Robot World Model Trained on 44,711 Hours of Real-World Human Video Data

    AI

    Personalization features can make LLMs more agreeable | Ztoog

    AI

    AI is already making online crimes easier. It could get much worse.

    AI

    NVIDIA Researchers Introduce KVTC Transform Coding Pipeline to Compress Key-Value Caches by 20x for Efficient LLM Serving

    Leave A Reply Cancel Reply

    Follow Us
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    Top Posts
    AI

    A New AI Approach for Estimating Causal Effects Using Neural Networks

    Have you ever puzzled how we are able to decide the true influence of a…

    Science

    A mysterious, incredibly energetic cosmic ray has smashed into Earth

    Illustration of an ultra-high-energy cosmic ray hitting EarthOsaka Metropolitan University/L-INSIGHT, Kyoto University/Ryuunosuke Takeshige Astronomers have…

    Science

    Weird floating crystals can stop stars ageing for billions of years

    Some large white dwarf stars appear to stop ageing for billions of years. Now we…

    Crypto

    Valkyrie Seeks SEC Approval for Ether Futures ETF

    Share this text Asset administration big Valkyrie has filed an software with the SEC for…

    Gadgets

    Elevate Your Editing: The Invaiz Grid Pro Enhances Creative Control

    The Grid Pro is a classy, customizable enhancing controller developed by Invaiz to cater to the wants of artistic customers, particularly…

    Our Picks
    AI

    Top Identity Verification Platforms (2023)

    AI

    UCL and Imperial College London Researchers Unveil Energy-Efficient Machine Learning through Task-Adaptive Reservoir Computing

    Gadgets

    15 Best Android Phones (2023): Unlocked, Cheap, Foldable

    Categories
    • AI (1,560)
    • Crypto (1,826)
    • Gadgets (1,870)
    • Mobile (1,910)
    • Science (1,939)
    • Technology (1,862)
    • The Future (1,716)
    Most Popular
    Science

    In less than 24 hours, SpaceX launched 3 rockets and tested another

    Mobile

    Samsung Galaxy S24 Ultra to feature 4K 120fps video recording

    AI

    Google AI Introduces LLM Comparator: A Step Towards Understanding the Evaluation of Large Language Models

    Ztoog
    Facebook X (Twitter) Instagram Pinterest
    • Home
    • About Us
    • Contact us
    • Privacy Policy
    • Terms & Conditions
    © 2026 Ztoog.

    Type above and press Enter to search. Press Esc to cancel.