ReadNet: A Hierarchical Transformer Framework for Web Article Readability Analysis

Changping Meng, Muhao Chen, Jie Mao, Jennifer NevilleECIR 2020 · DOI

Abstract

Analyzing the readability of articles has been an important sociolinguistic task. Addressing this task is necessary to the automatic recommendation of appropriate articles to readers with different comprehension abilities, and it further benefits education systems, web information systems, and digital libraries. Current methods for assessing readability employ empirical measures or statistical learning techniques that are limited by their ability to characterize complex patterns such as article structures and semantic meanings of sentences. In this paper, we propose a new and comprehensive framework which uses a hierarchical self-attention model to analyze document readability. In this model, measurements of sentence-level difficulty are captured along with the semantic meanings of each sentence. Additionally, the sentence-level features are incorporated to characterize the overall readability of an article with consideration of article structures. We evaluate our proposed approach on three widely-used benchmark datasets against several strong baseline approaches. Experimental results show that our proposed method achieves the state-of-the-art performance on estimating the readability for various web articles and literature.

Introduction

Determining the "readability" of a text—how easily a reader can comprehend it—is a classic sociolinguistic challenge. Historically, this was done using simple formulas like the Flesch-Kincaid index, which counts syllables and sentence lengths. While useful, these "explicit features" ignore the actual meaning (semantics) and the logical flow (structure) of an article.

Modern deep learning models (like CNNs or LSTMs) capture semantics but often treat documents as flat sequences of words, missing the hierarchical nature of language (words form sentences; sentences form articles). Furthermore, high-quality readability datasets labeled by experts are often too small to train complex neural networks from scratch. ReadNet aims to bridge this gap by fusing hierarchical deep learning with traditional linguistic "rules of thumb."

The ReadNet Framework

The authors introduce ReadNet, which employs a two-level hierarchical architecture designed to model text as it is naturally structured.

The hierarchical architecture of ReadNet, showing sentence-level and document-level encoders.

Hierarchical Architecture

The model processes text in two stages:

  1. Word-to-Sentence Level: A Transformer encoder processes word embeddings and positional encodings to capture local context. Crucially, the model then concatenates "explicit sentence features" (e.g., average syllables per word, word count, pronoun count) to the resulting sentence embedding ($u_i$).
  2. Sentence-to-Article Level: A second Transformer layer processes the sequence of sentence embeddings. This captures how the arrangement of sentences contributes to overall difficulty. Again, "explicit document features" (e.g., Flesch-Kincaid score, Gunning Fog index, lexical diversity) are fused into the final representation ($V$).

Explicit Feature Integration

A key innovation of ReadNet is the integration of traditional linguistic features directly into the neural architecture. These features provide a "rule of thumb" baseline that complements the deep semantic representations learned by the Transformers.

Linguistic features used at the sentence and document levels.

Technical Enhancements

  • Efficiency: The hierarchical approach reduces computational complexity from $O((nm)^2)$ to $O(m^2 + n^2)$, where $n$ is the number of sentences and $m$ is words per sentence, making it suitable for long web articles.
  • Ordinal Regression Loss: Readability levels are ordered (e.g., Grade 4 is closer to Grade 5 than Grade 10). ReadNet uses an ordinal loss function to penalize "far away" misclassifications more heavily.
  • Transfer Learning: To handle small datasets, the model is pre-trained on a massive corpus (English Wikipedia vs. Simple English Wikipedia) before being fine-tuned on expert-labeled data.

Experimental Evaluation

The model was evaluated on three benchmark datasets:

  • Wiki Dataset: ~120,000 articles from English Wikipedia and Simple English Wikipedia (used for pre-training).
  • Cambridge English Exam (CEE): 800 articles categorized into five levels (KET to CPE) for non-native speakers.
  • Weebit: ~7,600 articles targeted at different age groups (7–16 years old).

Key Results

ReadNet outperformed all baselines, including traditional SVMs and advanced neural models like the Hierarchical Attention Network (HATT).

  • Accuracy: On the Weebit dataset, ReadNet achieved 91.7% accuracy, compared to 84.6% for SVMs and 88.4% for standard HATT.
  • Transfer Learning Impact: On the small CEE dataset, pre-training on Wikipedia increased accuracy from 52.8% to 56.8% and improved model stability.
  • Zero-Shot Capability: When trained on Wikipedia and tested on Cambridge exams, the model's confidence scores aligned perfectly with increasing difficulty levels, demonstrating a learned universal concept of readability.

Conclusion

The success of ReadNet highlights the "Hybrid Advantage": deep learning does not render traditional formulas obsolete. Combining Transformer-based semantics with explicit features like syllable counts performs better than using either in isolation. By mimicking human reading behavior through a hierarchical structure, ReadNet offers a robust and efficient solution for automated readability analysis.

Summary updated

BibTeX
@inproceedings{meng2020readnet,
  author = {Changping Meng and Muhao Chen and Jie Mao and Jennifer Neville},
  title = {{ReadNet: A Hierarchical Transformer Framework for Web Article Readability Analysis}},
  booktitle = {ECIR},
  year = {2020},
  doi = {10.1007/978-3-030-45439-5\_3},
}
Figure