TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Methods/Electric

Electric

Natural Language ProcessingIntroduced 2000167 papers
Source Paper

Description

Electric is an energy-based cloze model for representation learning over text. Like BERT, it is a conditional generative model of tokens given their contexts. However, Electric does not use masking or output a full distribution over tokens that could occur in a context. Instead, it assigns a scalar energy score to each input token indicating how likely it is given its context.

Specifically, like BERT, Electric also models p_data (x_t∣x_\t)p\_{\text {data }}\left(x\_{t} \mid \mathbf{x}\_{\backslash t}\right)p_data (x_t∣x_\t), but does not use masking or a softmax layer. Electric first maps the unmasked input x=[x_1,…,x_n]\mathbf{x}=\left[x\_{1}, \ldots, x\_{n}\right]x=[x_1,…,x_n] into contextualized vector representations h(x)=[h_1,…,h_n]\mathbf{h}(\mathbf{x})=\left[\mathbf{h}\_{1}, \ldots, \mathbf{h}\_{n}\right]h(x)=[h_1,…,h_n] using a transformer network. The model assigns a given position ttt an energy score

E(x)_t=wTh(x)_tE(\mathbf{x})\_{t}=\mathbf{w}^{T} \mathbf{h}(\mathbf{x})\_{t}E(x)_t=wTh(x)_t

using a learned weight vector www. The energy function defines a distribution over the possible tokens at position ttt as

p_θ(x_t∣x\t)=exp⁡(−E(x)_t)/Z(x_\t)p\_{\theta}\left(x\_{t} \mid \mathbf{x}_{\backslash t}\right)=\exp \left(-E(\mathbf{x})\_{t}\right) / Z\left(\mathbf{x}\_{\backslash t}\right) p_θ(x_t∣x\t​)=exp(−E(x)_t)/Z(x_\t) =exp⁡(−E(x)_t)∑_x′∈Vexp⁡(−E(REPLACE⁡(x,t,x′))_t)=\frac{\exp \left(-E(\mathbf{x})\_{t}\right)}{\sum\_{x^{\prime} \in \mathcal{V}} \exp \left(-E\left(\operatorname{REPLACE}\left(\mathbf{x}, t, x^{\prime}\right)\right)\_{t}\right)}=∑_x′∈Vexp(−E(REPLACE(x,t,x′))_t)exp(−E(x)_t)​

where REPLACE(x,t,x′)\text{REPLACE}\left(\mathbf{x}, t, x^{\prime}\right)REPLACE(x,t,x′) denotes replacing the token at position ttt with x′x^{\prime}x′ and V\mathcal{V}V is the vocabulary, in practice usually word pieces. Unlike with BERT, which produces the probabilities for all possible tokens x′x^{\prime}x′ using a softmax layer, a candidate x′x^{\prime}x′ is passed in as input to the transformer. As a result, computing pθp_{\theta}pθ​ is prohibitively expensive because the partition function Z_θ(x_\t)Z\_{\theta}\left(\mathbf{x}\_{\backslash t}\right)Z_θ(x_\t) requires running the transformer ∣V∣|\mathcal{V}|∣V∣ times; unlike most EBMs, the intractability of Z_θ(x\t)Z\_{\theta}(\mathbf{x} \backslash t)Z_θ(x\t) is more due to the expensive scoring function rather than having a large sample space.

Papers Using This Method

Integrated Switched Capacitor Array and Synchronous Charge Extraction with Adaptive Hybrid MPPT for Piezoelectric Harvesters2025-07-16Smart Ride and Delivery Services with Electric Vehicles: Leveraging Bidirectional Charging for Profit Optimisation2025-06-25Deep reinforcement learning-based joint real-time energy scheduling for green buildings with heterogeneous battery energy storage devices2025-06-07Agent-Based Decentralized Energy Management of EV Charging Station with Solar Photovoltaics via Multi-Agent Reinforcement Learning2025-05-24Control of Renewable Energy Communities using AI and Real-World Data2025-05-22Optimizing Electric Bus Charging Scheduling with Uncertainties Using Hierarchical Deep Reinforcement Learning2025-05-15Electric Bus Charging Schedules Relying on Real Data-Driven Targets Based on Hierarchical Deep Reinforcement Learning2025-05-15Leveraging Surplus Electricity: Profitability of Bitcoin Mining as a National Strategy in South Korea2025-05-01LLM-Enabled EV Charging Stations Recommendation2025-04-29Sensitivity Analysis of State Space Models for Scrap Composition Estimation in EAF and BOF2025-04-15Vehicle Dynamics Control for Simultaneous Optimization of Tire Emissions and Performance in EVs2025-04-14Modeling Scrap Composition in Electric Arc and Basic Oxygen Furnaces2025-04-13Embedding Reliability Verification Constraints into Generation Expansion Planning2025-04-06Methodology for Detecting Energy Anomalies due to Multi-Replay Attacks on Electric Vehicle Charging Infrastructure2025-04-01EVOLVE: a Value-Added Services Platform for Electric Vehicle Charging Stations2025-03-24Pruning-Based TinyML Optimization of Machine Learning Models for Anomaly Detection in Electric Vehicle Charging Infrastructure2025-03-19Large Neighborhood Search and Bitmask Dynamic Programming for Wireless Mobile Charging Electric Vehicle Routing Problems in Medical Transportation2025-03-11The Untapped Potential of Smart Charging: How EV Owners Can Save Money and Reduce Emissions Without Behavioral Change2025-03-05A Kolmogorov-Arnold Network for Explainable Detection of Cyberattacks on EV Chargers2025-03-04H-FLTN: A Privacy-Preserving Hierarchical Framework for Electric Vehicle Spatio-Temporal Charge Prediction2025-02-25