Mobile apps have become indispensable for accessing and participating in various environments, especially for low-vision users. Users with visual impairments can use screen readers to read the content of each screen and understand the content that needs to be operated. Screen readers need to read the hint-text attribute in the text input component to remind visually impaired users what to fill in. Unfortunately, based on our analysis of 4,501 Android apps with text inputs, over 76% of them are missing hint-text. These issues are mostly caused by developers’ lack of awareness when considering visually impaired individuals. To overcome these challenges, we developed an LLM-based hint-text generation model called HintDroid, which analyzes the GUI information of input components and uses in-context learning to generate the hint-text. To ensure the quality of hint-text generation, we further designed a feedback-based inspection mechanism to further adjust hint-text. The automated experiments demonstrate the high BLEU and a user study further confirms its usefulness. HintDroid can not only help visually impaired individuals, but also help ordinary people understand the requirements of input components. HintDroid demo video: https://youtu.be/FWgfcctRbfI.
Deep Learning (DL) libraries have significantly impacted various domains in computer science over the last decade. However, developers often face challenges when using the DL APIs, as the development paradigm of DL applications differs greatly from traditional software development. Existing studies on API misuse mainly focus on traditional software, leaving a gap in understanding API misuse within DL APIs. To address this gap, we present the first comprehensive study of DL API misuse in TensorFlow and PyTorch. Specifically, we first collected a dataset of 4,224 commits from the top 200 most-starred projects using these two libraries and manually identified 891 API misuses. We then investigated the characteristics of these misuses from three perspectives, i.e., types, root causes, and symptoms. We have also conducted an evaluation to assess the effectiveness of the current state-of-the-art API misuse detector on our 891 confirmed API misuses. Our results confirmed that the state-of-the-art API misuse detector is ineffective in detecting DL API misuses. To address the limitations of existing API misuse detection for DL APIs, we propose LLMAPIDet, which leverages Large Language Models (LLMs) for DL API misuse detection and repair. We build LLMAPIDet by prompt-tuning a chain of ChatGPT prompts on 600 out of 891 confirmed API misuses and reserve the rest 291 API misuses as the testing dataset. Our evaluation shows that LLMAPIDet can detect 48 out of the 291 DL API misuses while none of them can be detected by the existing API misuse detector. We further evaluate LLMAPIDet on the latest versions of 10 GitHub projects. The evaluation shows that LLMAPIDet can identify 119 previously unknown API misuses and successfully fix 46 of them.
5 December 2011 in Journal of Lightwave Technology
We report the first superchannel field experiment where two multicarrier signals at 450 Gb/s and 1.15 Tb/s are copropagated with 112-Gb/s neighbors over 45 × 79.1 km spans of field-installed fiber with erbium-doped fiber amplifiers after each span. The superchannels use zero-guard interval all-optical orthogonal frequency-division multiplexing, with each optically generated subcarrier modulated by dual-polarization quadriphase-shift-keying signals (DP-QPSK). The heterogeneous data-rate channels are aggregated using wavelength selective switch in a flexible grid wavelength-division multiplexing architecture. The net spectral efficiencies of the channels vary from 2 b/s/Hz for the 112-Gb/s channels, to 3.33 b/s/Hz for the 1.15-Tb/s superchannel. We demonstrate that any of the signals can be detected using a common filterless digital coherent receiver. In particular, tuning a local oscillator laser midway between two optically generated subcarriers enables the coherent receiver (with proper signal-processing algorithm) to demodulate two subcarriers in one data capture. This allows flexible downconversion across the whole signal band. Our results show that superchannels can coexist harmoniously with 100 G DP-QPSK signals. Even though the superchannels use the same modulation format per subcarrier as the 100 G signals, the absence of guard bands enables higher spectral efficiency that is achievable with single-carrier modulation with minimal sacrifice in reach.
We demonstrate wavelength-division multiplexed (WDM) and mode-division multiplexed (MDM) transmission over a fiber recirculating loop comprising of a 25-km span of low differential mode group dispersion (DMGD) few-mode fiber carrying the LP01 and LP11 mode groups, and an inline few-mode erbium-doped fiber amplifier (FM-EDFA) providing low mode-dependent gain (MDG) per span. We successfully transmitted a 10λ × 6 × 28-Gbaud QPSK signal over a distance of 700 km.
20 January 2025 in ACM Transactions on Software Engineering and Methodology
Automatic API recommendation can accelerate developers’ programming and has been studied for years. There are two orthogonal lines of approaches for this task, i.e., information retrieval-based (IR-based) approaches and sequence to sequence (seq2seq) model-based approaches. Although these approaches were reported to have remarkable performance, our observation finds two major drawbacks, i.e., IR-based approaches lack the consideration of relations among the recommended APIs, and seq2seq models do not model the API’s semantic meaning. To alleviate the above two problems, we propose APIGens, which is a retrieval-enhanced large language model (LLM)-based API recommendation approach to recommend an API sequence for a natural language query. The approach first retrieves similar programming questions in history based on the input natural language query, and then scores the results based on API documents via a scorer model. Finally, these results are used as samples for few-shot learning of LLM. To reduce the risk of encountering local optima, we also extract API seeds from the retrieved results to increase the search scope during the LLM generation process. The results show that our approach can achieve 48.41% ROUGE@10 on API sequence recommendation and the 82.61% MAP on API set recommendation, largely outperforming the state-of-the-art baselines.