-
3D-Mirrorcle: Bridging the Virtual and Real through Depth Alignment in AR Mirror Systems
Authors:
Yujia Liu,
Qi Xin,
Chenzhuo Xiang,
Yu Zhang,
Lun Yiu Nie,
Yingqing Xu
Abstract:
Smart mirrors have emerged as a new form of augmented reality (AR) interface for home environments. However, due to the parallax in human vision, one major challenge hindering their development is the depth misalignment between the 3D mirror reflection and the 2D screen display. This misalignment causes the display content to appear as if it is floating above the mirror, thereby disrupting the sea…
▽ More
Smart mirrors have emerged as a new form of augmented reality (AR) interface for home environments. However, due to the parallax in human vision, one major challenge hindering their development is the depth misalignment between the 3D mirror reflection and the 2D screen display. This misalignment causes the display content to appear as if it is floating above the mirror, thereby disrupting the seamless integration of the two components and impacting the overall quality and functionality of the mirror. In this study, we introduce 3D-Mirrorcle, an innovative augmented reality (AR) mirror system that effectively addresses the issue of depth disparity through a hardware-software co-design on a lenticular grating setup. With our implemented real-time position adjustment and depth adaptation algorithms, the screen display can be dynamically aligned to the user's depth perception for a highly realistic and engaging experience. Our method has been validated through a prototype and hands-on user experiments that engaged 36 participants, and the results show significant improvements in terms of accuracy (24.72% $\uparrow$), immersion(31.4% $\uparrow$), and user satisfaction (44.4% $\uparrow$) compared to the existing works.
△ Less
Submitted 24 April, 2024; v1 submitted 20 October, 2023;
originally announced October 2023.
-
Observation of the toroidal rotation in a new designed compact torus system for EAST
Authors:
Z. H. Zhao,
T. Lan,
D. F. Kong,
Y. Ye,
S. B. Zhang,
G. Zhuang,
X. H. Zhang,
G. H. Hu,
C. Chen,
J. Wu,
S. Zhang,
M. B. Qi,
C. H. Li,
X. M. Yang,
L. Y. Nie,
F. Wen,
P. F. Zi,
L. Li,
F. W. Meng,
B. Li,
Q. L. Dong,
Y. Q. Huang
Abstract:
Compact torus injection is considered as a high promising approach to realize central fueling in the future tokamak device. Recently, a compact torus injection system has been developed for the Experimental Advanced Superconducting Tokamak, and the preliminary results have been carried out. In the typical discharges of the early stage, the velocity, electron density and particles number of the CT…
▽ More
Compact torus injection is considered as a high promising approach to realize central fueling in the future tokamak device. Recently, a compact torus injection system has been developed for the Experimental Advanced Superconducting Tokamak, and the preliminary results have been carried out. In the typical discharges of the early stage, the velocity, electron density and particles number of the CT can reach 56.0 km/s, 8.73*10^20 m^(-3) and 2.4*10^18 (for helium), respectively. A continuous increase in CT density during acceleration was observed in the experiment, which may be due to the plasma ionized in the formation region may carry part of the neutral gas into the acceleration region, and these neutral gases will be ionized again. In addition, a significant plasma rotation is observed during the formation process which is introduced by the E*B drift. In this paper, we present the detailed system setup and the preliminary platform test results, ho** to provide some basis for the exploration of the CT technique medium-sized superconducting tokamak device in the future
△ Less
Submitted 1 February, 2022;
originally announced February 2022.
-
Code Structure Guided Transformer for Source Code Summarization
Authors:
Shuzheng Gao,
Cuiyun Gao,
Yulan He,
Jichuan Zeng,
Lun Yiu Nie,
Xin Xia,
Michael R. Lyu
Abstract:
Code summaries help developers comprehend programs and reduce their time to infer the program functionalities during software maintenance. Recent efforts resort to deep learning techniques such as sequence-to-sequence models for generating accurate code summaries, among which Transformer-based approaches have achieved promising performance. However, effectively integrating the code structure infor…
▽ More
Code summaries help developers comprehend programs and reduce their time to infer the program functionalities during software maintenance. Recent efforts resort to deep learning techniques such as sequence-to-sequence models for generating accurate code summaries, among which Transformer-based approaches have achieved promising performance. However, effectively integrating the code structure information into the Transformer is under-explored in this task domain. In this paper, we propose a novel approach named SG-Trans to incorporate code structural properties into Transformer. Specifically, we inject the local symbolic information (e.g., code tokens and statements) and global syntactic structure (e.g., data flow graph) into the self-attention module of Transformer as inductive bias. To further capture the hierarchical characteristics of code, the local information and global structure are designed to distribute in the attention heads of lower layers and high layers of Transformer. Extensive evaluation shows the superior performance of SG-Trans over the state-of-the-art approaches. Compared with the best-performing baseline, SG-Trans still improves 1.4% and 2.0% in terms of METEOR score, a metric widely used for measuring generation quality, respectively on two benchmark datasets.
△ Less
Submitted 22 July, 2022; v1 submitted 19 April, 2021;
originally announced April 2021.
-
Unstructured Knowledge Access in Task-oriented Dialog Modeling using Language Inference, Knowledge Retrieval and Knowledge-Integrative Response Generation
Authors:
Mudit Chaudhary,
Borislav Dzodzo,
Sida Huang,
Chun Hei Lo,
Mingzhi Lyu,
Lun Yiu Nie,
**bo Xing,
Tianhua Zhang,
Xiaoying Zhang,
**gyan Zhou,
Hong Cheng,
Wai Lam,
Helen Meng
Abstract:
Dialog systems enriched with external knowledge can handle user queries that are outside the scope of the supporting databases/APIs. In this paper, we follow the baseline provided in DSTC9 Track 1 and propose three subsystems, KDEAK, KnowleDgEFactor, and Ens-GPT, which form the pipeline for a task-oriented dialog system capable of accessing unstructured knowledge. Specifically, KDEAK performs know…
▽ More
Dialog systems enriched with external knowledge can handle user queries that are outside the scope of the supporting databases/APIs. In this paper, we follow the baseline provided in DSTC9 Track 1 and propose three subsystems, KDEAK, KnowleDgEFactor, and Ens-GPT, which form the pipeline for a task-oriented dialog system capable of accessing unstructured knowledge. Specifically, KDEAK performs knowledge-seeking turn detection by formulating the problem as natural language inference using knowledge from dialogs, databases and FAQs. KnowleDgEFactor accomplishes the knowledge selection task by formulating a factorized knowledge/document retrieval problem with three modules performing domain, entity and knowledge level analyses. Ens-GPT generates a response by first processing multiple knowledge snippets, followed by an ensemble algorithm that decides if the response should be solely derived from a GPT2-XL model, or regenerated in combination with the top-ranking knowledge snippet. Experimental results demonstrate that the proposed pipeline system outperforms the baseline and generates high-quality responses, achieving at least 58.77% improvement on BLEU-4 score.
△ Less
Submitted 15 January, 2021;
originally announced January 2021.
-
CoreGen: Contextualized Code Representation Learning for Commit Message Generation
Authors:
Lun Yiu Nie,
Cuiyun Gao,
Zhicong Zhong,
Wai Lam,
Yang Liu,
Zenglin Xu
Abstract:
Automatic generation of high-quality commit messages for code commits can substantially facilitate software developers' works and coordination. However, the semantic gap between source code and natural language poses a major challenge for the task. Several studies have been proposed to alleviate the challenge but none explicitly involves code contextual information during commit message generation…
▽ More
Automatic generation of high-quality commit messages for code commits can substantially facilitate software developers' works and coordination. However, the semantic gap between source code and natural language poses a major challenge for the task. Several studies have been proposed to alleviate the challenge but none explicitly involves code contextual information during commit message generation. Specifically, existing research adopts static embedding for code tokens, which maps a token to the same vector regardless of its context. In this paper, we propose a novel Contextualized code representation learning strategy for commit message Generation (CoreGen). CoreGen first learns contextualized code representations which exploit the contextual information behind code commit sequences. The learned representations of code commits built upon Transformer are then fine-tuned for downstream commit message generation. Experiments on the benchmark dataset demonstrate the superior effectiveness of our model over the baseline models with at least 28.18% improvement in terms of BLEU-4 score. Furthermore, we also highlight the future opportunities in training contextualized code representations on larger code corpus as a solution to low-resource tasks and adapting the contextualized code representation framework to other code-to-text generation tasks.
△ Less
Submitted 21 June, 2021; v1 submitted 14 July, 2020;
originally announced July 2020.
-
ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Ranking
Authors:
Shangqing Liu,
Cuiyun Gao,
Sen Chen,
Lun Yiu Nie,
Yang Liu
Abstract:
Commit messages record code changes (e.g., feature modifications and bug repairs) in natural language, and are useful for program comprehension. Due to the frequent updates of software and time cost, developers are generally unmotivated to write commit messages for code changes. Therefore, automating the message writing process is necessitated. Previous studies on commit message generation have be…
▽ More
Commit messages record code changes (e.g., feature modifications and bug repairs) in natural language, and are useful for program comprehension. Due to the frequent updates of software and time cost, developers are generally unmotivated to write commit messages for code changes. Therefore, automating the message writing process is necessitated. Previous studies on commit message generation have been benefited from generation models or retrieval models, but the code structure of changed code, i.e., AST, which can be important for capturing code semantics, has not been explicitly involved. Moreover, although generation models have the advantages of synthesizing commit messages for new code changes, they are not easy to bridge the semantic gap between code and natural languages which could be mitigated by retrieval models. In this paper, we propose a novel commit message generation model, named ATOM, which explicitly incorporates the abstract syntax tree for representing code changes and integrates both retrieved and generated messages through hybrid ranking. Specifically, the hybrid ranking module can prioritize the most accurate message from both retrieved and generated messages regarding one code change. We evaluate the proposed model ATOM on our dataset crawled from 56 popular Java repositories. Experimental results demonstrate that ATOM increases the state-of-the-art models by 30.72% in terms of BLEU-4 (an accuracy measure that is widely used to evaluate text generation systems). Qualitative analysis also demonstrates the effectiveness of ATOM in generating accurate code commit messages.
△ Less
Submitted 11 November, 2020; v1 submitted 5 December, 2019;
originally announced December 2019.