计算机科学 ›› 2026, Vol. 53 ›› Issue (11): 68-75.doi: 10.11896/jsjkx.251100154

• 数据库&大数据&数据科学 • 上一篇    下一篇

基于双掩码自监督Transformer的表单数据插补模型

方子康, 韩建军, 肖彦, 牛群   

  1. 华中科技大学计算机科学与技术学院 武汉 430074
  • 收稿日期:2025-11-27 修回日期:2026-03-14 出版日期:2026-11-15 发布日期:2026-11-10
  • 通讯作者: 韩建军(jasonhan@hust.edu.cn)
  • 作者简介:(fangzk@hust.edu.cn)

Dual-mask Self-supervised Transformer for Tabular Data Imputation

FANG Zikang, HAN Jianjun, XIAO Yan, NIU Qun   

  1. School of Computer Science and Technology,Huazhong University of Science and Technology,Wuhan 430074,China
  • Received:2025-11-27 Revised:2026-03-14 Published:2026-11-15 Online:2026-11-10
  • About author:FANG Zikang,born in 2000,postgra-duate.His main research interests include AI algorithm and data imputation.
    HAN Jianjun,born in 1972,Ph.D,professor.His main research interests include AI algorithm,privacy preserving,and embedded real-time system.

摘要: 数据插补研究旨在准确填补缺失数据。当前数据插补模型通常面向同质数据集,在处理包含不同类型数据的异质数据集时,跨类别学习的复杂性与缺失项的干扰,往往导致插补效果受限与训练不稳定。为此,提出了一种新的基于双掩码自监督的Transformer表单数据插补模型,旨在实现对异质表单数据中缺失值的稳定且高精度插补。首先,设计了一种软掩码注意力机制,其与均值预填补策略相结合可在缺失数据场景下增强模型对可见值与缺失值条件分布的建模能力,并保持对数据整体统计信息的关注,从而提升插补精度。其次,提出了一种双掩码自监督训练策略,在训练过程中引入两组不同的二次掩码,防止模型对特定的缺失模式过拟合,并通过在两次前向推理结果之间引入一致性损失对模型进行约束,实现稳定的自监督训练过程。对比实验结果显示,相比现有算法,所提模型能显著提高在异质表单数据上的综合插补精度。

关键词: 数据插补, 缺失数据, 深度学习, 自监督模型, Transformer

Abstract: Data imputation research aims to accurately impute missing data.Current data imputation models are often designed for homogeneous datasets.When handling heterogeneous datasets containing different data types,they often suffer from limited imputation performance and training instability due to the complexity of cross-category learning and interference from missing items.To address this,a novel data imputation model for tabular data based on a dual-mask self-supervised Transformer is proposed,aiming to achieve stable and high-accuracy imputation of missing data in heterogeneous tabular data.Firstly,a soft-mask attention mechanism is designed,which,combined with a mean pre-filling strategy,enhances the model's ability to model the conditional distribution of visible and missing values in scenarios with missing data.It also maintains focus on the overall statistical information of the data,thereby improving imputation accuracy.Secondly,a dual-mask self-supervised training strategy is proposed.This strategy introduces two different sets of secondary masks during training to prevent the model from overfitting to specific missing patterns.By constraining the model using a consistency loss between the two calls,a stable self-supervised trai-ning process is achieved.Comparative experimental results demonstrate that,compared to existing algorithms,the proposed model significantly improves the comprehensive imputation accuracy on heterogeneous tabular data.

Key words: Data imputation, Missing data, Deep learning, Self-supervised model, Transformer

中图分类号: 

  • TP301
[1] WANG Y X,XU X,ZHU H B.Survey of Tabular Data Generation Techniques[J].Computer Science,2025,52(10):3-12.
[2] ALTMAN N S.An Introduction to Kernel and Nearest-Neighbor[J].The American Statistician,1992,46(3):175-185.
[3] WHITE I R,ROYSTON P,WOOD A M.Multiple imputationusing chained equations:issues and guidance for practice[J].Statistics in Medicine,2011,30(4):377-399.
[4] STEKHOVE N,DANIEL J,PETER B.MissForest-non-para-metric missing value imputation for mixed-type data[J].Bioinformatics,2012,28(1):112-118.
[5] STEKHOVEN D J,BÜHLMANN P.Xgboost:A scalable tree boosting system[C]//Proceedings of ACM SIGKDD International Conference on Knowledge Discovery and Data Mining.2016:785-794.
[6] MIAO X Y,WU Y Y,CHEN L,et al.An Experimental Survey of Missing Data Imputation Algorithms[J].IEEE Transactions on Knowledge and Data Engineering,2023,35(7):6630-6650.
[7] SUN Y,LI J,XU Y,et al.Deep learning versus conventionalmethods for missing data imputation:A review and comparative study[J].Expert Systems with Applications,2023,227:120201.
[8] YOON J,JORDON J,SCHAAR M.GAIN:Missing Data Imputation using Generative Adversarial Nets[C]//Proceedings of the International Conference on Machine Learning.2018:9042-9059.
[9] NEVES D T,NAIK M G,PROENÇA A.SGAIN,WSGAIN-CP and WSGAIN-GP:Novel GAN Methods for Missing Data Imputation[C]//Proceedings of the International Conference on Computational Science.2021:98-113.
[10] AWAN S E,BENNAMOUN M,SOHEL F,et al.Imputation of missing data with class imbalance using conditional generative adversarial networks[J].Neurocomputing,2021,453(17):164-171.
[11] NAZABAL A,OLMOS P M,GHAHRAMANI Z,et al.Han-dling incomplete heterogeneous data using vaes[J].Pattern Recognition,2020,107:107501.
[12] PEIS I,MA C,HERNÁNDEZ-LOBATO J M.Missing data imputation and acquisition with deep hierarchical models and hamiltonian monte carlo[C]//Proceedings of the Conference on Neural Information Processing Systems.2022:35839-35851.
[13] MA C,TSCHIATSCHEK S,TURNER R,et al.VAEM:a Deep Generative Model for Heterogeneous Mixed Type Data[C]//Proceedings of the Conference on Neural Information Processing Systems.2020:11237-11247.
[14] CHEN Z,LI H,WANG F,et al.Rethinking the Diffusion Mo-dels for Missing Data Imputation:A Gradient Flow Perspective[C]//Proceedings of the Conference on Neural Information Processing Systems.2020:11237-11247.
[15] ZHANG H R,FANG L C,WU Q T,et al.Diffputer:Empowering diffusion models for missing data imputation[C]//Procee-dings of the International Conference on Learning Representations.2025:1-22.
[16] VILLAIZÁN-VALLELADO M,SALVATORI M,SEGURA C,et al.Diffusion models for tabular data imputation and synthetic data generation[J].ACM Transactions on Knowledge Discovery from Data,2025,19(6):1-32.
[17] TASHIRO Y,SONG J,SONG Y,et al.CSDI:Conditional score-based diffusion models for probabilistic time series imputation[C]//Proceedings of the Conference on Neural Information Processing Systems.2021:24804-24816.
[18] MUZELLEC B,JOSSE J,BOYER C,et al.Missing data imputation using optimal transport[C]//Proceedings of the International Conference on Machine Learning.2020:7130-7140.
[19] VASWANI A,SHAZEER N,PARMAR N,et al.Attention isall you need[C]//Proceedings of the 31st International Confe-rence on Neural Information Processing Systems.2017:6000-6010.
[20] HUANG X,KHETAN A,CVITKOVIC M,et al.Tabtrans-former:Tabular data modeling using contextual embeddings[J].arXiv,2012.06678,2020.
[21] GORISHNIY Y,RUBACHEV I,KHRULKOV V,et al.Revisiting deep learning models for tabular data[C]//Proceedings of the Conference on Neural Information Processing Systems.2021:18932-18943.
[22] SUN Z,LI H,WANG W,et al.DTIN:Dual Transformer-based Imputation Nets for multivariate time series emitter missing data[J].Knowledge-Based Systems,2024,284:111270.
[23] DU W,CÔTÉ D,LIU Y.SAITS:Self-attention-based imputation for time series[J].Expert Systems with Applications,2023,219:119619.
[24] UC Irvine Machine Learning Repository[EB/OL].https://archive.ics.uci.edu/.
[25] MATTEI P A,FRELLSEN J.MIWAE:Deep generative modelling and imputation of incomplete data sets[C]//Proceedings of the International Conference on Machine Learning.2019:4413-4423.
[26] ZHAO H,SUN K,DEZFOULI A,et al.Transformed distribution matching for missing value imputation.[C]//Proceedings of the International Conference on Machine Learning.2023:42159-42186.
[27] ZHENG S,CHAROENPHAKDEE N.Diffusion models formissing value imputation in tabular data.[C]//Proceedings of the Conference on Neural Information Processing Systems:First Table Representation Workshop.2022:1-7.
[28] LIU Y,AJANTHAN T,HUSAIN H,et al.Self-supervision improves diffusion models for tabular data imputation[C]//Proceedings of the ACM International Conference on Information and Knowledge Management.2024:1513-1522.
[29] BRIDGE-NDUWIMANA C B,HARRAUSS S E E,OUAAZIZI A E,et al.A Tabular Data Imputation Technique Using Transformer and Convolutional Neural Networks[J].Big Data and Cognitive Computing,2025,9(12):321.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!