版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Time-series Generative Adversarial Networks Jinsung Yoon University of California, Los Angeles, USA Daniel Jarrett University of Cambridge, UK daniel.jarrettmaths.cam.ac.uk Mihaela van der Schaar University of Cambridge, UK University of California, Los Angeles, USA Alan Turing
2、Institute, UK mv472cam.ac.uk, Abstract A good generative model for time-series data should preserve temporal dynamics, in the sense that new sequences respect the original relationships between variables across time. Existing methods that bring generative adversarial networks (GAN
3、s) into the sequential setting do not adequately attend to the temporal correlations unique to time-series data. At the same time, supervised models for sequence predictionwhich allow fi ner control over network dynamicsare inherently deterministic. We propose a novel framework for generating realis
4、tic time-series data that combines the fl exibility of the unsupervised paradigm with the control afforded by supervised training. Through a learned embedding space jointly optimized with both supervised and adversarial objectives, we encourage the network to adhere to the dynamics of the training d
5、ata during sampling. Empirically, we evaluate the ability of our method to generate realistic samples using a variety of real and synthetic time-series datasets. Qualitatively and quantitatively, we fi nd that the proposed framework consistently and signifi cantly outperforms state-of-the-art benchm
6、arks with respect to measures of similarity and predictive ability. 1Introduction What is a good generative model for time-series data? The temporal setting poses a unique challenge to generative modeling. A model is not only tasked with capturing the distributions of features within each time point
7、, it should also capture the potentially complex dynamics of those variables across time. Specifi cally, in modeling multivariate sequential datax1:T= (x1,.,xT), we wish to accurately capture the conditional distribution p(xt|x1:t1) of temporal transitions as well. On the one hand, a great deal of w
8、ork has focused on improving the temporal dynamics of au- toregressive models for sequence prediction. These primarily tackle the problem of compounding errors during multi-step sampling, introducing various training-time modifi cations to more accurately refl ect testing-time conditions 1,2,3. Auto
9、regressive models explicitly factor the distribution of sequences into a product of conditionals Q tp(xt|x1:t1). However, while useful in the context of forecasting, this approach is fundamentally deterministic, and is not truly generative in the sense that new sequences can be randomly sampled from
10、 them without external conditioning. On the other hand, a separate line of work has focused on directly applying the generative adversarial network (GAN) framework to sequential data, primarily by instantiating recurrent networks for the roles of generator and discriminator 4,5,6. While straightforw
11、ard, the adversarial objective seeks to modelp(x1:T)directly, without leveraging the autoregressive prior. Importantly, simply summing the standard GAN loss over sequences of vectors may not be suffi cient to ensure that the dynamics of the network effi ciently captures stepwise dependencies present
12、 in the training data. 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada. In this paper, we propose a novel mechanism to tie together both threads of research, giving rise to a generative model explicitly trained to preserve temporal dynamics. We present Time
13、-series Generative Adversarial Networks (TimeGAN), a natural framework for generating realistic time-series data in various domains. First, in addition to the unsupervised adversarial loss on both real and synthetic sequences, we introduce a stepwise supervised loss using the original data as superv
14、ision, thereby explicitly encouraging the model to capture the stepwise conditional distributions in the data. This takes advantage of the fact that there is more information in the training data than simply whether each datum is real or synthetic; we can expressly learn from the transition dynamics
15、 from real sequences. Second, we introduce an embedding network to provide a reversible mapping between features and latent representations, thereby reducing the high-dimensionality of the adversarial learning space. This capitalizes on the fact the temporal dynamics of even complex systems are ofte
16、n driven by fewer and lower-dimensional factors of variation. Importantly, the supervised loss is minimized by jointly training both the embedding and generator networks, such that the latent space not only serves to promote parameter effi ciencyit is specifi cally conditioned to facilitate the gene
17、rator in learning temporal relationships. Finally, we generalize our framework to handle the mixed-data setting, where both static and time-series data can be generated at the same time. Our approach is the fi rst to combine the fl exibility of the unsupervised GAN framework with the control afforde
18、d by supervised training in autoregressive models. We demonstrate the advantages in a series of experiments on multiple real-world and synthetic datasets. Qualitatively, we conduct t-SNE 7 and PCA 8 analyses to visualize how well the generated distributions resemble the original distributions. Quant
19、itatively, we examine how well a post-hoc classifi er can distinguish between real and generated sequences. Furthermore, by applying the train on synthetic, test on real (TSTR) framework 5,9 to the sequence prediction task, we evaluate how well the generated data preserves the predictive characteris
20、tics of the original. We fi nd that TimeGAN achieves consistent and signifi cant improvements over state-of-the-art benchmarks in generating realistic time-series. 2Related Work TimeGAN is a generative time-series model, trained adversarially and jointly via a learned embedding space with both super
21、vised and unsupervised losses. As such, our approach straddles the intersection of multiple strands of research, combining themes from autoregressive models for sequence prediction, GAN-based methods for sequence generation, and time-series representation learning. Autoregressive recurrent networks
22、trained via the maximum likelihood principle 10 are prone to potentially large prediction errors when performing multi-step sampling, due to the discrepancy between closed-loop training (i.e. conditioned on ground truths) and open-loop inference (i.e. conditioned on previous guesses). Based on curri
23、culum learning 11, Scheduled Sampling was fi rst proposed as a remedy, whereby models are trained to generate output conditioned on a mix of both previous guesses and ground-truth data 1. Inspired by adversarial domain adaptation 12, Professor Forcing involved training an auxiliary discriminator to
24、distinguish between free-running and teacher-forced hidden states, thus encouraging the networks training and sampling dynamics to converge 2. Actor-critic methods 13 have also been proposed, introducing a critic conditioned on target outputs, trained to estimate next-token value functions that guid
25、e the actors free-running predictions 3. However, while the motivation for these methods is similar to ours in accounting for stepwise transition dynamics, they are inherently deterministic, and do not accommodate explicitly sampling from a learned distributioncentral to our goal of synthetic data g
26、eneration. On the other hand, multiple studies have straightforwardly inherited the GAN framework within the temporal setting. The fi rst (C-RNN-GAN) 4 directly applied the GAN architecture to sequential data, using LSTM networks for generator and discriminator. Data is generated recurrently, taking
27、 as inputs a noise vector and the data generated from the previous time step. Recurrent Conditional GAN (RCGAN) 5 took a similar approach, introducing minor architectural differences such as dropping the dependence on the previous output while conditioning on additional input 14. A multitude of appl
28、ied studies have since utilized these frameworks to generate synthetic sequences in such diverse domains as text 15 , fi nance 16, biosignals 17, sensor 18 and smart grid data 19, as well as renewable scenarios 20. Recent work 6 has proposed conditioning on time stamp information to handle irregular
29、ly sampling. However, unlike our proposed technique, these approaches rely only on the binary adversarial feedback for learning, which by itself may not be suffi cient to guarantee specifi cally that the network effi ciently captures the temporal dynamics in the training data. 2 Finally, representat
30、ion learning in the time-series setting primarily deals with the benefi ts of learning compact encodings for the benefi t of downstream tasks such as prediction 21, forecasting 22, and classifi cation 23. Other works have studied the utility of learning latent representations for purposes of pre-tra
31、ining 24, disentanglement 25, and interpretability 26. Meanwhile in the static setting, several works have explored the benefi t of combining autoencoders with adversarial training, with objectives such as learning similarity measures 27 , enabling effi cient inference 28, as well as improving gener
32、ative capability 29an approach that has subsequently been applied to generating discrete structures by encoding and generating entire sequences for discrimination 30. By contrast, our proposed method generalizes to arbitrary time-series data, incorporates stochasticity at each time step, as well as
33、employing an embedding network to identify a lower-dimensional space for the generative model to learn the stepwise distributions and latent dynamics of the data. Figure 1(a) provides a high-level block diagram of TimeGAN, and Figure 2 gives an illustrative implementation, with C-RNN-GAN and RCGAN s
34、imilarly detailed. For purposes of expository and experimental comparison with existing methods, we employ a standard RNN parameterization. A table of related works with additional detail can be found in the Supplementary Materials. 3Problem Formulation Consider the general data setting where each i
35、nstance consists of two elements: static features (that do not change over time, e.g. gender), and temporal features (that occur over time, e.g. vital signs). Let S be a vector space of static features, X of temporal features, and let S S,X X be random vectors that can be instantiated with specifi c
36、 values denotedsandx. We consider tuples of the form(S,X1:T)with some joint distributionp. The lengthTof each sequence is also a random variable, the distribution of whichfor notational conveniencewe absorb intop. In the training data, let individual samples be indexed byn 1,.,N, so we can denote th
37、e training dataset D = (sn,xn,1:Tn)N n=1. Going forward, subscripts n are omitted unless explicitly required. Our goal is to use training dataDto learn a density p(S,X1:T)that best approximatesp(S,X1:T). This is a high-level objective, anddepending on the lengths, dimensionality, and distribution of
38、 the datamay be diffi cult to optimize in the standard GAN framework. Therefore we additionally make use of the autoregressive decomposition of the jointp(S,X1:T) = p(S) Q tp(Xt|S,X1:t1) to focus specifi cally on the conditionals, yielding the complementaryand simplerobjective of learning a density
39、p(Xt|S,X1:t1) that best approximates p(Xt|S,X1:t1) at any time t. Two Objectives. Importantly, this breaks down the sequence-level objective (matching the joint distribution) into a series of stepwise objectives (matching the conditionals). The fi rst is global, min p D ? p(S,X1:T)? ? p(S,X1:T)? (1)
40、 where D is some appropriate measure of distance between distributions. The second is local, min p D ? p(Xt|S,X1:t1)? ? p(Xt|S,X1:t1)? (2) for anyt. Under an ideal discriminator in the GAN framework, the former takes the form of the Jensen-Shannon divergence. Using the original data for supervision
41、via maximum-likelihood (ML) training, the latter takes the form of the Kullback-Leibler divergence. Note that minimizing the former relies on the presence of a perfect adversary (which we may not have access to), while minimizing the latter only depends on the presence of ground-truth sequences (whi
42、ch we do have access to). Our target, then, will be a combination of the GAN objective (proportional to Expression 1) and the ML objective (proportional to Expression 2). As we shall see, this naturally yields a training procedure that involves the simple addition of a supervised loss to guide adver
43、sarial learning. 4Proposed Model: Time-series GAN (TimeGAN) TimeGAN consists of four network components: an embedding function, recovery function, sequence generator, and sequence discriminator. The key insight is that the autoencoding components (fi rst two) are trained jointly with the adversarial
44、 components (latter two), such that TimeGAN simultaneously learns to encode features, generate representations, and iterate across time. The embedding network provides the latent space, the adversarial network operates within this space, and the latent dynamics of both real and synthetic data are sy
45、nchronized through a supervised loss. We describe each in turn. 3 4.1Embedding and Recovery Functions The embedding and recovery functions provide mappings between feature and latent space, allowing the adversarial network to learn the underlying temporal dynamics of the data via lower-dimensional r
46、epresentations. LetHS,HXdenote the latent vector spaces corresponding to feature spacesS,X. Then the embedding functione : S Q tX HS Q tHX takes static and temporal features to their latent codes hS,h1:T= e(s,x1:T). In this paper, we implement e via a recurrent network, hS= eS(s),ht= eX(hS,ht1,xt)(3
47、) whereeS: S HSis an embedding network for static features, andeX: HS HX X HXa recurrent embedding network for temporal features. In the opposite direction, the recovery function r : HS Q tHX S Q tX takes static and temporal codes back to their feature representations s, x1:T= r(hS,h1:T). Here we im
48、plement r through a feedforward network at each step, s = rS(hs), xt= rX(ht) (4) whererS: HS SandrX: HX Xare recovery networks for static and temporal embeddings. Note that the embedding and recovery functions can be parameterized by any architecture of choice, with the only stipulation being that t
49、hey be autoregressive and obey causal ordering (i.e. output(s) at each step can only depend on preceding information). For example, it is just as possible to implement the former with temporal convolutions 31, or the latter via an attention-based decoder 32. Here we choose implementations 3 and 4 as
50、 a minimal example to isolate the source of gains. 4.2Sequence Generator and Discriminator Instead of producing synthetic output directly in feature space, the generator fi rst outputs into the embedding space. LetZS,ZX denote vector spaces over which known distributions are defi ned, and from which
51、 random vectors are drawn as input for generating intoHS,HX. Then the generating functiong : ZS Q tZX HS Q tHX takes a tuple of static and temporal random vectors to synthetic latent codeshS,h1:T= g(zS,z1:T). We implement g through a recurrent network, hS= gS(zS), ht= gX(hS,ht1,zt)(5) wheregS: ZS HS
52、is an generator network for static features, andgX: HSHXZX HXis a recurrent generator for temporal features. Random vectorzScan be sampled from a distribution of choice, andztfollows a stochastic process; here we use the Gaussian distribution and Wiener process respectively. Finally, the discriminat
53、or also operates from the embedding space. The discrimination functiond : HS Q tHX 0,1 Q t0,1 receives the static and temporal codes, returning classifi cations yS, y1:T= d(hS,h1:T). Thehnotation denotes either real (h) or synthetic (h) embeddings; similarly, the y notation denotes classifi cations
54、of either real (y) or synthetic ( y) data. Here we implement d via a bidirectional recurrent network with a feedforward output layer, yS= dS(hS) yt= dX(ut, ut)(6) ClassificationsReconstructions Real SequencesRandom Vectors Latent Codes Recovery Embedding Generate Discriminate Unsupervised Loss Learn
55、 distribution p(S,X1:T)directly Supervised Loss Learn conditionals p(Xt|S,X1:t?1) Reconstruction Loss Provide Latent Embedding Space 2 S Q tX 2 S Q tX 2 0,1 . 2 ZS Q tZt 2 HS Q tHt e r d g s, x1:T s,x1:T hS,h1:ThS,h1:T zS,z1:T yS, y1:T LR e LR r LS g LS e LU g LU d (a) Block Diagram(b) Training Sche
56、me Figure 1: (a) Block diagram of component functions and objectives. (b) Training scheme; solid lines indicate forward propagation of data, and dashed lines indicate backpropagation of gradients. 4 where ut= cX(hS,ht, ut1)andut=cX(hS,ht,ut+1)respectively denote the sequences of forward and backward
57、 hidden states, cX,cXare recurrent functions, anddS,dXare output layer classifi cation functions. Similarly, there are no restrictions on architecture beyond the generator being autoregressive; here we use a standard recurrent formulation for ease of exposition. 4.3Jointly Learning to Encode, Genera
58、te, and Iterate First, purely as a reversible mapping between feature and latent spaces, the embedding and recovery functions should enable accurate reconstructions s, x1:Tof the original datas,x1:Tfrom their latent representations hS,h1:T . Therefore our fi rst objective function is the reconstruction loss, LR= Es,x1:Tp?ks sk2+ P tkxt xtk2 ? (7) In TimeGAN, the generator is exposed to two types of inputs during training. First, in pure open- loop mode, the generatorwhich is autoregressivereceives synthetic embeddingshS,h1:t1(i.e. its own previous outputs) in order to generate the next synt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年乡镇网格员招聘考试题库(含解析)
- 2025年西安市灞桥区辅警考试题库(含答案)
- 小学一年级劳动教育人教版一年级上册项目八削铅笔教学设计
- 2026高中教资面试历史试讲真题题库试卷及参考答案
- 人事岗事业单位面试事业单位面试历年真题题库及解析
- 事业单位面试面试真题及答案 2026
- 事业单位面试2026综合岗面试考题汇编及解析
- 2026年档案主管月度行政后勤保障培训课件
- 2026年苏州市疾病预防控制中心健康教育技能竞赛技能等级认定题库(含答案)
- 视频监控项目实施计划方案
- 三基三严护士考试题库含答案2025年必考版
- 2026佳木斯富锦市公安局面向社会公开招聘警务辅助人员50人笔试备考题库及答案解析
- 心力衰竭治疗策略演进
- 人教版五年级道德与法治上册第6课《人民当家作主》教学设计
- 电商平台商家入驻合作协议三篇
- 高标准农田建设工程勘察报告
- 金川集团社招考试试题及答案
- 2026矿泉水行业社群营销与私域流量运营报告
- 2026年山东发展投资控股集团权属企业社会招聘(82人)笔试真题及答案解析(完整版)
- 2026人教版九年级数学上册第三十章《直线与圆的位置关系》教案
- 2026秋五年级上语文全册每课预习必背知识点
评论
0/150
提交评论