IARM: Inter-Aspect Relation Modeling with Memory Networks in Aspect-Based Sentiment Analysis

Navonil Majumder, Soujanya Poria, Alexander F. Gelbukh, Md. Shad Akhtar, Erik Cambria, Asif Ekbal

Abstract

Aspect-Based Sentiment Analysis (ABSA) aims to identify sentiments toward specific features or "aspects" within a text. Traditional models often treat these aspects as independent entities, failing to capture the linguistic dependencies and contrasts that occur in multi-aspect sentences. We present IARM (Inter-Aspect Relation Modeling), a framework that leverages multi-hop memory networks to model relationships between aspects. By treating a target aspect as a query and neighboring aspects as memory, IARM iteratively refines sentiment representations. Our evaluation on the SemEval-2014 benchmark shows that IARM consistently outperforms state-of-the-art models, particularly in complex linguistic contexts, achieving up to 80.0% accuracy in the restaurant domain.

Introduction

In ABSA, identifying the sentiment of a review like "The menu is limited, but the entries are delicious" requires more than just keyword matching. The sentiment toward "entries" is clarified by its contrast with "menu," separated by the conjunction "but." Most existing models look at a single aspect in isolation, ignoring the surrounding "neighbors." IARM addresses this by allowing different aspects to "talk" to each other, capturing how sentiments interact to provide a more accurate overall picture.

The IARM Framework

The IARM framework consists of three primary stages designed to capture both local context and global inter-aspect dependencies:

  1. Aspect-Aware Sentence Representation (AASR): The model generates a unique representation for every aspect in a sentence using a Gated Recurrent Unit (GRU) and an attention mechanism. This ensures the initial representation is tuned to the specific words relevant to that aspect.
  2. Inter-Aspect Dependency Modeling: This core component utilizes a Memory Network. The target aspect serves as a "query," while all other aspects in the sentence are stored in "memory."
  3. Refinement via Multi-Hop Reasoning: The model performs multiple iterations (hops), repeatedly matching the target aspect against the memory. This allows the model to refine its understanding based on the surrounding context provided by neighboring aspects.
The IARM architecture featuring the AASR module and the multi-hop Memory Network for inter-aspect dependency modeling.

Experimental Results

IARM was evaluated using the SemEval-2014 ABSA dataset, covering the Restaurant and Laptop domains. The model demonstrated superior performance over existing benchmarks like IAN and ATAE-LSTM:

  • Accuracy: IARM achieved 80.0% accuracy on the Restaurant dataset and 73.8% on the Laptop dataset.
  • Performance Gains: This represents a 1.6% average improvement over previous state-of-the-art models.
  • Cross-Domain Robustness: In tests where the model was trained on one domain and tested on another, IARM outperformed benchmarks by 2%, indicating it learns general semantic structures rather than domain-specific keywords.

Analysis of Inter-Aspect Dependencies

A key insight from the research is that sentiments are often relational. IARM excels in cases where an aspect has no direct sentiment words by inferring sentiment from its neighbors. For example, the number of optimal "hops" required for reasoning varies by domain complexity, with the Laptop domain requiring more iterations (10 hops) than the Restaurant domain (3 hops).

Comparison of attention weights between IAN and IARM. IARM correctly shifts focus to "overpriced" for the aspect "cosi sandwiches" by considering the context of the neighboring aspect "coffee."

As shown in the attention visualization, IARM effectively redistributes attention weights based on the inter-aspect context, whereas simpler models like IAN may focus on less relevant sentiment words.

Conclusion

IARM demonstrates that modeling inter-aspect relationships is crucial for accurate sentiment analysis in complex sentences. While the model shows significant improvements, future work remains in handling subtle phrasing (e.g., recommendations like "Try the homemade breads") and complex quantifiers. Moving forward, the authors suggest exploring more sophisticated architectures beyond standard GRUs to further enhance initial aspect representations.

Summary updated

BibTeX
@inproceedings{majumder2018iarm,
  author = {Navonil Majumder and Soujanya Poria and Alexander F. Gelbukh and Md. Shad Akhtar and Erik Cambria and Asif Ekbal},
  title = {{IARM: Inter-Aspect Relation Modeling with Memory Networks in Aspect-Based Sentiment Analysis}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1377},
}
Figure