arXiv Science⌕ Search

arXiv subjects

Alireza Zarei

Publications and source records attributed to Alireza Zarei.

9 recordsLinked to original sources

Disentangling and Mitigating Biases in LLM-as-a-Judge Evaluation of Summaries

Large language models (LLMs) increasingly both generate and evaluate summaries, but fair comparison is difficult because judge bias can dominate genuine quality differences. We summarize 200 recent Guardian Science articles with four open-weight LLMs and compare them with four LLM judges. Length dominates uncontrolled comparisons, with the longer summary winning 74% of decided pairs, a share that drops to 57% once a fixed length budget is enforced with Divide-Verify-Refine. Position then takes over - under forced choice, order-swapped comparisons flip on up to 53% of pairs, and the favored slot is the one adjacent to the article, surfacing as recency or primacy according to prompt layout - yet the pairs a judge flips on are only negligibly more similar than those it ranks consistently. This is consistent with position serving as a fallback when quality differences are difficult to distinguish. Combining an Equal option with reflection reduces total order disagreement by 44-65% in all eight judge-placement settings. These outcomes are label-free diagnostics of judge invariance. They measure self-consistency rather than agreement with human preference. Within this setting, they argue for designing LLM summarization evaluation jointly around candidate-side length control and order-swapped judge protocols combining an Equal option with reflection.

cs.CL↗

RobustSeiz: a model-agnostic framework for auditing the recording-environment, noise and adversarial robustness of EEG seizure detectors

Background and Objective: Automated electroencephalography (EEG) seizure detectors are validated on clean research recordings, whereas clinical recordings are altered by electrode problems, equipment settings and artifacts. As seizure treatment is time-critical, we tested whether detectors stay reliable and timely under such conditions. Methods: We developed RobustSeiz, an open-source framework that audits any trained detector without modifying it. Its novelty is the evaluation pipeline, not a new detector: a model-agnostic protocol applying controlled, seeded shifts (recording environment, noise and artifacts, worst-case adversarial), scoring that adds onset timing and model uncertainty to event-based accuracy, and paired statistics against clean recordings. We audited four deep-learning detectors on three public datasets unseen in training. Results: Robustness varied widely and was independent of clean accuracy. Adversarial changes of 5-10% of signal amplitude reduced the F1-score by up to 0.57, and electrode-contact noise silently lowered sensitivity from 0.57 to 0.06. Shifts delayed the seizures still detected by up to 62 s. Read with accuracy, dropout certainty fell under filtering shifts but rose as noise silenced detection; only a quarter of failures lowered it. Conclusions: Clean accuracy alone does not establish reliability or timeliness. RobustSeiz makes pre-deployment robustness audits reproducible.

cs.LG↗

Computational performance versus numerical accuracy in the acoustic terms of weakly-compressible SPH

Accurate computation of the acoustic terms in weakly-compressible SPH, including the equation of state, its inverse, and the evaluation of the local speed of sound, is essential to ensure energy conservation, robust solid boundary conditions, and correct open boundary behavior. In the classic Cole's equation of state, using values of the polytropic constant $γ\ne 1$ can lead to significant precision loss, particularly when computations are performed in single precision, as is common in GPU implementations. We extend here our previous results on the optimal choice of state variable by introducing a new higher-precision form for all three acoustic terms, denoted \texttt{explog}, and assess its numerical accuracy and computational performance across a variety of devices and test cases. We find that the new form evaluates the acoustic terms with a maximum ULP of~2 for arguments less than $0.125$, and has higher errors in less than 1\% of the arguments larger than the threshold. Combined with a rewritten expression of the pressure at solid boundary particles in the ``dummy'' model, it provides consistently more accurate results, maintaining deviations from the reference pressure profile to below 2\%, even in presence of a rough bottom terrain. Computationally, the new formulation is also faster than the naive one on GPU, and only marginally slower on CPU.

math.NA↗

Efficient Dynamic Rank Aggregation

The rank aggregation problem, which has many real-world applications, refers to the process of combining multiple input rankings into a single aggregated ranking. In dynamic settings, where new rankings arrive over time, efficiently updating the aggregated ranking is essential. This paper develops a fast, theoretically and practically efficient dynamic rank aggregation algorithm. First, we develop the LR-Aggregation algorithm, built on top of the LR-tree data structure, which is itself modeled on the LR-distance, a novel and equivalent take on the classical Spearman's footrule distance. We then analyze the theoretical efficiency of the Pick-A-Perm algorithm, and show how it can be combined with the LR-aggregation algorithm using another data structure that we develop. We demonstrate through experimental evaluations that LR-Aggregation produces close to optimal solutions in practice. We show that Pick-A-Perm has a theoretical worst case approximation guarantee of 2. We also show that both the LR-Aggregation and Pick-A-Perm algorithms, as well as the methodology for combining them can be run in $O(n \log n)$ time. To the best of our knowledge, this is the first fast, near linear time rank aggregation algorithm in the dynamic setting, having both a theoretical approximation guarantee, and excellent practical performance (much better than the theoretical guarantee).

cs.DS↗

Improved Combinatorial Approximations for Weighted Correlation Clustering

We present combinatorial approximation algorithms for the weighted correlation clustering problem. In this problem, we have a set of vertices and two weight values for each pair of vertices, denoting their difference and similarity. The goal is to cluster the vertices with minimum total intra-cluster difference weights plus inter-cluster similarity weights. We present two results for weighted instances with $n$ vertices: - A randomized 3-approximation combinatorial algorithm for instances that satisfy probability constraints, running in $O(n^2)$ time. This improves the $O(n^6)$ running time of the previous best-known combinatorial approximation, a 3-approximation algorithm, introduced by Chawla et al. (2015). - A randomized 1.6-approximation combinatorial algorithm for instances that satisfy probability and triangle inequality constraints, running in $O(n^2)$ time. This improves the longstanding combinatorial 2-approximation of Ailon et al. (2008) while matching its running time.

cs.DS↗

Recognizing Visibility Graphs of Polygons with Holes and Internal-External Visibility Graphs of Polygons

Visibility graph of a polygon corresponds to its internal diagonals and boundary edges. For each vertex on the boundary of the polygon, we have a vertex in this graph and if two vertices of the polygon see each other there is an edge between their corresponding vertices in the graph. Two vertices of a polygon see each other if and only if their connecting line segment completely lies inside the polygon, and they are externally visible if and only if this line segment completely lies outside the polygon. Recognizing visibility graphs is the problem of deciding whether there is a simple polygon whose visibility graph is isomorphic to a given input graph. This problem is well-known and well-studied, but yet widely open in geometric graphs and computational geometry. Existential Theory of the Reals is the complexity class of problems that can be reduced to the problem of deciding whether there exists a solution to a quantifier-free formula F(X1,X2,...,Xn), involving equalities and inequalities of real polynomials with real variables. The complete problems for this complexity class are called Existential Theory of the Reals Complete. In this paper we show that recognizing visibility graphs of polygons with holes is Existential Theory of the Reals Complete. Moreover, we show that recognizing visibility graphs of simple polygons when we have the internal and external visibility graphs, is also Existential Theory of the Reals Complete.

cs.CG↗

Separating Colored Points with Minimum Number of Rectangles

In this paper we study the following problem: Given $k$ disjoint sets of points, $P_1, \ldots, P_k$ on the plane, find a minimum cardinality set $\mathcal{T}$ of arbitrary rectangles such that each rectangle contains points of just one set $P_i$ but not the others. We prove the NP-hardness of this problem.

cs.CG↗

Pseudo-Triangle Visibility Graph: Characterization and Reconstruction

The visibility graph of a simple polygon represents visibility relations between its vertices. Knowing the correct order of the vertices around the boundary of a polygon and its visibility graph, it is an open problem to locate the vertices in a plane in such a way that it will be consistent with this visibility graph. This problem has been solved for special cases when we know that the target polygon is a {\it tower} or a {\it spiral}. Knowing that a given visibility graph belongs to a simple polygon with at most three concave chains on its boundary, a {\it pseuodo-triangle}, we propose a linear time algorithm for reconstructing one of its corresponding polygons. Moreover, we introduce a set of necessary and sufficient properties for characterizing visibility graphs of pseudo-triangles and propose polynomial algorithms for checking these properties.

cs.CG↗

A Simple, Faster Method for Kinetic Proximity Problems

For a set of $n$ points in the plane, this paper presents simple kinetic data structures (KDS's) for solutions to some fundamental proximity problems, namely, the all nearest neighbors problem, the closest pair problem, and the Euclidean minimum spanning tree (EMST) problem. Also, the paper introduces KDS's for maintenance of two well-studied sparse proximity graphs, the Yao graph and the Semi-Yao graph. We use sparse graph representations, the Pie Delaunay graph and the Equilateral Delaunay graph, to provide new solutions for the proximity problems. Then we design KDS's that efficiently maintain these sparse graphs on a set of $n$ moving points, where the trajectory of each point is assumed to be an algebraic function of constant maximum degree $s$. We use the kinetic Pie Delaunay graph and the kinetic Equilateral Delaunay graph to create KDS's for maintenance of the Yao graph, the Semi-Yao graph, all the nearest neighbors, the closest pair, and the EMST. Our KDS's use $O(n)$ space and $O(n\log n)$ preprocessing time. We provide the first KDS's for maintenance of the Semi-Yao graph and the Yao graph. Our KDS processes $O(n^2β_{2s+2}(n))$ (resp. $O(n^3β_{2s+2}^2(n)\log n)$) events to maintain the Semi-Yao graph (resp. the Yao graph); each event can be processed in time $O(\log n)$ in an amortized sense. Here, $β_s(n)$ is an extremely slow-growing function. Our KDS for maintenance of all the nearest neighbors and the closest pair processes $O(n^2β^2_{2s+2}(n)\log n)$ events. For maintenance of the EMST, our KDS processes $O(n^3β_{2s+2}^2(n)\log n)$ events. For all three of these problems, each event can be handled in time $O(\log n)$ in an amortized sense. We improve the previous randomized kinetic algorithm for maintenance of all the nearest neighbors by Agarwal, Kaplan, and Sharir, and the previous EMST KDS by Rahmati and Zarei.

cs.CG↗